https://localhost:3443/api/datasources/proxy/uid/lab6-prometheus/-/ready after 2.110s
https://localhost:3443/api/datasources/proxy/uid/lab6-loki/ready after 0.031s
https://localhost:3443/api/datasources/proxy/uid/lab6-tempo/ready after 0.031s
https://localhost:3443/api/health after 0.000s
{"error_status": 401, "evidence": "traffic", "get": 48, "post_status": 201, "seconds": 8.781}
ready id=5b8a2406-aeb6-4530-857d-2d01697cf1bd wait=0.469s original_sha256=ace1be28b069b65a25a7be16509625856018cfaad48d1ccb5370824e65f8ae20 jpeg=256x256 thumb_sha256=c33e884cadb4a5ae24d1069d30e18f72ee9c4cee084c618b5ce1afc8a76b838f read=api2/api1
api.success after 0.109s
{"evidence": "api.success", "log": ["1795209908440998400", "http.completed", {"code_file_path": "/app/src/telemetry.py", "code_function_name": "event", "code_line_number": "88", "deployment_environment_name": "lab", "detected_level": "INFO", "event": "http.completed", "flags": "1", "method": "POST", "observed_timestamp": "1795209908441045728", "request_id": "571afe55-7d89-40a7-9065-c8b833c73541", "route": "/api/v1/chats/{chat_id}/messages", "scope_name": "lab7.events", "service_instance_id": "api1", "service_name": "messenger-api", "service_version": "1.7.0", "severity_number": "9", "severity_text": "INFO", "span_id": "b05134a8fdc4740f", "status_code": "201", "trace_id": "386c617c985c58c7c03c3b1511f4d4a4"}], "query": "{service_name=\"messenger-api\"} | request_id=\"571afe55-7d89-40a7-9065-c8b833c73541\" | event=\"http.completed\"", "tempo": {"duration_ns": 12819798, "resource": {"deployment.environment.name": {"stringValue": "lab"}, "service.instance.id": {"stringValue": "api1"}, "service.name": {"stringValue": "messenger-api"}, "service.version": {"stringValue": "1.7.0"}}, "service": "messenger-api", "span": {"attributes": [{"key": "http.request.method", "value": {"stringValue": "POST"}}, {"key": "http.route", "value": {"stringValue": "/api/v1/chats/{chat_id}/messages"}}, {"key": "http.response.status_code", "value": {"intValue": "201"}}, {"key": "request.id", "value": {"stringValue": "571afe55-7d89-40a7-9065-c8b833c73541"}}, {"key": "outcome", "value": {"stringValue": "2xx"}}], "endTimeUnixNano": "1795209908441105330", "kind": "SPAN_KIND_SERVER", "name": "POST /api/v1/chats/{chat_id}/messages", "spanId": "sFE0qP3EdA8=", "startTimeUnixNano": "1795209908428285532", "status": {"code": "STATUS_CODE_OK"}, "traceId": "OGxhfJhcWMfAPDsVEfTUpA=="}, "span_id": "b05134a8fdc4740f", "trace_id": "386c617c985c58c7c03c3b1511f4d4a4"}}
api.401 after 0.110s
{"evidence": "api.401", "log": ["1795209908466091520", "http.completed", {"code_file_path": "/app/src/telemetry.py", "code_function_name": "event", "code_line_number": "88", "deployment_environment_name": "lab", "detected_level": "WARN", "error_code": "unauthorized", "event": "http.completed", "flags": "1", "method": "GET", "observed_timestamp": "1795209908466140206", "request_id": "bbc7efc3-b86f-4d1c-adb5-08318e27ba2a", "route": "/api/v1/users/me", "scope_name": "lab7.events", "service_instance_id": "api2", "service_name": "messenger-api", "service_version": "1.7.0", "severity_number": "13", "severity_text": "WARN", "span_id": "5a0d4d8597acfe96", "status_code": "401", "trace_id": "55a4a944f343fcd6eb2ff146d1e8dd18"}], "query": "{service_name=\"messenger-api\"} | request_id=\"bbc7efc3-b86f-4d1c-adb5-08318e27ba2a\" | event=\"http.completed\"", "tempo": {"duration_ns": 5372067, "resource": {"deployment.environment.name": {"stringValue": "lab"}, "service.instance.id": {"stringValue": "api2"}, "service.name": {"stringValue": "messenger-api"}, "service.version": {"stringValue": "1.7.0"}}, "service": "messenger-api", "span": {"attributes": [{"key": "http.request.method", "value": {"stringValue": "GET"}}, {"key": "http.route", "value": {"stringValue": "/api/v1/users/me"}}, {"key": "http.response.status_code", "value": {"intValue": "401"}}, {"key": "request.id", "value": {"stringValue": "bbc7efc3-b86f-4d1c-adb5-08318e27ba2a"}}, {"key": "outcome", "value": {"stringValue": "4xx"}}], "endTimeUnixNano": "1795209908466203708", "kind": "SPAN_KIND_SERVER", "name": "GET /api/v1/users/me", "spanId": "Wg1NhZes/pY=", "startTimeUnixNano": "1795209908460831641", "status": {"code": "STATUS_CODE_OK"}, "traceId": "VaSpRPND/NbrL/FG0ejdGA=="}, "span_id": "5a0d4d8597acfe96", "trace_id": "55a4a944f343fcd6eb2ff146d1e8dd18"}}
worker.ready after 2.234s
{"evidence": "worker.ready", "log": ["1795209917578860032", "job.outcome", {"attachment_id": "5b8a2406-aeb6-4530-857d-2d01697cf1bd", "attempt": "1", "code_file_path": "/app/src/telemetry.py", "code_function_name": "event", "code_line_number": "88", "deployment_environment_name": "lab", "detected_level": "INFO", "event": "job.outcome", "flags": "1", "job_id": "99b9e1c1-26f2-4fd9-ae2c-472a0e5fcda7", "job_type": "attachment.process.v1", "observed_timestamp": "1795209917578936111", "outcome": "ready", "scope_name": "lab7.events", "service_instance_id": "worker", "service_name": "messenger-worker", "service_version": "1.7.0", "severity_number": "9", "severity_text": "INFO", "span_id": "fabecbb5df1408ba", "trace_id": "100a7c11d5d90e43005bc886519abe02"}], "query": "{service_name=\"messenger-worker\"} | attachment_id=\"5b8a2406-aeb6-4530-857d-2d01697cf1bd\" | event=\"job.outcome\" | outcome=\"ready\"", "tempo": {"duration_ns": 161891618, "resource": {"deployment.environment.name": {"stringValue": "lab"}, "service.instance.id": {"stringValue": "worker"}, "service.name": {"stringValue": "messenger-worker"}, "service.version": {"stringValue": "1.7.0"}}, "service": "messenger-worker", "span": {"attributes": [{"key": "messaging.operation.type", "value": {"stringValue": "process"}}, {"key": "messaging.system", "value": {"stringValue": "rabbitmq"}}, {"key": "job_id", "value": {"stringValue": "99b9e1c1-26f2-4fd9-ae2c-472a0e5fcda7"}}, {"key": "attachment_id", "value": {"stringValue": "5b8a2406-aeb6-4530-857d-2d01697cf1bd"}}, {"key": "attempt", "value": {"intValue": "1"}}, {"key": "job_type", "value": {"stringValue": "attachment.process.v1"}}, {"key": "outcome", "value": {"stringValue": "ready"}}], "endTimeUnixNano": "1795209917580178849", "flags": 256, "kind": "SPAN_KIND_CONSUMER", "name": "attachment.process.v1", "spanId": "+r7Ltd8UCLo=", "startTimeUnixNano": "1795209917418287231", "status": {"code": "STATUS_CODE_OK"}, "traceId": "EAp8EdXZDkMAW8iGUZq+Ag=="}, "span_id": "fabecbb5df1408ba", "trace_id": "100a7c11d5d90e43005bc886519abe02"}}
{"checked_series": 32, "evidence": "prometheus", "query": "messenger_http_requests_total", "samples": [{"metric": {"__name__": "messenger_http_requests_total", "deployment_environment_name": "lab", "instance": "api1", "job": "messenger-api", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api1", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "2xx"}, "value": [1795209920.404, "4"]}, {"metric": {"__name__": "messenger_http_requests_total", "deployment_environment_name": "lab", "instance": "api2", "job": "messenger-api", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api2", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "2xx"}, "value": [1795209920.404, "1"]}, {"metric": {"__name__": "messenger_http_requests_total", "deployment_environment_name": "lab", "instance": "api2", "job": "messenger-api", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api2", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "4xx"}, "value": [1795209920.404, "1"]}]}
{"checked_series": 32, "evidence": "prometheus", "query": "messenger_http_duration_seconds_sum", "samples": [{"metric": {"__name__": "messenger_http_duration_seconds_sum", "deployment_environment_name": "lab", "instance": "api1", "job": "messenger-api", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api1", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "2xx"}, "value": [1795209920.441, "0.06657035399803135"]}, {"metric": {"__name__": "messenger_http_duration_seconds_sum", "deployment_environment_name": "lab", "instance": "api2", "job": "messenger-api", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api2", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "2xx"}, "value": [1795209920.441, "0.014824306999798864"]}, {"metric": {"__name__": "messenger_http_duration_seconds_sum", "deployment_environment_name": "lab", "instance": "api2", "job": "messenger-api", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api2", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "4xx"}, "value": [1795209920.441, "0.006765788000848261"]}]}
{"checked_series": 32, "evidence": "prometheus", "query": "messenger_http_duration_seconds_count", "samples": [{"metric": {"__name__": "messenger_http_duration_seconds_count", "deployment_environment_name": "lab", "instance": "api1", "job": "messenger-api", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api1", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "2xx"}, "value": [1795209920.473, "4"]}, {"metric": {"__name__": "messenger_http_duration_seconds_count", "deployment_environment_name": "lab", "instance": "api2", "job": "messenger-api", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api2", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "2xx"}, "value": [1795209920.473, "1"]}, {"metric": {"__name__": "messenger_http_duration_seconds_count", "deployment_environment_name": "lab", "instance": "api2", "job": "messenger-api", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api2", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "4xx"}, "value": [1795209920.473, "1"]}]}
{"checked_series": 448, "evidence": "prometheus", "query": "messenger_http_duration_seconds_bucket", "samples": [{"metric": {"__name__": "messenger_http_duration_seconds_bucket", "deployment_environment_name": "lab", "instance": "api1", "job": "messenger-api", "le": "+Inf", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api1", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "2xx"}, "value": [1795209920.528, "4"]}, {"metric": {"__name__": "messenger_http_duration_seconds_bucket", "deployment_environment_name": "lab", "instance": "api2", "job": "messenger-api", "le": "+Inf", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api2", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "2xx"}, "value": [1795209920.528, "1"]}, {"metric": {"__name__": "messenger_http_duration_seconds_bucket", "deployment_environment_name": "lab", "instance": "api2", "job": "messenger-api", "le": "0.005", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api2", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "2xx"}, "value": [1795209920.528, "0"]}, {"metric": {"__name__": "messenger_http_duration_seconds_bucket", "deployment_environment_name": "lab", "instance": "api1", "job": "messenger-api", "le": "0.005", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api1", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "2xx"}, "value": [1795209920.528, "0"]}, {"metric": {"__name__": "messenger_http_duration_seconds_bucket", "deployment_environment_name": "lab", "instance": "api2", "job": "messenger-api", "le": "0.005", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api2", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "4xx"}, "value": [1795209920.528, "0"]}, {"metric": {"__name__": "messenger_http_duration_seconds_bucket", "deployment_environment_name": "lab", "instance": "api2", "job": "messenger-api", "le": "+Inf", "method": "GET", "route": "/api/v1/attachments/{attachment_id}/content", "service_instance_id": "api2", "service_name": "messenger-api", "service_version": "1.7.0", "status_class": "4xx"}, "value": [1795209920.528, "1"]}]}
{"checked_series": 2, "evidence": "prometheus", "query": "messenger_job_outcomes_total", "samples": [{"metric": {"__name__": "messenger_job_outcomes_total", "deployment_environment_name": "lab", "instance": "worker", "job": "messenger-worker", "job_type": "attachment.process.v1", "outcome": "success", "service_instance_id": "worker", "service_name": "messenger-worker", "service_version": "1.7.0"}, "value": [1795209920.6, "5"]}, {"metric": {"__name__": "messenger_job_outcomes_total", "deployment_environment_name": "lab", "instance": "worker", "job": "messenger-worker", "job_type": "attachment.process.v1", "outcome": "fail", "service_instance_id": "worker", "service_name": "messenger-worker", "service_version": "1.7.0"}, "value": [1795209920.6, "2"]}]}
{"checked_series": 2, "evidence": "prometheus", "query": "messenger_job_duration_seconds_sum", "samples": [{"metric": {"__name__": "messenger_job_duration_seconds_sum", "deployment_environment_name": "lab", "instance": "worker", "job": "messenger-worker", "job_type": "attachment.process.v1", "outcome": "success", "service_instance_id": "worker", "service_name": "messenger-worker", "service_version": "1.7.0"}, "value": [1795209920.665, "0.35468465800113336"]}, {"metric": {"__name__": "messenger_job_duration_seconds_sum", "deployment_environment_name": "lab", "instance": "worker", "job": "messenger-worker", "job_type": "attachment.process.v1", "outcome": "fail", "service_instance_id": "worker", "service_name": "messenger-worker", "service_version": "1.7.0"}, "value": [1795209920.665, "0.06816949199856026"]}]}
{"checked_series": 2, "evidence": "prometheus", "query": "messenger_job_duration_seconds_count", "samples": [{"metric": {"__name__": "messenger_job_duration_seconds_count", "deployment_environment_name": "lab", "instance": "worker", "job": "messenger-worker", "job_type": "attachment.process.v1", "outcome": "success", "service_instance_id": "worker", "service_name": "messenger-worker", "service_version": "1.7.0"}, "value": [1795209920.754, "5"]}, {"metric": {"__name__": "messenger_job_duration_seconds_count", "deployment_environment_name": "lab", "instance": "worker", "job": "messenger-worker", "job_type": "attachment.process.v1", "outcome": "fail", "service_instance_id": "worker", "service_name": "messenger-worker", "service_version": "1.7.0"}, "value": [1795209920.754, "2"]}]}
{"checked_series": 28, "evidence": "prometheus", "query": "messenger_job_duration_seconds_bucket", "samples": [{"metric": {"__name__": "messenger_job_duration_seconds_bucket", "deployment_environment_name": "lab", "instance": "worker", "job": "messenger-worker", "job_type": "attachment.process.v1", "le": "0.005", "outcome": "success", "service_instance_id": "worker", "service_name": "messenger-worker", "service_version": "1.7.0"}, "value": [1795209920.809, "0"]}, {"metric": {"__name__": "messenger_job_duration_seconds_bucket", "deployment_environment_name": "lab", "instance": "worker", "job": "messenger-worker", "job_type": "attachment.process.v1", "le": "+Inf", "outcome": "success", "service_instance_id": "worker", "service_name": "messenger-worker", "service_version": "1.7.0"}, "value": [1795209920.809, "5"]}, {"metric": {"__name__": "messenger_job_duration_seconds_bucket", "deployment_environment_name": "lab", "instance": "worker", "job": "messenger-worker", "job_type": "attachment.process.v1", "le": "0.005", "outcome": "fail", "service_instance_id": "worker", "service_name": "messenger-worker", "service_version": "1.7.0"}, "value": [1795209920.809, "0"]}, {"metric": {"__name__": "messenger_job_duration_seconds_bucket", "deployment_environment_name": "lab", "instance": "worker", "job": "messenger-worker", "job_type": "attachment.process.v1", "le": "+Inf", "outcome": "fail", "service_instance_id": "worker", "service_name": "messenger-worker", "service_version": "1.7.0"}, "value": [1795209920.809, "2"]}]}
all real counter and histogram series after 0.469s
{"evidence": "grafana.datasource", "health": {"message": "Successfully queried the Prometheus API.", "status": "OK"}, "type": "prometheus", "uid": "lab6-prometheus", "url": "https://prometheus:9090"}
{"evidence": "grafana.datasource", "health": {"message": "Data source successfully connected.", "status": "OK"}, "type": "loki", "uid": "lab6-loki", "url": "https://loki:3100"}
{"evidence": "grafana.datasource", "health": {"body": "ready", "http_status": 200}, "type": "tempo", "uid": "lab6-tempo", "url": "https://tempo:3200"}
{"evidence": "grafana.panel", "frames": 11, "id": 1, "max_value": 1.0339792173060416, "numeric_samples": 107, "query": "sum by (method, route) (rate(messenger_http_requests_total{route!~\"/health/.*\"}[1m]))", "title": "API · запросы/с"}
{"evidence": "grafana.panel", "frames": 1, "id": 2, "max_value": 0.4681378906837351, "numeric_samples": 10, "query": "sum by (status_class) (rate(messenger_http_requests_total{status_class=~\"4xx|5xx\",route!~\"/health/.*\"}[1m]))", "title": "API · 4xx и 5xx/с"}
{"evidence": "grafana.panel", "frames": 1, "id": 3, "max_value": 0.07511336019652262, "numeric_samples": 10, "query": "sum(rate(messenger_http_duration_seconds_sum{route!~\"/health/.*\"}[1m])) / sum(rate(messenger_http_duration_seconds_count{route!~\"/health/.*\"}[1m]))", "title": "API · средняя длительность"}
{"evidence": "grafana.panel", "frames": 2, "id": 4, "max_value": 5, "numeric_samples": 20, "query": "sum by (outcome) (messenger_job_outcomes_total)", "title": "Worker · успешные и неуспешные задания"}
{"evidence": "grafana.panel", "frames": 2, "id": 5, "max_value": 0.07093693160022667, "numeric_samples": 20, "query": "sum by (outcome) (messenger_job_duration_seconds_sum) / sum by (outcome) (messenger_job_duration_seconds_count)", "title": "Worker · средняя длительность"}
{"evidence": "grafana.panel", "id": 6, "query": "{service_name=~\"messenger-api|messenger-worker\"} | event != \"\"", "rows": 109, "title": "События API и worker"}
{"evidence": "grafana.trace", "span_id": "b05134a8fdc4740f", "trace_id": "386c617c985c58c7c03c3b1511f4d4a4"}
{"evidence": "grafana.trace", "span_id": "fabecbb5df1408ba", "trace_id": "100a7c11d5d90e43005bc886519abe02"}
{"evidence": "telemetry.scan", "loki_rows": 109, "matches": 0, "metric_samples": 578, "spans_queries": 5}
PASS: real metrics, logs and traces through the provisioned Grafana data sources
