{ "__inputs": [ { "name": "DS_MIMIR", "label": "Mimir", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" }, { "name": "DS_EXPRESSION", "label": "Expression", "description": "", "type": "datasource", "pluginId": "__expr__" } ], "__elements": {}, "__requires": [ { "type": "datasource", "id": "__expr__", "version": "1.0.0" }, { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "9.5.2" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "stat", "name": "Stat", "version": "" }, { "type": "panel", "id": "timeseries", "name": "Time series", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": null, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "description": "Whether the server is actively serving requests, or is in maintenance mode.", "fieldConfig": { "defaults": { "mappings": [ { "options": { "0": { "index": 0, "text": "ACTIVE" }, "1": { "index": 1, "text": "MAINTENANCE" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 1 } ] }, "unit": "bool_yes_no" }, "overrides": [] }, "gridPos": { "h": 1, "w": 8, "x": 0, "y": 0 }, "id": 16, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "value" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "builder", "expr": "idstore_closed_for_maintenance{job=\"$instance\"}", "legendFormat": "__auto", "range": true, "refId": "A" } ], "type": "stat" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 1 }, "id": 1, "panels": [], "title": "RED", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "description": "The average time it has been taking for HTTP requests to complete.", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 20, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "smooth", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "ns" }, "overrides": [] }, "gridPos": { "h": 6, "w": 7, "x": 0, "y": 2 }, "id": 2, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "idstore_http_time{job=~\"$instance\"}", "legendFormat": "{{type}}", "range": true, "refId": "HTTPTimeUser" } ], "title": "LATENCY", "transformations": [], "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "description": "Shows the explicit configured login delays.", "fieldConfig": { "defaults": { "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "ns" }, "overrides": [] }, "gridPos": { "h": 6, "w": 1, "x": 7, "y": 2 }, "id": 15, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "exemplar": false, "expr": "idstore_ratelimit_login_delay{job=~\"$instance\"}", "instant": false, "legendFormat": "{{type}}", "range": true, "refId": "A" } ], "title": "DELAY", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "description": "The number of requests that are being serviced every second.", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 25, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "reqps" }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 8, "y": 2 }, "id": 3, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "rate(idstore_http_requests_total{job=~\"$instance\"}[$__rate_interval])", "legendFormat": "{{type}}", "range": true, "refId": "A" } ], "title": "TRAFFIC", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "description": "The numbers of requests that are ending in some kind of error.", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 25, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "cps" }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 16, "y": 2 }, "id": 4, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "rate(idstore_http_responses_4xx_total{job=~\"$instance\"}[$__rate_interval])", "legendFormat": "4xx", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "rate(idstore_http_responses_5xx_total{job=~\"$instance\"}[$__rate_interval])", "hide": false, "legendFormat": "5xx", "range": true, "refId": "B" } ], "title": "ERRORS", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 25, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "normal" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 0, "y": 8 }, "id": 10, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "idstore_sessions{job=~\"$instance\"}", "legendFormat": "{{type}}", "range": true, "refId": "A" } ], "title": "SESSIONS", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "description": "The number of occurrences of rate limit violations per second.", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 12, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "smooth", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 8, "y": 8 }, "id": 9, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "sum by (operation) (rate(idstore_ratelimit_triggers_total{job=~\"$instance\"}[$__rate_interval]))", "legendFormat": "{{operation}}", "range": true, "refId": "A" } ], "title": "RATE LIMITS", "type": "timeseries" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 14 }, "id": 5, "panels": [], "title": "DATABASE", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "description": "The periodically sampled time that database connections are being held open due to transactions in progress.", "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 20, "gradientMode": "scheme", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "smooth", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "ns" }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 0, "y": 15 }, "id": 6, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": false }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "idstore_db_connection_time{job=~\"$instance\"}", "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "CONNECTION TIME", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "description": "The number of transactions that are being committed or rolled back every second.", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 25, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "normal" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "ops" }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 8, "y": 15 }, "id": 7, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "rate(idstore_db_commits_total{job=~\"$instance\"}[$__rate_interval])", "legendFormat": "commits", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "rate(idstore_db_rollbacks_total{job=~\"$instance\"}[$__rate_interval])", "hide": false, "legendFormat": "rollbacks", "range": true, "refId": "B" } ], "title": "TRANSACTIONS", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "description": "The number of active database connections in relation to the total number of available connections. 100% usage means that clients will be waiting for connections to become available.", "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 16, "y": 15 }, "id": 8, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "text": { "valueSize": 18 }, "textMode": "auto" }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "idstore_db_connections_active{job=~\"$instance\"}", "hide": true, "legendFormat": "active", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "idstore_db_connections_total{job=~\"$instance\"}", "hide": true, "legendFormat": "total", "range": true, "refId": "B" }, { "datasource": { "type": "__expr__", "uid": "${DS_EXPRESSION}" }, "expression": "$A / $B", "hide": false, "refId": "saturation", "type": "math" } ], "title": "CONNECTIONS", "type": "stat" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 21 }, "id": 11, "panels": [], "title": "MAIL", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 25, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "normal" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "ops" }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 0, "y": 22 }, "id": 12, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "sum(rate(idstore_mail_ok_total{job=~\"$instance\"}[$__rate_interval]))", "legendFormat": "{{type}}", "range": true, "refId": "A" } ], "title": "SENDS", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-YlRd" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "ops" }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 8, "y": 22 }, "id": 13, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "sum(rate(idstore_mail_failed_total{job=~\"$instance\"}[$__rate_interval]))", "legendFormat": "{{type}}", "range": true, "refId": "A" } ], "title": "ERRORS", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 25, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "ns" }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 16, "y": 22 }, "id": 14, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "idstore_mail_time{job=~\"$instance\"}", "legendFormat": "{{type}}", "range": true, "refId": "A" } ], "title": "DURATIONS", "type": "timeseries" } ], "refresh": "5s", "schemaVersion": 38, "style": "dark", "tags": [], "templating": { "list": [ { "current": { "selected": false, "text": "Mimir", "value": "Mimir" }, "description": "The metrics source.", "hide": 0, "includeAll": false, "multi": false, "name": "Metrics", "options": [], "query": "prometheus", "refresh": 1, "regex": "", "skipUrlSync": false, "type": "datasource" }, { "current": {}, "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "definition": "label_values(idstore_up,job)", "hide": 0, "includeAll": true, "multi": true, "name": "instance", "options": [], "query": { "query": "label_values(idstore_up,job)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" } ] }, "time": { "from": "now-15m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Idstore", "uid": "b13772a1-3dee-4eb4-9d8c-d8de9c45a148", "version": 22, "weekStart": "" }