diff --git a/docs/1C_GRAFANA_DEPLOYMENT_RU.md b/docs/1C_GRAFANA_DEPLOYMENT_RU.md index 9458185..441f853 100755 --- a/docs/1C_GRAFANA_DEPLOYMENT_RU.md +++ b/docs/1C_GRAFANA_DEPLOYMENT_RU.md @@ -75,7 +75,7 @@ curl -fsS http://127.0.0.1:9090/-/healthy Проверка Grafana: - URL: `http://:3000` -- Дашборд: `1C Бухгалтерия — Overview` +- Дашборд: `1C Бухгалтерия — Обзор` - Дашборд: `1C Бухгалтерия — SRE` E2E health-check: diff --git a/grafana-1c/grafana/dashboards/1c-accounting-overview.json b/grafana-1c/grafana/dashboards/1c-accounting-overview.json index b52edc5..55983d9 100755 --- a/grafana-1c/grafana/dashboards/1c-accounting-overview.json +++ b/grafana-1c/grafana/dashboards/1c-accounting-overview.json @@ -7,6 +7,7 @@ "graphTooltip": 0, "id": null, "links": [], + "title": "1C Бухгалтерия — Обзор", "panels": [ { "datasource": { @@ -335,8 +336,7 @@ }, "timepicker": {}, "timezone": "", - "title": "1C Бухгалтерия — Overview", "uid": "onec-accounting-overview", "version": 1, "weekStart": "" -} +} \ No newline at end of file diff --git a/grafana-1c/grafana/dashboards/1c-accounting-sre.json b/grafana-1c/grafana/dashboards/1c-accounting-sre.json index 4d6995a..ddf6397 100755 --- a/grafana-1c/grafana/dashboards/1c-accounting-sre.json +++ b/grafana-1c/grafana/dashboards/1c-accounting-sre.json @@ -1,46 +1,80 @@ { - "annotations": { "list": [] }, + "annotations": { + "list": [] + }, "editable": true, "graphTooltip": 0, "id": null, "links": [], "panels": [ { - "datasource": { "type": "prometheus", "uid": "prometheus" }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ - { "color": "green", "value": null }, - { "color": "red", "value": 7200 } + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 7200 + } ] }, "unit": "s" }, "overrides": [] }, - "gridPos": { "h": 8, "w": 8, "x": 0, "y": 0 }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 0 + }, "id": 1, "options": { "colorMode": "value", "graphMode": "none", - "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, "textMode": "auto" }, - "targets": [{ "expr": "max(onec_data_freshness_seconds)", "refId": "A" }], + "targets": [ + { + "expr": "max(onec_data_freshness_seconds)", + "refId": "A" + } + ], "title": "Свежесть данных (сек)", "type": "stat" }, { - "datasource": { "type": "prometheus", "uid": "prometheus" }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, "fieldConfig": { "defaults": { "mappings": [ { "options": { - "0": { "text": "DOWN" }, - "1": { "text": "UP" } + "0": { + "text": "DOWN" + }, + "1": { + "text": "UP" + } }, "type": "value" } @@ -48,41 +82,97 @@ }, "overrides": [] }, - "gridPos": { "h": 8, "w": 8, "x": 8, "y": 0 }, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 0 + }, "id": 2, "options": { "colorMode": "value", "graphMode": "none", - "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, "textMode": "auto" }, - "targets": [{ "expr": "max(up{job=\"onec_sql_exporter\"})", "refId": "A" }], + "targets": [ + { + "expr": "max(up{job=\"onec_sql_exporter\"})", + "refId": "A" + } + ], "title": "SQL Exporter", "type": "stat" }, { - "datasource": { "type": "prometheus", "uid": "prometheus" }, - "fieldConfig": { "defaults": {}, "overrides": [] }, - "gridPos": { "h": 8, "w": 8, "x": 16, "y": 0 }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 0 + }, "id": 3, "options": { "colorMode": "value", "graphMode": "none", - "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, "textMode": "auto" }, - "targets": [{ "expr": "sum(ALERTS{alertstate=\"firing\",service=\"onec\"})", "refId": "A" }], + "targets": [ + { + "expr": "sum(ALERTS{alertstate=\"firing\",service=\"onec\"})", + "refId": "A" + } + ], "title": "Активные алерты 1С", "type": "stat" }, { - "datasource": { "type": "prometheus", "uid": "prometheus" }, - "fieldConfig": { "defaults": {}, "overrides": [] }, - "gridPos": { "h": 10, "w": 24, "x": 0, "y": 8 }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 8 + }, "id": 4, "options": { - "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, - "tooltip": { "mode": "single", "sort": "none" } + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } }, "targets": [ { @@ -98,12 +188,20 @@ "refresh": "30s", "schemaVersion": 39, "style": "dark", - "tags": ["1c", "sre"], - "templating": { "list": [] }, - "time": { "from": "now-24h", "to": "now" }, + "tags": [ + "1c", + "sre" + ], + "templating": { + "list": [] + }, + "time": { + "from": "now-24h", + "to": "now" + }, "timezone": "", "title": "1C Бухгалтерия — SRE", "uid": "onec-accounting-sre", "version": 1, "weekStart": "" -} +} \ No newline at end of file