This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"uid": "messenger-overview",
|
||||
"title": "Messenger observability",
|
||||
"tags": ["lab6", "messenger"],
|
||||
"timezone": "browser",
|
||||
"schemaVersion": 39,
|
||||
"version": 1,
|
||||
"refresh": "5s",
|
||||
"time": {"from": "now-15m", "to": "now"},
|
||||
"panels": [
|
||||
{"id": 1, "type": "timeseries", "title": "HTTP requests per second", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 12, "x": 0, "y": 0}, "targets": [{"expr": "sum by (service_name) (rate(messenger_http_requests_total[1m]))", "legendFormat": "{{service_name}}", "refId": "A"}], "fieldConfig": {"defaults": {"unit": "reqps"}, "overrides": []}},
|
||||
{"id": 2, "type": "timeseries", "title": "HTTP 5xx per second", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 12, "x": 12, "y": 0}, "targets": [{"expr": "sum(rate(messenger_http_requests_total{http_response_status_class=\"5xx\"}[1m]))", "legendFormat": "5xx", "refId": "A"}], "fieldConfig": {"defaults": {"unit": "reqps"}, "overrides": []}},
|
||||
{"id": 3, "type": "timeseries", "title": "HTTP request duration p95", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 12, "x": 0, "y": 8}, "targets": [{"expr": "histogram_quantile(0.95, sum by (le) (rate(messenger_http_duration_seconds_bucket[5m])))", "legendFormat": "p95", "refId": "A"}], "fieldConfig": {"defaults": {"unit": "s"}, "overrides": []}},
|
||||
{"id": 4, "type": "timeseries", "title": "Attachment jobs by outcome", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 12, "x": 12, "y": 8}, "targets": [{"expr": "sum by (job_outcome) (rate(messenger_jobs_processed_total[1m]))", "legendFormat": "{{job_outcome}}", "refId": "A"}], "fieldConfig": {"defaults": {"unit": "ops"}, "overrides": []}},
|
||||
{"id": 5, "type": "timeseries", "title": "Worker processing duration p95", "datasource": {"type": "prometheus", "uid": "prometheus"}, "gridPos": {"h": 8, "w": 24, "x": 0, "y": 16}, "targets": [{"expr": "histogram_quantile(0.95, sum by (le) (rate(messenger_jobs_duration_seconds_bucket[5m])))", "legendFormat": "p95", "refId": "A"}], "fieldConfig": {"defaults": {"unit": "s"}, "overrides": []}}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
apiVersion: 1
|
||||
providers:
|
||||
- name: messenger
|
||||
orgId: 1
|
||||
folder: Messenger
|
||||
type: file
|
||||
disableDeletion: false
|
||||
editable: true
|
||||
options:
|
||||
path: /etc/grafana/provisioning/dashboards-json
|
||||
@@ -0,0 +1,46 @@
|
||||
apiVersion: 1
|
||||
datasources:
|
||||
- name: Prometheus
|
||||
uid: prometheus
|
||||
type: prometheus
|
||||
access: proxy
|
||||
url: https://prometheus:9090
|
||||
isDefault: true
|
||||
jsonData:
|
||||
tlsAuthWithCACert: true
|
||||
tlsSkipVerify: false
|
||||
secureJsonData:
|
||||
tlsCACert: $SERVICE_CA_CERT
|
||||
- name: Loki
|
||||
uid: loki
|
||||
type: loki
|
||||
access: proxy
|
||||
url: https://loki:3100
|
||||
jsonData:
|
||||
tlsAuthWithCACert: true
|
||||
tlsSkipVerify: false
|
||||
derivedFields:
|
||||
- name: TraceID
|
||||
matcherRegex: 'trace_id="?([a-f0-9]{32})"?'
|
||||
datasourceUid: tempo
|
||||
url: '$${__value.raw}'
|
||||
secureJsonData:
|
||||
tlsCACert: $SERVICE_CA_CERT
|
||||
- name: Tempo
|
||||
uid: tempo
|
||||
type: tempo
|
||||
access: proxy
|
||||
url: https://tempo:3200
|
||||
jsonData:
|
||||
tlsAuthWithCACert: true
|
||||
tlsSkipVerify: false
|
||||
tracesToLogsV2:
|
||||
datasourceUid: loki
|
||||
spanStartTimeShift: "-1m"
|
||||
spanEndTimeShift: "1m"
|
||||
filterByTraceID: true
|
||||
filterBySpanID: false
|
||||
customQuery: true
|
||||
query: '{${__tags}} | trace_id="${__trace.traceId}"'
|
||||
secureJsonData:
|
||||
tlsCACert: $SERVICE_CA_CERT
|
||||
Reference in New Issue
Block a user