{ "__inputs": [ { "name": "DS_MIMIR", "label": "Mimir", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" }, { "name": "DS_LOKI", "label": "Loki", "description": "", "type": "datasource", "pluginId": "loki", "pluginName": "Loki" }, { "name": "DS_TEMPO", "label": "Tempo", "description": "", "type": "datasource", "pluginId": "tempo", "pluginName": "Tempo" } ], "__elements": {}, "__requires": [ { "type": "panel", "id": "gauge", "name": "Gauge", "version": "" }, { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "9.5.2" }, { "type": "datasource", "id": "loki", "name": "Loki", "version": "1.0.0" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "table", "name": "Table", "version": "" }, { "type": "datasource", "id": "tempo", "name": "Tempo", "version": "1.0.0" }, { "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}" }, "fieldConfig": { "defaults": { "color": { "mode": "continuous-YlRd", "seriesBy": "max" }, "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 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, "id": 5, "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(certusine_certificates_store_failures_total{job=~\"$instance\"}[$__rate_interval])", "legendFormat": "Store", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "rate(certusine_dns_challenge_failures_total{job=~\"$instance\"}[$__rate_interval])", "hide": false, "legendFormat": "DNS Challenge", "range": true, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "rate(certusine_signing_failures_total{job=~\"$instance\"}[$__rate_interval])", "hide": false, "legendFormat": "Signing", "range": true, "refId": "C" } ], "title": "Failures", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "axisSoftMax": 2, "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": [], "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Successes" }, "properties": [ { "id": "color", "value": { "fixedColor": "green", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "Failures" }, "properties": [ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, "id": 6, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "exemplar": false, "expr": "rate(certusine_renewal_successes_total{job=~\"$instance\"}[$__rate_interval])", "instant": false, "legendFormat": "Successes", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "rate(certusine_renewal_failures_total{job=~\"$instance\"}[$__rate_interval])", "hide": false, "legendFormat": "Failures", "range": true, "refId": "B" } ], "title": "Renewals", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "description": "Internal task executions.\n", "fieldConfig": { "defaults": { "color": { "fixedColor": "#3274D9", "mode": "palette-classic" }, "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", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Executed" }, "properties": [ { "id": "color", "value": { "fixedColor": "semi-dark-blue", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "Succeeded" }, "properties": [ { "id": "color", "value": { "fixedColor": "green", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "Failed" }, "properties": [ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "Retried" }, "properties": [ { "id": "color", "value": { "fixedColor": "semi-dark-yellow", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, "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(certusine_tasks_executed_total{job=~\"$instance\"}[$__rate_interval])", "legendFormat": "Executed", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "rate(certusine_tasks_succeeded_total{job=~\"$instance\"}[$__rate_interval])", "hide": false, "legendFormat": "Succeeded", "range": true, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "rate(certusine_tasks_failed_total{job=~\"$instance\"}[$__rate_interval])", "hide": false, "legendFormat": "Failed", "range": true, "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "rate(certusine_tasks_retried_total{job=~\"$instance\"}[$__rate_interval])", "hide": false, "legendFormat": "Retried", "range": true, "refId": "D" } ], "title": "Tasks", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "description": "", "fieldConfig": { "defaults": { "mappings": [], "max": 7776000, "min": 0, "thresholds": { "mode": "percentage", "steps": [ { "color": "red", "value": null }, { "color": "orange", "value": 10 }, { "color": "yellow", "value": 20 }, { "color": "green", "value": 30 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, "id": 9, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "editorMode": "code", "expr": "certusine_certificate_time_remaining{job=~\"$instance\"}", "legendFormat": "{{certificate}}.{{domain}}", "range": true, "refId": "A" } ], "title": "Certificate Validity Remaining", "type": "gauge" }, { "datasource": { "type": "loki", "uid": "${DS_LOKI}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "level" }, "properties": [ { "id": "custom.width", "value": 81 } ] }, { "matcher": { "id": "byName", "options": "Certificate" }, "properties": [ { "id": "custom.width", "value": 189 } ] }, { "matcher": { "id": "byName", "options": "Domain" }, "properties": [ { "id": "custom.width", "value": 112 } ] }, { "matcher": { "id": "byName", "options": "Event" }, "properties": [ { "id": "custom.width", "value": 285 } ] }, { "matcher": { "id": "byName", "options": "Target" }, "properties": [ { "id": "custom.width", "value": 884 } ] } ] }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 16 }, "id": 7, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "loki", "uid": "${DS_LOKI}" }, "editorMode": "builder", "expr": "{job=\"$instance\"} | json", "hide": false, "maxLines": 100, "queryType": "range", "refId": "A" } ], "title": "Events", "transformations": [ { "id": "extractFields", "options": { "replace": true, "source": "labels" } }, { "id": "organize", "options": { "excludeByName": { "attributes_certusine_certificate": false, "body": true, "exporter": true, "instrumentation_scope_name": true, "job": true, "resources_service_name": true, "resources_service_version": true, "resources_telemetry_sdk_language": true, "resources_telemetry_sdk_name": true, "resources_telemetry_sdk_version": true, "spanid": true, "traceid": false }, "indexByName": { "attributes_certusine_certificate": 1, "attributes_certusine_domain": 2, "attributes_certusine_target": 4, "attributes_certusine_type": 3, "body": 5, "exporter": 6, "instrumentation_scope_name": 7, "job": 8, "level": 0, "resources_service_name": 9, "resources_service_version": 10, "resources_telemetry_sdk_language": 11, "resources_telemetry_sdk_name": 12, "resources_telemetry_sdk_version": 13, "spanid": 14, "traceid": 15 }, "renameByName": { "attributes_certusine_certificate": "Certificate", "attributes_certusine_domain": "Domain", "attributes_certusine_target": "Target", "attributes_certusine_type": "Event", "level": "Level", "traceid": "Trace" } } } ], "type": "table" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 24 }, "id": 8, "panels": [], "title": "Traces", "type": "row" }, { "datasource": { "type": "tempo", "uid": "${DS_TEMPO}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 25 }, "id": 2, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.2", "targets": [ { "datasource": { "type": "tempo", "uid": "${DS_TEMPO}" }, "hide": false, "limit": 20, "query": "", "queryType": "nativeSearch", "refId": "A", "search": "", "serviceName": "certusine" } ], "title": "Traces", "type": "table" } ], "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", "queryValue": "", "refresh": 1, "regex": "", "skipUrlSync": false, "type": "datasource" }, { "current": {}, "datasource": { "type": "prometheus", "uid": "${DS_MIMIR}" }, "definition": "label_values(certusine_up,job)", "hide": 0, "includeAll": true, "multi": true, "name": "instance", "options": [], "query": { "query": "label_values(certusine_up,job)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" }, { "current": { "selected": true, "text": "Tempo", "value": "Tempo" }, "hide": 0, "includeAll": false, "multi": false, "name": "Traces", "options": [], "query": "tempo", "queryValue": "", "refresh": 1, "regex": "", "skipUrlSync": false, "type": "datasource" }, { "current": { "selected": true, "text": "Loki", "value": "Loki" }, "hide": 0, "includeAll": false, "multi": false, "name": "Logs", "options": [], "query": "loki", "queryValue": "", "refresh": 1, "regex": "", "skipUrlSync": false, "type": "datasource" } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Certusine", "uid": "e9a285a3-a83a-4e1e-9adb-8060843361bb", "version": 27, "weekStart": "" }