From 2671ebda27eb9dff2fc878d18cab89af5bad922a Mon Sep 17 00:00:00 2001 From: chan Date: Tue, 9 Jun 2026 13:53:01 +0900 Subject: [PATCH] feat(monitor): commit preserved blackbox exporter config and observability dashboard --- docker/monitor/blackbox.yml | 10 ++ .../dashboards/baron_sso_dashboard.json | 161 ++++++++++++++++++ 2 files changed, 171 insertions(+) create mode 100644 docker/monitor/blackbox.yml create mode 100644 docker/monitor/grafana/dashboards/baron_sso_dashboard.json diff --git a/docker/monitor/blackbox.yml b/docker/monitor/blackbox.yml new file mode 100644 index 00000000..70203cc9 --- /dev/null +++ b/docker/monitor/blackbox.yml @@ -0,0 +1,10 @@ +modules: + http_2xx: + prober: http + timeout: 5s + http: + valid_status_codes: [] # Defaults to 2xx + method: GET + follow_redirects: true + fail_if_ssl: false + fail_if_not_ssl: false diff --git a/docker/monitor/grafana/dashboards/baron_sso_dashboard.json b/docker/monitor/grafana/dashboards/baron_sso_dashboard.json new file mode 100644 index 00000000..d8aab230 --- /dev/null +++ b/docker/monitor/grafana/dashboards/baron_sso_dashboard.json @@ -0,0 +1,161 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 1, + "title": "Baron SSO Service Overview", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "Prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "0": { + "color": "red", + "index": 1, + "text": "OFFLINE" + }, + "1": { + "color": "green", + "index": 0, + "text": "ONLINE" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 3 + }, + "id": 2, + "options": { + "alignValue": "center", + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "mergeValues": true, + "rowHeight": 0.8, + "showValue": "always", + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "Prometheus" + }, + "editorMode": "code", + "expr": "probe_success{job=\"baron-services-http-probe\"}", + "legendFormat": "{{instance}}", + "range": true, + "refId": "A" + } + ], + "title": "Services Health Timeline (HTTP Probe)", + "type": "state-timeline" + }, + { + "datasource": { + "type": "loki", + "uid": "Loki" + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 11 + }, + "id": 3, + "options": { + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": true, + "showTime": true, + "sortOrder": "Descending", + "wrapLogMessage": true + }, + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "Loki" + }, + "expr": "{job=\"baron-sso-logs\"}", + "refId": "A" + } + ], + "title": "Live Container Logs (Loki)", + "type": "logs" + } + ], + "refresh": "5s", + "schemaVersion": 39, + "tags": ["baron-sso", "observability"], + "style": "dark", + "timezone": "browser", + "title": "Baron SSO Observability Dashboard", + "uid": "baron_sso_observability", + "version": 1, + "weekStart": "" +} \ No newline at end of file