feat: Add pinned telemetry stack and Grafana provisioning (U1)
Wire OTLP metrics, logs, and traces to Prometheus, Loki, and Tempo with bounded Collector queues. Provision Grafana sources and a dashboard based on the stores' and Collector's documented metrics. Runtime integration awaits the application Compose stack; static syntax and wiring checks pass.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"uid": "lab6-telemetry",
|
||||
"title": "Lab 6 · Telemetry stack",
|
||||
"tags": ["lab6"],
|
||||
"timezone": "browser",
|
||||
"schemaVersion": 40,
|
||||
"version": 1,
|
||||
"refresh": "10s",
|
||||
"time": { "from": "now-1h", "to": "now" },
|
||||
"panels": [
|
||||
{
|
||||
"id": 1,
|
||||
"type": "timeseries",
|
||||
"title": "Telemetry stores and collector reachable",
|
||||
"description": "Prometheus self-scrape and internal /metrics endpoints. API and worker panels follow their actual exported metric names.",
|
||||
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "up{job=~\"prometheus|otel-collector|loki|tempo\"}",
|
||||
"legendFormat": "{{job}}"
|
||||
}
|
||||
],
|
||||
"fieldConfig": { "defaults": { "min": 0, "max": 1 }, "overrides": [] },
|
||||
"options": { "legend": { "displayMode": "list", "placement": "bottom" } },
|
||||
"gridPos": { "h": 8, "w": 24, "x": 0, "y": 0 }
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": "timeseries",
|
||||
"title": "Collector exporter queue size",
|
||||
"description": "Bounded exporter queues, sourced from the Collector's own Prometheus endpoint.",
|
||||
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "otelcol_exporter_queue_size{job=\"otel-collector\"}",
|
||||
"legendFormat": "{{exporter}}"
|
||||
}
|
||||
],
|
||||
"fieldConfig": { "defaults": { "min": 0 }, "overrides": [] },
|
||||
"options": { "legend": { "displayMode": "list", "placement": "bottom" } },
|
||||
"gridPos": { "h": 8, "w": 24, "x": 0, "y": 8 }
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
apiVersion: 1
|
||||
providers:
|
||||
- name: Lab 6
|
||||
type: file
|
||||
allowUiUpdates: false
|
||||
options:
|
||||
path: /var/lib/grafana/dashboards
|
||||
@@ -0,0 +1,18 @@
|
||||
apiVersion: 1
|
||||
datasources:
|
||||
- name: Prometheus
|
||||
uid: prometheus
|
||||
type: prometheus
|
||||
access: proxy
|
||||
url: http://prometheus:9090
|
||||
isDefault: true
|
||||
- name: Loki
|
||||
uid: loki
|
||||
type: loki
|
||||
access: proxy
|
||||
url: http://loki:3100
|
||||
- name: Tempo
|
||||
uid: tempo
|
||||
type: tempo
|
||||
access: proxy
|
||||
url: http://tempo:3200
|
||||
Reference in New Issue
Block a user