lab6: отчёт и доказательства итогового прогона
This commit is contained in:
@@ -0,0 +1,420 @@
|
||||
{
|
||||
"scenario": "backend-down",
|
||||
"result": {
|
||||
"load": {
|
||||
"requests": 100015,
|
||||
"ok": 100015,
|
||||
"errors": 0,
|
||||
"error_ratio": 0.0,
|
||||
"ok_rps": 406.0,
|
||||
"seconds": 246.3,
|
||||
"latency_ms_all_ok": {
|
||||
"p50": 8.07,
|
||||
"p95": 19.0,
|
||||
"p99": 33.38
|
||||
},
|
||||
"latency_ms_outside_faults": {
|
||||
"p50": 8.07,
|
||||
"p95": 19.0,
|
||||
"p99": 33.38
|
||||
}
|
||||
},
|
||||
"collector_limit_mib": 256,
|
||||
"collector_max_mib": 108.4,
|
||||
"api_max_mib": 224.5,
|
||||
"api_limit_mib": 256,
|
||||
"phases": {
|
||||
"export_failing_alert_seconds": 81.0,
|
||||
"during": {
|
||||
"exporter_queue_size_max": 40.0,
|
||||
"exporter_queue_capacity": 40.0,
|
||||
"send_failed_spans": 4203.596068571429,
|
||||
"send_failed_log_records": 2843.3654285714283,
|
||||
"enqueue_failed_spans": 728158.464,
|
||||
"refused_spans_memory_limiter": 0.0,
|
||||
"metrics_still_scraped": 430.16363636363633
|
||||
},
|
||||
"tempo_spans_exported_after_up": 37888.0,
|
||||
"refused_spans_total": 0.0,
|
||||
"new_trace_after_recovery": true,
|
||||
"traces_visible_seconds_after_tempo_up": 20.9,
|
||||
"probe_requests_after_up": 5
|
||||
},
|
||||
"timeline": {
|
||||
"tempo_loki_down_s": 18,
|
||||
"tempo_loki_up_s": 173,
|
||||
"collector_down_s": 195,
|
||||
"collector_down_for_s": 40
|
||||
},
|
||||
"memory_samples": [
|
||||
{
|
||||
"t": 0.0,
|
||||
"collector_mib": 52.1,
|
||||
"api_mib": [
|
||||
224.5,
|
||||
224.3
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 5.6,
|
||||
"collector_mib": 52.4,
|
||||
"api_mib": [
|
||||
21.0,
|
||||
19.4
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 10.9,
|
||||
"collector_mib": 54.3,
|
||||
"api_mib": [
|
||||
20.8,
|
||||
17.3
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 16.1,
|
||||
"collector_mib": 52.3,
|
||||
"api_mib": [
|
||||
20.6,
|
||||
18.2
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 21.8,
|
||||
"collector_mib": 73.3,
|
||||
"api_mib": [
|
||||
20.9,
|
||||
19.9
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 27.1,
|
||||
"collector_mib": 82.3,
|
||||
"api_mib": [
|
||||
20.3,
|
||||
17.4
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 32.4,
|
||||
"collector_mib": 84.0,
|
||||
"api_mib": [
|
||||
19.8,
|
||||
20.6
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 37.8,
|
||||
"collector_mib": 87.8,
|
||||
"api_mib": [
|
||||
17.9,
|
||||
18.9
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 43.2,
|
||||
"collector_mib": 90.8,
|
||||
"api_mib": [
|
||||
18.0,
|
||||
20.1
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 49.0,
|
||||
"collector_mib": 95.5,
|
||||
"api_mib": [
|
||||
20.3,
|
||||
17.6
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 54.3,
|
||||
"collector_mib": 96.0,
|
||||
"api_mib": [
|
||||
21.0,
|
||||
19.7
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 59.6,
|
||||
"collector_mib": 96.4,
|
||||
"api_mib": [
|
||||
21.4,
|
||||
20.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 64.9,
|
||||
"collector_mib": 103.6,
|
||||
"api_mib": [
|
||||
19.6,
|
||||
19.1
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 70.3,
|
||||
"collector_mib": 105.3,
|
||||
"api_mib": [
|
||||
21.0,
|
||||
19.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 75.7,
|
||||
"collector_mib": 106.6,
|
||||
"api_mib": [
|
||||
20.3,
|
||||
19.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 81.2,
|
||||
"collector_mib": 108.4,
|
||||
"api_mib": [
|
||||
20.5,
|
||||
17.2
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 86.6,
|
||||
"collector_mib": 108.3,
|
||||
"api_mib": [
|
||||
18.5,
|
||||
20.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 91.9,
|
||||
"collector_mib": 108.4,
|
||||
"api_mib": [
|
||||
19.7,
|
||||
18.6
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 97.2,
|
||||
"collector_mib": 108.4,
|
||||
"api_mib": [
|
||||
20.2,
|
||||
18.8
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 102.7,
|
||||
"collector_mib": 105.1,
|
||||
"api_mib": [
|
||||
18.3,
|
||||
21.1
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 108.2,
|
||||
"collector_mib": 104.8,
|
||||
"api_mib": [
|
||||
19.2,
|
||||
17.5
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 113.4,
|
||||
"collector_mib": 104.8,
|
||||
"api_mib": [
|
||||
21.7,
|
||||
18.2
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 118.7,
|
||||
"collector_mib": 104.8,
|
||||
"api_mib": [
|
||||
20.2,
|
||||
17.8
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 124.1,
|
||||
"collector_mib": 107.8,
|
||||
"api_mib": [
|
||||
19.9,
|
||||
19.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 129.4,
|
||||
"collector_mib": 107.8,
|
||||
"api_mib": [
|
||||
19.4,
|
||||
19.5
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 135.0,
|
||||
"collector_mib": 108.1,
|
||||
"api_mib": [
|
||||
20.1,
|
||||
18.2
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 140.4,
|
||||
"collector_mib": 106.0,
|
||||
"api_mib": [
|
||||
20.1,
|
||||
19.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 145.8,
|
||||
"collector_mib": 106.4,
|
||||
"api_mib": [
|
||||
19.2,
|
||||
20.4
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 151.2,
|
||||
"collector_mib": 106.8,
|
||||
"api_mib": [
|
||||
20.3,
|
||||
17.9
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 156.8,
|
||||
"collector_mib": 103.8,
|
||||
"api_mib": [
|
||||
21.5,
|
||||
19.1
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 163.0,
|
||||
"collector_mib": 85.3,
|
||||
"api_mib": [
|
||||
17.7,
|
||||
17.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 168.4,
|
||||
"collector_mib": 82.5,
|
||||
"api_mib": [
|
||||
20.1,
|
||||
18.7
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 173.7,
|
||||
"collector_mib": 83.8,
|
||||
"api_mib": [
|
||||
19.8,
|
||||
19.8
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 179.2,
|
||||
"collector_mib": 83.8,
|
||||
"api_mib": [
|
||||
20.6,
|
||||
19.2
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 184.6,
|
||||
"collector_mib": 83.9,
|
||||
"api_mib": [
|
||||
20.8,
|
||||
17.2
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 189.9,
|
||||
"collector_mib": 54.8,
|
||||
"api_mib": [
|
||||
19.7,
|
||||
19.1
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 195.4,
|
||||
"collector_mib": 0.0,
|
||||
"api_mib": [
|
||||
24.2,
|
||||
22.9
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 200.7,
|
||||
"collector_mib": 0.0,
|
||||
"api_mib": [
|
||||
29.1,
|
||||
31.2
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 206.1,
|
||||
"collector_mib": 0.0,
|
||||
"api_mib": [
|
||||
33.3,
|
||||
34.8
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 211.6,
|
||||
"collector_mib": 0.0,
|
||||
"api_mib": [
|
||||
33.3,
|
||||
32.8
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 217.2,
|
||||
"collector_mib": 0.0,
|
||||
"api_mib": [
|
||||
32.5,
|
||||
32.9
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 222.8,
|
||||
"collector_mib": 0.0,
|
||||
"api_mib": [
|
||||
34.3,
|
||||
33.7
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 228.2,
|
||||
"collector_mib": 0.0,
|
||||
"api_mib": [
|
||||
35.5,
|
||||
32.1
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 233.6,
|
||||
"collector_mib": 0.0,
|
||||
"api_mib": [
|
||||
34.0,
|
||||
32.4
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 239.0,
|
||||
"collector_mib": 58.3,
|
||||
"api_mib": [
|
||||
30.3,
|
||||
23.8
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 244.4,
|
||||
"collector_mib": 54.7,
|
||||
"api_mib": [
|
||||
22.0,
|
||||
18.7
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 485 KiB |
@@ -0,0 +1,155 @@
|
||||
{
|
||||
"scenario": "incident-db",
|
||||
"result": {
|
||||
"fault": "LOCK TABLE messages IN ACCESS EXCLUSIVE MODE for 110 s under load (4 clients)",
|
||||
"detection_seconds": 98.4,
|
||||
"resolved_seconds_after_unlock": 18.3,
|
||||
"metrics_at_firing": {
|
||||
"error_ratio_1m": 1.0,
|
||||
"p99_s": 9.95,
|
||||
"p99_by_route": {
|
||||
"/api/v1/chats/{chat_id}/attachments": NaN,
|
||||
"/api/v1/auth/sessions": NaN,
|
||||
"/api/v1/users": NaN,
|
||||
"/api/v1/attachments/{attachment_id}": NaN,
|
||||
"/api/v1/chats/{chat_id}/messages": 9.95,
|
||||
"/api/v1/chats": NaN
|
||||
},
|
||||
"db_pool_acquired": 4.0,
|
||||
"health_ready_5xx_rate": 0.0
|
||||
},
|
||||
"error_trace_breakdown": [
|
||||
{
|
||||
"server_span": "POST /api/v1/chats/{chat_id}/messages",
|
||||
"server_ms": 5000.48,
|
||||
"status": "500",
|
||||
"longest_db_span_ms": 4977.9,
|
||||
"longest_s3_span_ms": 0.0,
|
||||
"db_share": 0.995,
|
||||
"db_spans_longest": [
|
||||
[
|
||||
"INSERT",
|
||||
4977.87
|
||||
],
|
||||
[
|
||||
"INSERT",
|
||||
4977.85
|
||||
],
|
||||
[
|
||||
"pool.acquire",
|
||||
12.77
|
||||
],
|
||||
[
|
||||
"connect",
|
||||
12.72
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"server_span": "POST /api/v1/chats/{chat_id}/messages",
|
||||
"server_ms": 5000.53,
|
||||
"status": "500",
|
||||
"longest_db_span_ms": 4973.6,
|
||||
"longest_s3_span_ms": 0.0,
|
||||
"db_share": 0.995,
|
||||
"db_spans_longest": [
|
||||
[
|
||||
"INSERT",
|
||||
4973.55
|
||||
],
|
||||
[
|
||||
"INSERT",
|
||||
4973.51
|
||||
],
|
||||
[
|
||||
"SELECT",
|
||||
10.33
|
||||
],
|
||||
[
|
||||
"SELECT",
|
||||
6.0
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"server_span": "POST /api/v1/chats/{chat_id}/messages",
|
||||
"server_ms": 5001.06,
|
||||
"status": "500",
|
||||
"longest_db_span_ms": 4982.3,
|
||||
"longest_s3_span_ms": 0.0,
|
||||
"db_share": 0.996,
|
||||
"db_spans_longest": [
|
||||
[
|
||||
"INSERT",
|
||||
4982.27
|
||||
],
|
||||
[
|
||||
"INSERT",
|
||||
4982.25
|
||||
],
|
||||
[
|
||||
"DELETE",
|
||||
6.95
|
||||
],
|
||||
[
|
||||
"DELETE",
|
||||
5.49
|
||||
]
|
||||
]
|
||||
}
|
||||
],
|
||||
"slow_handler_comparison": {
|
||||
"server_span": "POST /api/v1/chats/{chat_id}/attachments",
|
||||
"server_ms": 77.38,
|
||||
"status": "202",
|
||||
"longest_db_span_ms": 2.2,
|
||||
"longest_s3_span_ms": 68.0,
|
||||
"db_share": 0.028,
|
||||
"db_spans_longest": [
|
||||
[
|
||||
"INSERT",
|
||||
2.18
|
||||
],
|
||||
[
|
||||
"INSERT",
|
||||
1.33
|
||||
],
|
||||
[
|
||||
"INSERT",
|
||||
1.31
|
||||
],
|
||||
[
|
||||
"INSERT",
|
||||
1.22
|
||||
]
|
||||
]
|
||||
},
|
||||
"error_logs": {
|
||||
"count": 88,
|
||||
"events": [
|
||||
"http.request"
|
||||
],
|
||||
"routes": [
|
||||
"/api/v1/chats/{chat_id}/messages"
|
||||
]
|
||||
},
|
||||
"load": {
|
||||
"requests": 15036,
|
||||
"ok": 14948,
|
||||
"errors": 88,
|
||||
"error_ratio": 0.00585,
|
||||
"ok_rps": 100.5,
|
||||
"seconds": 148.8,
|
||||
"latency_ms_all_ok": {
|
||||
"p50": 8.55,
|
||||
"p95": 20.86,
|
||||
"p99": 35.95
|
||||
},
|
||||
"latency_ms_outside_faults": {
|
||||
"p50": 8.53,
|
||||
"p95": 20.73,
|
||||
"p99": 35.35
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"scenario": "incident-worker",
|
||||
"result": {
|
||||
"detection_seconds_from_worker_stop": 96.7,
|
||||
"diagnosis": {
|
||||
"alerts_firing": [
|
||||
"MessengerQueueLagGrowing"
|
||||
],
|
||||
"backlog_queued": 3.0,
|
||||
"oldest_age_s": 91.144665,
|
||||
"jobs_processed_rate_1m": 0.0,
|
||||
"worker_capacity_series": 0,
|
||||
"rabbitmq_ready": null,
|
||||
"api_5xx_ratio": NaN,
|
||||
"producer_spans_since_stop": 3,
|
||||
"consumer_spans_since_stop": 0,
|
||||
"last_worker_log_events": [
|
||||
"",
|
||||
"job.claimed",
|
||||
"job.done",
|
||||
"job.retry",
|
||||
"worker.start"
|
||||
]
|
||||
},
|
||||
"backlog_ready_seconds_after_start": 2.6,
|
||||
"resolved_seconds_after_worker_start": 10.6,
|
||||
"oldest_age_series": [
|
||||
[
|
||||
-30,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
-20,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
-10,
|
||||
7.4
|
||||
],
|
||||
[
|
||||
0,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
10,
|
||||
6.1
|
||||
],
|
||||
[
|
||||
20,
|
||||
16.1
|
||||
],
|
||||
[
|
||||
30,
|
||||
26.1
|
||||
],
|
||||
[
|
||||
40,
|
||||
36.1
|
||||
],
|
||||
[
|
||||
50,
|
||||
46.1
|
||||
],
|
||||
[
|
||||
60,
|
||||
56.1
|
||||
],
|
||||
[
|
||||
70,
|
||||
66.1
|
||||
],
|
||||
[
|
||||
80,
|
||||
76.1
|
||||
],
|
||||
[
|
||||
90,
|
||||
86.1
|
||||
],
|
||||
[
|
||||
100,
|
||||
96.1
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,310 @@
|
||||
{
|
||||
"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": {}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"scenario": "retry-trace",
|
||||
"result": {
|
||||
"request_id": "obs-retry-a9fc5acc8add4f72",
|
||||
"trace_id": "48230bc7d9dc9e469f654518739a6c8a",
|
||||
"attempts_in_trace": [
|
||||
[
|
||||
"1",
|
||||
"retry",
|
||||
"STATUS_CODE_ERROR"
|
||||
],
|
||||
[
|
||||
"2",
|
||||
"retry",
|
||||
"STATUS_CODE_ERROR"
|
||||
],
|
||||
[
|
||||
"3",
|
||||
"retry",
|
||||
"STATUS_CODE_ERROR"
|
||||
],
|
||||
[
|
||||
"4",
|
||||
"done",
|
||||
""
|
||||
]
|
||||
],
|
||||
"publish_spans": 4,
|
||||
"job_events": "enqueued,claimed,retry_scheduled,claimed,retry_scheduled,claimed,retry_scheduled,claimed,done",
|
||||
"final_status": "ready",
|
||||
"tree": [
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "POST /api/v1/chats/{chat_id}/attachments",
|
||||
"kind": "SPAN_KIND_SERVER",
|
||||
"ms": 17.78,
|
||||
"parent": null,
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-relay",
|
||||
"name": "attachment.process publish",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"ms": 45.89,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "attachment.process process",
|
||||
"kind": "SPAN_KIND_CONSUMER",
|
||||
"ms": 384.22,
|
||||
"parent": "messenger-relay: attachment.process publish",
|
||||
"outcome": "retry",
|
||||
"attempt": "1",
|
||||
"status": "STATUS_CODE_ERROR"
|
||||
},
|
||||
{
|
||||
"service": "messenger-relay",
|
||||
"name": "attachment.process publish",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"ms": 0.99,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "attachment.process process",
|
||||
"kind": "SPAN_KIND_CONSUMER",
|
||||
"ms": 245.3,
|
||||
"parent": "messenger-relay: attachment.process publish",
|
||||
"outcome": "retry",
|
||||
"attempt": "2",
|
||||
"status": "STATUS_CODE_ERROR"
|
||||
},
|
||||
{
|
||||
"service": "messenger-relay",
|
||||
"name": "attachment.process publish",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"ms": 44.48,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "attachment.process process",
|
||||
"kind": "SPAN_KIND_CONSUMER",
|
||||
"ms": 271.24,
|
||||
"parent": "messenger-relay: attachment.process publish",
|
||||
"outcome": "retry",
|
||||
"attempt": "3",
|
||||
"status": "STATUS_CODE_ERROR"
|
||||
},
|
||||
{
|
||||
"service": "messenger-relay",
|
||||
"name": "attachment.process publish",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"ms": 2.29,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "attachment.process process",
|
||||
"kind": "SPAN_KIND_CONSUMER",
|
||||
"ms": 34.25,
|
||||
"parent": "messenger-relay: attachment.process publish",
|
||||
"outcome": "done",
|
||||
"attempt": "4",
|
||||
"status": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,929 @@
|
||||
{
|
||||
"scenario": "signals",
|
||||
"result": {
|
||||
"request": {
|
||||
"request_id": "obs-msg-249e829f8c1e4049",
|
||||
"trace_id": "c275fd38f588c08d29aea802ac7c9c83",
|
||||
"spans": [
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "POST /api/v1/chats/{chat_id}/messages",
|
||||
"kind": "SPAN_KIND_SERVER",
|
||||
"ms": 6.55,
|
||||
"parent": null,
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "get",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.11,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ttl",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.06,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.01,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.38,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.18,
|
||||
"parent": "messenger-api: SELECT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.0,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.79,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.29,
|
||||
"parent": "messenger-api: SELECT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.0,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.18,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "DELETE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.54,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
}
|
||||
],
|
||||
"log": {
|
||||
"line": "http request",
|
||||
"labels": {
|
||||
"detected_level": "info",
|
||||
"event": "http.request",
|
||||
"request_id": "obs-msg-249e829f8c1e4049",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_name": "messenger-api",
|
||||
"severity_text": "INFO",
|
||||
"span_id": "ce40a5e763ec9dd8",
|
||||
"status": "201",
|
||||
"trace_id": "c275fd38f588c08d29aea802ac7c9c83"
|
||||
}
|
||||
}
|
||||
},
|
||||
"upload": {
|
||||
"request_id": "obs-upload-e0c3f49f30f5446d",
|
||||
"trace_id": "cf8628e62914dd27bef25fbfca80ba11",
|
||||
"services": [
|
||||
"messenger-api",
|
||||
"messenger-relay",
|
||||
"messenger-worker"
|
||||
],
|
||||
"links": {
|
||||
"api server → relay producer": true,
|
||||
"relay producer → worker consumer": true,
|
||||
"worker consumer → S3 PUT": true,
|
||||
"worker consumer → image.decode": true
|
||||
},
|
||||
"span_count": 65,
|
||||
"worker_db_spans": [
|
||||
"BEGIN",
|
||||
"COMMIT",
|
||||
"INSERT",
|
||||
"SELECT",
|
||||
"UPDATE",
|
||||
"batch start",
|
||||
"pool.acquire"
|
||||
],
|
||||
"tree": [
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "POST /api/v1/chats/{chat_id}/attachments",
|
||||
"kind": "SPAN_KIND_SERVER",
|
||||
"ms": 14.68,
|
||||
"parent": null,
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "get",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.07,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ttl",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.06,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.01,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.2,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.0,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.37,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.1,
|
||||
"parent": "messenger-api: SELECT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.0,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.69,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.46,
|
||||
"parent": "messenger-api: INSERT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "S3 PUT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 4.93,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.01,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.13,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.34,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.26,
|
||||
"parent": "messenger-api: UPDATE",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.56,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.44,
|
||||
"parent": "messenger-api: INSERT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.48,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.29,
|
||||
"parent": "messenger-api: INSERT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.82,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.19,
|
||||
"parent": "messenger-api: INSERT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "COMMIT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.23,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-relay",
|
||||
"name": "attachment.process publish",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"ms": 1.79,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "attachment.process process",
|
||||
"kind": "SPAN_KIND_CONSUMER",
|
||||
"ms": 39.52,
|
||||
"parent": "messenger-relay: attachment.process publish",
|
||||
"outcome": "done",
|
||||
"attempt": "1",
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.16,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.12,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 3.24,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.66,
|
||||
"parent": "messenger-worker: SELECT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.33,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.2,
|
||||
"parent": "messenger-worker: SELECT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.33,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.43,
|
||||
"parent": "messenger-worker: SELECT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.65,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.13,
|
||||
"parent": "messenger-worker: UPDATE",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.66,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.11,
|
||||
"parent": "messenger-worker: UPDATE",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.52,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.03,
|
||||
"parent": "messenger-worker: INSERT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "COMMIT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.27,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
}
|
||||
],
|
||||
"worker_log_events": [
|
||||
"job.claimed",
|
||||
"job.done"
|
||||
]
|
||||
},
|
||||
"metrics": {
|
||||
"found": {
|
||||
"http requests (counter = _count)": {
|
||||
"series": 11,
|
||||
"names": [
|
||||
"http_server_request_duration_seconds_count"
|
||||
]
|
||||
},
|
||||
"http duration histogram (s)": {
|
||||
"series": 154,
|
||||
"names": [
|
||||
"http_server_request_duration_seconds_bucket"
|
||||
]
|
||||
},
|
||||
"jobs processed by outcome": {
|
||||
"series": 1,
|
||||
"names": [
|
||||
"messenger_jobs_processed_total"
|
||||
]
|
||||
},
|
||||
"job duration histogram (s)": {
|
||||
"series": 14,
|
||||
"names": [
|
||||
"messenger_job_duration_seconds_bucket"
|
||||
]
|
||||
},
|
||||
"time to ready histogram (s)": {
|
||||
"series": 14,
|
||||
"names": [
|
||||
"messenger_attachment_time_to_ready_seconds_bucket"
|
||||
]
|
||||
},
|
||||
"queue backlog by state": {
|
||||
"series": 3,
|
||||
"names": [
|
||||
"messenger_jobs_backlog"
|
||||
]
|
||||
},
|
||||
"oldest job age (s)": {
|
||||
"series": 1,
|
||||
"names": [
|
||||
"messenger_jobs_oldest_age_seconds"
|
||||
]
|
||||
},
|
||||
"outbox pending": {
|
||||
"series": 1,
|
||||
"names": [
|
||||
"messenger_outbox_pending"
|
||||
]
|
||||
},
|
||||
"rabbitmq queue messages": {
|
||||
"series": 2,
|
||||
"names": [
|
||||
"rabbitmq_queue_messages_ready"
|
||||
]
|
||||
},
|
||||
"worker busy": {
|
||||
"series": 1,
|
||||
"names": [
|
||||
"messenger_worker_busy"
|
||||
]
|
||||
},
|
||||
"worker capacity": {
|
||||
"series": 1,
|
||||
"names": [
|
||||
"messenger_worker_capacity"
|
||||
]
|
||||
},
|
||||
"db pool acquired": {
|
||||
"series": 4,
|
||||
"names": [
|
||||
"pgxpool_acquired_connections"
|
||||
]
|
||||
},
|
||||
"db pool waits": {
|
||||
"series": 8,
|
||||
"names": [
|
||||
"pgxpool_empty_acquire_total",
|
||||
"pgxpool_empty_acquire_wait_time_nanoseconds_total"
|
||||
]
|
||||
},
|
||||
"process cpu": {
|
||||
"series": 8,
|
||||
"names": [
|
||||
"process_cpu_time_seconds_total"
|
||||
]
|
||||
},
|
||||
"go memory": {
|
||||
"series": 8,
|
||||
"names": [
|
||||
"go_memory_used_bytes"
|
||||
]
|
||||
}
|
||||
},
|
||||
"labels_total": 131,
|
||||
"forbidden_labels": [],
|
||||
"http_route_values": [
|
||||
"/api/v1/attachments/{attachment_id}",
|
||||
"/api/v1/auth/sessions",
|
||||
"/api/v1/chats",
|
||||
"/api/v1/chats/{chat_id}/attachments",
|
||||
"/api/v1/chats/{chat_id}/messages",
|
||||
"/api/v1/users",
|
||||
"/health/live",
|
||||
"/health/ready"
|
||||
],
|
||||
"example_series_labels": [
|
||||
"__name__",
|
||||
"http_request_method",
|
||||
"http_response_status_class",
|
||||
"http_response_status_code",
|
||||
"http_route",
|
||||
"instance",
|
||||
"job"
|
||||
]
|
||||
},
|
||||
"leak_check": {
|
||||
"loki:password": 0,
|
||||
"loki:session_token": 0,
|
||||
"loki:message_text": 0,
|
||||
"loki:bearer_header": 0,
|
||||
"tempo:password": 0,
|
||||
"tempo:session_token": 0,
|
||||
"tempo:message_text": 0,
|
||||
"tempo:bearer_header": 0,
|
||||
"stdout:password": 0,
|
||||
"stdout:session_token": 0,
|
||||
"stdout:message_text": 0,
|
||||
"stdout:bearer_header": 0
|
||||
},
|
||||
"grafana": {
|
||||
"datasources": [
|
||||
"loki:loki",
|
||||
"prometheus:prometheus",
|
||||
"tempo:tempo"
|
||||
],
|
||||
"dashboard": "Messenger — API, worker, очередь",
|
||||
"panels": 30,
|
||||
"prometheus_targets": 39,
|
||||
"targets_without_data_now": [
|
||||
{
|
||||
"panel": "Ready быстрее 30 s (5m)",
|
||||
"legend": "",
|
||||
"series": 0
|
||||
},
|
||||
{
|
||||
"panel": "Доля ошибок 5xx и 4xx",
|
||||
"legend": "4xx / все (ошибки клиента)",
|
||||
"series": 0
|
||||
}
|
||||
],
|
||||
"targets": [
|
||||
{
|
||||
"panel": "RPS API (бизнес)",
|
||||
"legend": "",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Доля 5xx (1m)",
|
||||
"legend": "",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Быстрее 250 ms (5m)",
|
||||
"legend": "",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Ready быстрее 30 s (5m)",
|
||||
"legend": "",
|
||||
"series": 0
|
||||
},
|
||||
{
|
||||
"panel": "Старейшая job",
|
||||
"legend": "",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Alerts firing",
|
||||
"legend": "",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "RPS по маршруту и классу ответа",
|
||||
"legend": "{{http_route}} {{http_response_status_class}}",
|
||||
"series": 6
|
||||
},
|
||||
{
|
||||
"panel": "Задержка API p50 / p95 / p99 (все реплики)",
|
||||
"legend": "p50",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Задержка API p50 / p95 / p99 (все реплики)",
|
||||
"legend": "p95",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Задержка API p50 / p95 / p99 (все реплики)",
|
||||
"legend": "p99",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Доля ошибок 5xx и 4xx",
|
||||
"legend": "5xx / все",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Доля ошибок 5xx и 4xx",
|
||||
"legend": "4xx / все (ошибки клиента)",
|
||||
"series": 0
|
||||
},
|
||||
{
|
||||
"panel": "p95 по маршруту",
|
||||
"legend": "{{http_route}}",
|
||||
"series": 6
|
||||
},
|
||||
{
|
||||
"panel": "Запросы в обработке (in-flight) по реплике",
|
||||
"legend": "{{instance}}",
|
||||
"series": 2
|
||||
},
|
||||
{
|
||||
"panel": "Jobs по исходу (rate)",
|
||||
"legend": "{{outcome}}",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Длительность обработки job p50 / p95 / p99",
|
||||
"legend": "p50",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Длительность обработки job p50 / p95 / p99",
|
||||
"legend": "p95",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Длительность обработки job p50 / p95 / p99",
|
||||
"legend": "p99",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Время до ready (202 → ready) p50 / p95",
|
||||
"legend": "p50",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Время до ready (202 → ready) p50 / p95",
|
||||
"legend": "p95",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Очередь: jobs по состоянию (PostgreSQL)",
|
||||
"legend": "{{state}}",
|
||||
"series": 3
|
||||
},
|
||||
{
|
||||
"panel": "Очередь: jobs по состоянию (PostgreSQL)",
|
||||
"legend": "outbox не опубликовано",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Возраст старейшей job / outbox",
|
||||
"legend": "job (queued/processing)",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Возраст старейшей job / outbox",
|
||||
"legend": "outbox",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "RabbitMQ: сообщения в очередях",
|
||||
"legend": "ready {{queue}}",
|
||||
"series": 2
|
||||
},
|
||||
{
|
||||
"panel": "RabbitMQ: сообщения в очередях",
|
||||
"legend": "unacked {{queue}}",
|
||||
"series": 2
|
||||
},
|
||||
{
|
||||
"panel": "Saturation worker (busy / capacity)",
|
||||
"legend": "занято слотов",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Publish outbox → broker (confirm) p95",
|
||||
"legend": "p95",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Publish outbox → broker (confirm) p95",
|
||||
"legend": "сообщений/с",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Пул БД: занято / ожидания",
|
||||
"legend": "занято {{job}}",
|
||||
"series": 3
|
||||
},
|
||||
{
|
||||
"panel": "Пул БД: занято / ожидания",
|
||||
"legend": "max {{job}}",
|
||||
"series": 3
|
||||
},
|
||||
{
|
||||
"panel": "Пул БД: занято / ожидания",
|
||||
"legend": "ожиданий/с {{job}}",
|
||||
"series": 3
|
||||
},
|
||||
{
|
||||
"panel": "CPU процессов",
|
||||
"legend": "{{job}} {{instance}}",
|
||||
"series": 4
|
||||
},
|
||||
{
|
||||
"panel": "Память Go (used)",
|
||||
"legend": "{{job}} {{instance}}",
|
||||
"series": 4
|
||||
},
|
||||
{
|
||||
"panel": "Collector: принято / отправлено / потеряно spans",
|
||||
"legend": "принято",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Collector: принято / отправлено / потеряно spans",
|
||||
"legend": "отправлено",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Collector: принято / отправлено / потеряно spans",
|
||||
"legend": "не доставлено",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Collector: принято / отправлено / потеряно spans",
|
||||
"legend": "отклонено (memory_limiter)",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Collector: принято / отправлено / потеряно spans",
|
||||
"legend": "очередь экспортёров",
|
||||
"series": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"attachment": {
|
||||
"id": "ec322ba6-ae46-4757-b0c8-0d79d3ba2b42",
|
||||
"status": "ready"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user