{ "__inputs": [ { "name": "DS_PROMETHEUS", "label": "Prometheus", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.1.5" }, { "type": "panel", "id": "graph", "name": "Graph", "version": "" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "gnetId": null, "graphTooltip": 0, "links": [], "panels": [ { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", "description": "", "fill": 1, "fillGradient": 1, "gridPos": { "h": 10, "w": 12, "x": 0, "y": 0 }, "hiddenSeries": false, "id": 1, "interval": "", "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "plugins_replication_replication_delay_$target{instance=\"$instance\",replica=\"$replica\"}", "legendFormat": "quantile: {{quantile}}", "refId": "B" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "replication delay $target", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "ms", "label": "delay", "logBase": 10, "max": null, "min": "5000", "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "${DS_PROMETHEUS}", "description": "", "fill": 1, "fillGradient": 1, "gridPos": { "h": 10, "w": 12, "x": 12, "y": 0 }, "hiddenSeries": false, "id": 2, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "plugins_replication_replication_latency_$target{instance=\"$instance\",replica=\"$replica\"}", "legendFormat": "quantile: {{quantile}}", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "replication latency $target", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "ms", "label": "latency", "logBase": 10, "max": null, "min": "0.1", "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } } ], "schemaVersion": 21, "style": "dark", "tags": [], "templating": { "list": [ { "allValue": null, "current": { "text": "", "value": "" }, "datasource": "${DS_PROMETHEUS}", "definition": "label_values(git_upload_pack_phase_writing_total, instance)", "hide": 0, "includeAll": false, "label": "Gerrit Instance", "multi": false, "name": "instance", "options": [], "query": "label_values(git_upload_pack_phase_writing_total, instance)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { "text": "", "value": "" }, "datasource": "${DS_PROMETHEUS}", "definition": "label_values(git_upload_pack_phase_writing_total{instance=\"$instance\"}, replica)", "hide": 0, "includeAll": false, "label": "Replica", "multi": false, "name": "replica", "options": [], "query": "label_values(git_upload_pack_phase_writing_total{instance=\"$instance\"}, replica)", "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { "tags": [], "text": "", "value": "" }, "datasource": "${DS_PROMETHEUS}", "definition": "metrics(plugins_replication_replication_latency_.*_count)", "hide": 0, "includeAll": false, "label": "Replication target", "multi": false, "name": "target", "options": [], "query": "metrics(plugins_replication_replication_latency_.*_count)", "refresh": 1, "regex": "plugins_replication_replication_latency_(.*)_count", "skipUrlSync": false, "sort": 1, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "", "title": "Replication", "uid": "RFLS1GsWk", "version": 4 }