Miget automatically collects metrics for every app and addon in your workspace. All metrics use the miget_ prefix and are available in Grafana dashboards and the Metrics API.

App Metrics

Metrics about your application’s deployment status and HTTP traffic.

Replicas

MetricTypeDescription
miget_app_replicas_desiredGaugeNumber of replicas configured for the app
miget_app_replicas_availableGaugeNumber of replicas currently running and ready
Labels: namespace, app

HTTP

MetricTypeDescription
miget_app_http_responses_totalCounterTotal HTTP responses, broken down by status code
miget_app_http_response_time_seconds_bucketHistogramHTTP response time distribution
miget_app_http_response_time_seconds_countHistogramTotal number of HTTP requests
miget_app_http_response_time_seconds_sumHistogramTotal HTTP response time
Labels: namespace, app, status, method
Use histogram_quantile() to calculate percentiles from the histogram:
histogram_quantile(0.99, sum(rate(miget_app_http_response_time_seconds_bucket{app="my-app"}[5m])) by (le))

Instance Metrics

Metrics about individual app instances (pods). Each running instance of your app reports these independently.

CPU & Memory

MetricTypeUnitDescription
miget_instance_cpu_usageGaugeCoresCurrent CPU usage
miget_instance_memory_used_bytesGaugeBytesCurrent memory usage
miget_instance_resource_limitGaugeVariesResource limit (CPU in cores, memory in bytes)
miget_instance_resource_requestGaugeVariesResource request (CPU in cores, memory in bytes)
Labels: namespace, instance, app, resource (for limits/requests: cpu or memory)

Network

MetricTypeUnitDescription
miget_instance_net_recv_bytes_totalCounterBytesTotal bytes received
miget_instance_net_sent_bytes_totalCounterBytesTotal bytes sent
miget_instance_net_recv_packets_totalCounterPacketsTotal packets received
miget_instance_net_sent_packets_totalCounterPacketsTotal packets sent
Labels: namespace, instance, app

Disk

MetricTypeUnitDescription
miget_instance_disk_read_bytes_totalCounterBytesTotal bytes read from disk
miget_instance_disk_write_bytes_totalCounterBytesTotal bytes written to disk
miget_instance_disk_read_ops_totalCounterOperationsTotal disk read operations
miget_instance_disk_write_ops_totalCounterOperationsTotal disk write operations
miget_instance_disk_read_latency_microsecondsGaugeMicrosecondsAverage disk read latency
miget_instance_disk_write_latency_microsecondsGaugeMicrosecondsAverage disk write latency
Labels: namespace, instance, app, device

Status

MetricTypeDescription
miget_instance_status_phaseGaugePod phase (1 = active for that phase)
miget_instance_restarts_totalCounterTotal container restarts
miget_instance_oom_events_totalCounterTotal out-of-memory kills
miget_instance_start_timeGaugeInstance start timestamp (Unix seconds)
Labels: namespace, instance, app, phase (for status_phase: Pending, Running, Succeeded, Failed)

Volume Metrics

Metrics about persistent storage attached to your apps.
MetricTypeUnitDescription
miget_volume_used_bytesGaugeBytesUsed space on the volume
miget_volume_size_bytesGaugeBytesTotal volume capacity
miget_volume_iops_limitGaugeIOPSVolume IOPS rate limit
miget_volume_bw_limit_bytesGaugeBytes/secVolume bandwidth rate limit
Labels: namespace, app, volume, device

Addon Metrics

PostgreSQL

MetricTypeUnitDescription
miget_addon_pg_connectionsGaugeConnectionsActive database connections
miget_addon_pg_database_size_bytesGaugeBytesDatabase size
miget_addon_pg_replication_lag_secondsGaugeSecondsReplication lag to standby
miget_addon_pg_upGaugeBooleanDatabase health (1 = up)
Labels: namespace, addon, addon_type, instance, database, role

Common Labels

Every metric includes these labels:
LabelDescription
namespaceYour workspace’s Kubernetes namespace
appApp name (for app metrics)
addonAddon name (for addon metrics)
addon_typeAddon type, e.g. postgres (for addon metrics)
instanceIndividual instance (pod) name