lab7: TLS ко всем зависимостям и телеметрии; раздельные роли PostgreSQL (GRANT по коду), ACL Valkey, AMQPS, HTTPS S3, mTLS Collector/Prometheus/Loki/Tempo/Grafana

This commit is contained in:
Alexey Bodanyuk
2026-11-27 16:29:09 +03:00
parent f36da97951
commit 93f4ed1013
28 changed files with 621 additions and 201 deletions
+12 -12
View File
@@ -1047,7 +1047,7 @@
"type": "prometheus",
"uid": "prometheus"
},
"expr": "rate(otelcol_process_cpu_seconds[$__rate_interval])",
"expr": "rate(otelcol_process_cpu_seconds_total[$__rate_interval])",
"legendFormat": "otel-collector",
"range": true
}
@@ -1112,7 +1112,7 @@
"type": "prometheus",
"uid": "prometheus"
},
"expr": "otelcol_process_memory_rss",
"expr": "otelcol_process_memory_rss_bytes",
"legendFormat": "otel-collector RSS",
"range": true
}
@@ -1445,7 +1445,7 @@
"type": "prometheus",
"uid": "prometheus"
},
"description": "otelcol_* self-metrics, scraped from :8888. sent < accepted with tail sampling (dropped by policy).\n\nUnit: ops.",
"description": "otelcol_* self-metrics, pushed over OTLP/HTTPS (lab 7). sent < accepted with tail sampling (dropped by policy).\n\nUnit: ops.",
"gridPos": {
"h": 8,
"w": 8,
@@ -1486,7 +1486,7 @@
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(rate(otelcol_receiver_accepted_spans[$__rate_interval]))",
"expr": "sum(rate(otelcol_receiver_accepted_spans_total[$__rate_interval]))",
"legendFormat": "accepted",
"range": true
},
@@ -1496,7 +1496,7 @@
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(rate(otelcol_receiver_refused_spans[$__rate_interval]))",
"expr": "sum(rate(otelcol_receiver_refused_spans_total[$__rate_interval]))",
"legendFormat": "refused (memory_limiter)",
"range": true
},
@@ -1506,7 +1506,7 @@
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(rate(otelcol_exporter_sent_spans[$__rate_interval]))",
"expr": "sum(rate(otelcol_exporter_sent_spans_total[$__rate_interval]))",
"legendFormat": "sent to Tempo",
"range": true
},
@@ -1516,7 +1516,7 @@
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(rate(otelcol_exporter_send_failed_spans[$__rate_interval]))",
"expr": "sum(rate(otelcol_exporter_send_failed_spans_total[$__rate_interval]))",
"legendFormat": "send failed (dropped)",
"range": true
}
@@ -1571,7 +1571,7 @@
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(rate(otelcol_receiver_accepted_log_records[$__rate_interval]))",
"expr": "sum(rate(otelcol_receiver_accepted_log_records_total[$__rate_interval]))",
"legendFormat": "logs accepted",
"range": true
},
@@ -1581,7 +1581,7 @@
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(rate(otelcol_exporter_send_failed_log_records[$__rate_interval]))",
"expr": "sum(rate(otelcol_exporter_send_failed_log_records_total[$__rate_interval]))",
"legendFormat": "logs failed",
"range": true
},
@@ -1591,7 +1591,7 @@
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(rate(otelcol_receiver_accepted_metric_points[$__rate_interval]))",
"expr": "sum(rate(otelcol_receiver_accepted_metric_points_total[$__rate_interval]))",
"legendFormat": "metric points accepted",
"range": true
},
@@ -1601,7 +1601,7 @@
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(rate(otelcol_exporter_send_failed_metric_points[$__rate_interval]))",
"expr": "sum(rate(otelcol_exporter_send_failed_metric_points_total[$__rate_interval]))",
"legendFormat": "metric points failed",
"range": true
}
@@ -1787,7 +1787,7 @@
"type": "prometheus",
"uid": "prometheus"
},
"expr": "up{job=~\"otel-collector|prometheus|loki|tempo|grafana\"}",
"expr": "up{job=~\"prometheus|loki|tempo\"}",
"legendFormat": "{{job}}",
"range": true
}