Files
mtusi2026lab6/evidence/obs/prometheus_state.json
T

311 lines
12 KiB
JSON

{
"metric_names": [
"go_cgo_go_to_c_calls_calls_total",
"go_config_gogc_percent",
"go_cpu_classes_gc_mark_assist_cpu_seconds_total",
"go_cpu_classes_gc_mark_dedicated_cpu_seconds_total",
"go_cpu_classes_gc_mark_idle_cpu_seconds_total",
"go_cpu_classes_gc_pause_cpu_seconds_total",
"go_cpu_classes_gc_total_cpu_seconds_total",
"go_cpu_classes_idle_cpu_seconds_total",
"go_cpu_classes_scavenge_assist_cpu_seconds_total",
"go_cpu_classes_scavenge_background_cpu_seconds_total",
"go_cpu_classes_scavenge_total_cpu_seconds_total",
"go_cpu_classes_total_cpu_seconds_total",
"go_cpu_classes_user_cpu_seconds_total",
"go_gc_cycles_automatic_gc_cycles_total",
"go_gc_cycles_forced_gc_cycles_total",
"go_gc_cycles_total_gc_cycles_total",
"go_gc_duration_seconds",
"go_gc_duration_seconds_count",
"go_gc_duration_seconds_sum",
"go_gc_gogc_percent",
"go_gc_gomemlimit_bytes",
"go_gc_heap_allocs_by_size_bytes_bucket",
"go_gc_heap_allocs_by_size_bytes_count",
"go_gc_heap_allocs_by_size_bytes_sum",
"go_gc_heap_allocs_bytes_total",
"go_gc_heap_allocs_objects_total",
"go_gc_heap_frees_by_size_bytes_bucket",
"go_gc_heap_frees_by_size_bytes_count",
"go_gc_heap_frees_by_size_bytes_sum",
"go_gc_heap_frees_bytes_total",
"go_gc_heap_frees_objects_total",
"go_gc_heap_goal_bytes",
"go_gc_heap_live_bytes",
"go_gc_heap_objects_objects",
"go_gc_heap_tiny_allocs_objects_total",
"go_gc_limiter_last_enabled_gc_cycle",
"go_gc_pauses_seconds_bucket",
"go_gc_pauses_seconds_count",
"go_gc_pauses_seconds_sum",
"go_gc_scan_globals_bytes",
"go_gc_scan_heap_bytes",
"go_gc_scan_stack_bytes",
"go_gc_scan_total_bytes",
"go_gc_stack_starting_size_bytes",
"go_godebug_non_default_behavior_asynctimerchan_events_total",
"go_godebug_non_default_behavior_execerrdot_events_total",
"go_godebug_non_default_behavior_gocachehash_events_total",
"go_godebug_non_default_behavior_gocachetest_events_total",
"go_godebug_non_default_behavior_gocacheverify_events_total",
"go_godebug_non_default_behavior_gotypesalias_events_total",
"go_godebug_non_default_behavior_http2client_events_total",
"go_godebug_non_default_behavior_http2server_events_total",
"go_godebug_non_default_behavior_httplaxcontentlength_events_total",
"go_godebug_non_default_behavior_httpmuxgo121_events_total",
"go_godebug_non_default_behavior_httpservecontentkeepheaders_events_total",
"go_godebug_non_default_behavior_installgoroot_events_total",
"go_godebug_non_default_behavior_multipartmaxheaders_events_total",
"go_godebug_non_default_behavior_multipartmaxparts_events_total",
"go_godebug_non_default_behavior_multipathtcp_events_total",
"go_godebug_non_default_behavior_netedns0_events_total",
"go_godebug_non_default_behavior_panicnil_events_total",
"go_godebug_non_default_behavior_randautoseed_events_total",
"go_godebug_non_default_behavior_tarinsecurepath_events_total",
"go_godebug_non_default_behavior_tls10server_events_total",
"go_godebug_non_default_behavior_tls3des_events_total",
"go_godebug_non_default_behavior_tlsmaxrsasize_events_total",
"go_godebug_non_default_behavior_tlsrsakex_events_total",
"go_godebug_non_default_behavior_tlsunsafeekm_events_total",
"go_godebug_non_default_behavior_winreadlinkvolume_events_total",
"go_godebug_non_default_behavior_winsymlink_events_total",
"go_godebug_non_default_behavior_x509keypairleaf_events_total",
"go_godebug_non_default_behavior_x509negativeserial_events_total",
"go_godebug_non_default_behavior_x509sha1_events_total",
"go_godebug_non_default_behavior_x509usefallbackroots_events_total",
"go_godebug_non_default_behavior_x509usepolicies_events_total",
"go_godebug_non_default_behavior_zipinsecurepath_events_total",
"go_goroutine_count",
"go_goroutines",
"go_info",
"go_memory_allocated_bytes_total",
"go_memory_allocations_total",
"go_memory_classes_heap_free_bytes",
"go_memory_classes_heap_objects_bytes",
"go_memory_classes_heap_released_bytes",
"go_memory_classes_heap_stacks_bytes",
"go_memory_classes_heap_unused_bytes",
"go_memory_classes_metadata_mcache_free_bytes",
"go_memory_classes_metadata_mcache_inuse_bytes",
"go_memory_classes_metadata_mspan_free_bytes",
"go_memory_classes_metadata_mspan_inuse_bytes",
"go_memory_classes_metadata_other_bytes",
"go_memory_classes_os_stacks_bytes",
"go_memory_classes_other_bytes",
"go_memory_classes_profiling_buckets_bytes",
"go_memory_classes_total_bytes",
"go_memory_gc_goal_bytes",
"go_memory_limit_bytes",
"go_memory_used_bytes",
"go_memstats_alloc_bytes",
"go_memstats_alloc_bytes_total",
"go_memstats_buck_hash_sys_bytes",
"go_memstats_frees_total",
"go_memstats_gc_sys_bytes",
"go_memstats_heap_alloc_bytes",
"go_memstats_heap_idle_bytes",
"go_memstats_heap_inuse_bytes",
"go_memstats_heap_objects",
"go_memstats_heap_released_bytes",
"go_memstats_heap_sys_bytes",
"go_memstats_last_gc_time_seconds",
"go_memstats_lookups_total",
"go_memstats_mallocs_total",
"go_memstats_mcache_inuse_bytes",
"go_memstats_mcache_sys_bytes",
"go_memstats_mspan_inuse_bytes",
"go_memstats_mspan_sys_bytes",
"go_memstats_next_gc_bytes",
"go_memstats_other_sys_bytes",
"go_memstats_stack_inuse_bytes",
"go_memstats_stack_sys_bytes",
"go_memstats_sys_bytes",
"go_processor_limit",
"go_sched_gomaxprocs_threads",
"go_sched_goroutines_goroutines",
"go_sched_latencies_seconds_bucket",
"go_sched_latencies_seconds_count",
"go_sched_latencies_seconds_sum",
"go_sched_pauses_stopping_gc_seconds_bucket",
"go_sched_pauses_stopping_gc_seconds_count",
"go_sched_pauses_stopping_gc_seconds_sum",
"go_sched_pauses_stopping_other_seconds_bucket",
"go_sched_pauses_stopping_other_seconds_count",
"go_sched_pauses_stopping_other_seconds_sum",
"go_sched_pauses_total_gc_seconds_bucket",
"go_sched_pauses_total_gc_seconds_count",
"go_sched_pauses_total_gc_seconds_sum",
"go_sched_pauses_total_other_seconds_bucket",
"go_sched_pauses_total_other_seconds_count",
"go_sched_pauses_total_other_seconds_sum",
"go_sync_mutex_wait_total_seconds_total",
"go_threads",
"http_client_duration_bucket",
"http_client_duration_count",
"http_client_duration_sum",
"http_client_request_body_size_bytes_bucket",
"http_client_request_body_size_bytes_count",
"http_client_request_body_size_bytes_sum",
"http_client_request_duration_seconds_bucket",
"http_client_request_duration_seconds_count",
"http_client_request_duration_seconds_sum",
"http_client_request_size",
"http_client_response_size",
"http_server_active_requests",
"http_server_duration_bucket",
"http_server_duration_count",
"http_server_duration_sum",
"http_server_request_duration_seconds_bucket",
"http_server_request_duration_seconds_count",
"http_server_request_duration_seconds_sum",
"http_server_request_size",
"http_server_response_size",
"messenger:http_error_ratio:rate1m",
"messenger:http_errors:rate1m",
"messenger:http_fast_ratio:rate5m",
"messenger:http_requests:rate1m",
"messenger_attachment_time_to_ready_seconds_bucket",
"messenger_attachment_time_to_ready_seconds_count",
"messenger_attachment_time_to_ready_seconds_sum",
"messenger_job_duration_seconds_bucket",
"messenger_job_duration_seconds_count",
"messenger_job_duration_seconds_sum",
"messenger_jobs_backlog",
"messenger_jobs_oldest_age_seconds",
"messenger_jobs_processed_total",
"messenger_outbox_oldest_age_seconds",
"messenger_outbox_pending",
"messenger_outbox_publish_duration_seconds_bucket",
"messenger_outbox_publish_duration_seconds_count",
"messenger_outbox_publish_duration_seconds_sum",
"messenger_outbox_published_total",
"messenger_worker_busy",
"messenger_worker_capacity",
"otelcol_exporter_enqueue_failed_log_records",
"otelcol_exporter_enqueue_failed_spans",
"otelcol_exporter_queue_capacity",
"otelcol_exporter_queue_size",
"otelcol_exporter_send_failed_log_records",
"otelcol_exporter_send_failed_metric_points",
"otelcol_exporter_send_failed_spans",
"otelcol_exporter_sent_log_records",
"otelcol_exporter_sent_metric_points",
"otelcol_exporter_sent_spans",
"otelcol_receiver_accepted_log_records",
"otelcol_receiver_accepted_metric_points",
"otelcol_receiver_accepted_spans",
"otelcol_receiver_refused_log_records",
"otelcol_receiver_refused_metric_points",
"otelcol_receiver_refused_spans",
"pgxpool_acquire_duration_nanoseconds_total",
"pgxpool_acquired_connections",
"pgxpool_acquires_total",
"pgxpool_canceled_acquires_total",
"pgxpool_constructing_connections",
"pgxpool_empty_acquire_total",
"pgxpool_empty_acquire_wait_time_nanoseconds_total",
"pgxpool_idle_connections",
"pgxpool_max_connections",
"pgxpool_max_idle_destroys_total",
"pgxpool_max_lifetime_destroys_total",
"pgxpool_new_connections_total",
"pgxpool_total_connections",
"process_cpu_seconds_total",
"process_cpu_time_seconds_total",
"process_max_fds",
"process_network_receive_bytes_total",
"process_network_transmit_bytes_total",
"process_open_fds",
"process_resident_memory_bytes",
"process_start_time_seconds",
"process_virtual_memory_bytes",
"process_virtual_memory_max_bytes",
"target_info"
],
"rules": [
{
"group": "messenger-alerts",
"name": "MessengerHighErrorRate",
"type": "alerting",
"health": "ok",
"state": "inactive",
"query": "messenger:http_error_ratio:rate1m > 0.05 and messenger:http_requests:rate1m > 0.5",
"duration": 30
},
{
"group": "messenger-alerts",
"name": "MessengerQueueLagGrowing",
"type": "alerting",
"health": "ok",
"state": "inactive",
"query": "max(messenger_jobs_oldest_age_seconds) > 60",
"duration": 30
},
{
"group": "messenger-alerts",
"name": "MessengerWorkerAbsent",
"type": "alerting",
"health": "ok",
"state": "inactive",
"query": "absent(messenger_worker_capacity)",
"duration": 60
},
{
"group": "messenger-alerts",
"name": "MessengerTelemetryExportFailing",
"type": "alerting",
"health": "ok",
"state": "inactive",
"query": "(sum(rate({__name__=~\"otelcol_exporter_send_failed_spans(_total)?\"}[1m])) or vector(0)) + (sum(rate({__name__=~\"otelcol_exporter_send_failed_log_records(_total)?\"}[1m])) or vector(0)) > 0",
"duration": 30
},
{
"group": "messenger-sli",
"name": "messenger:http_requests:rate1m",
"type": "recording",
"health": "ok",
"state": null,
"query": "sum(rate(http_server_request_duration_seconds_count{http_route!~\"/health/.*\",job=\"messenger-api\"}[1m]))",
"duration": null
},
{
"group": "messenger-sli",
"name": "messenger:http_errors:rate1m",
"type": "recording",
"health": "ok",
"state": null,
"query": "sum(rate(http_server_request_duration_seconds_count{http_response_status_class=\"5xx\",http_route!~\"/health/.*\",job=\"messenger-api\"}[1m])) or vector(0)",
"duration": null
},
{
"group": "messenger-sli",
"name": "messenger:http_error_ratio:rate1m",
"type": "recording",
"health": "ok",
"state": null,
"query": "messenger:http_errors:rate1m / messenger:http_requests:rate1m",
"duration": null
},
{
"group": "messenger-sli",
"name": "messenger:http_fast_ratio:rate5m",
"type": "recording",
"health": "ok",
"state": null,
"query": "sum(rate(http_server_request_duration_seconds_bucket{http_route!~\"/health/.*\",job=\"messenger-api\",le=\"0.25\"}[5m])) / sum(rate(http_server_request_duration_seconds_count{http_route!~\"/health/.*\",job=\"messenger-api\"}[5m]))",
"duration": null
},
{
"group": "messenger-sli",
"name": "messenger:time_to_ready_fast_ratio:rate5m",
"type": "recording",
"health": "ok",
"state": null,
"query": "sum(rate(messenger_attachment_time_to_ready_seconds_bucket{le=\"30\"}[5m])) / sum(rate(messenger_attachment_time_to_ready_seconds_count[5m]))",
"duration": null
}
],
"alerts_now": {}
}