-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would it be possible to share the JSON for the dashboard shown in the README image? #147
Comments
In case anyone's interested, attached is the one I ended up creating. {
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "Prometheus AlertManager dashboard",
"editable": true,
"fiscalYearStartMonth": 0,
"gnetId": 8010,
"graphTooltip": 0,
"id": 27,
"links": [
{
"asDropdown": false,
"icon": "external link",
"includeVars": false,
"keepTime": false,
"tags": [],
"targetBlank": true,
"title": "Acknowledged Alerts",
"tooltip": "",
"type": "link",
"url": "/alertmanager/#/silences"
},
{
"asDropdown": false,
"icon": "external link",
"includeVars": false,
"keepTime": false,
"tags": [],
"targetBlank": true,
"title": "All Alerts",
"tooltip": "",
"type": "link",
"url": "/prometheus/alerts?search="
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "a8d224e3-c7d1-4323-9c9b-7893e897d87f"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Alert Manager",
"url": "/alertmanager/#/alerts"
}
],
"mappings": [
{
"options": {
"match": "null",
"result": {
"color": "#299c46",
"text": "0"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#299c46",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 1
},
{
"color": "#d44a3a",
"value": 5
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"id": 8,
"links": [
{
"targetBlank": true,
"title": "Alert Manager",
"url": "/alertmanager/#/alerts"
}
],
"maxDataPoints": 100,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.5.10",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "a8d224e3-c7d1-4323-9c9b-7893e897d87f"
},
"editorMode": "builder",
"expr": "sum(ALERTS{alertstate=\"firing\", alertname!=\"Watchdog\"})",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "All alerts",
"type": "stat"
},
{
"datasource": {
"type": "camptocamp-prometheus-alertmanager-datasource",
"uid": "c33a77e9-26f7-470a-8dd6-e4bf3e0665f1"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Details",
"url": "/alertmanager/#/silences"
}
],
"mappings": [
{
"options": {
"match": "null",
"result": {
"color": "#d44a3a",
"text": "0"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#299c46",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 0
},
{
"color": "#d44a3a",
"value": 0
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 0
},
"id": 2,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"count"
],
"fields": "/^SeverityValue$/",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.5.10",
"targets": [
{
"active": false,
"datasource": {
"type": "camptocamp-prometheus-alertmanager-datasource",
"uid": "c33a77e9-26f7-470a-8dd6-e4bf3e0665f1"
},
"refId": "A",
"silenced": true
}
],
"title": "Acknowledged",
"type": "stat"
},
{
"datasource": {
"type": "camptocamp-prometheus-alertmanager-datasource",
"uid": "c33a77e9-26f7-470a-8dd6-e4bf3e0665f1"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "color-text"
},
"filterable": true,
"inspect": false
},
"decimals": 2,
"displayName": "",
"links": [
{
"targetBlank": true,
"title": "AlertManager",
"url": "/alertmanager/#/alerts"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "rgba(245, 54, 54, 0.9)",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 0
}
]
},
"unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Time"
},
"properties": [
{
"id": "displayName",
"value": "Time"
},
{
"id": "unit",
"value": "dateTimeAsLocal"
},
{
"id": "custom.align"
}
]
},
{
"matcher": {
"id": "byName",
"options": "SeverityValue"
},
"properties": [
{
"id": "unit",
"value": "short"
},
{
"id": "decimals",
"value": 0
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "custom.align"
},
{
"id": "thresholds",
"value": {
"mode": "absolute",
"steps": [
{
"color": "dark-yellow",
"value": null
},
{
"color": "dark-red",
"value": 1
},
{
"color": "dark-orange",
"value": 2
},
{
"color": "semi-dark-yellow",
"value": 3
}
]
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "alertstatus"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"critical": {
"color": "dark-red",
"index": 1
},
"warning": {
"color": "dark-orange",
"index": 0
}
},
"type": "value"
}
]
},
{
"id": "custom.hidden",
"value": true
}
]
},
{
"matcher": {
"id": "byName",
"options": "alertstatus_code"
},
"properties": [
{
"id": "custom.hidden",
"value": true
}
]
},
{
"matcher": {
"id": "byName",
"options": "severity"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"critical": {
"color": "dark-red",
"index": 1
},
"warning": {
"color": "dark-orange",
"index": 0
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "SeverityValue"
},
"properties": [
{
"id": "custom.hidden",
"value": true
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 8
},
"id": 4,
"links": [
{
"targetBlank": true,
"title": "AlertManager",
"url": "/alertmanager/#/alerts"
}
],
"options": {
"cellHeight": "md",
"footer": {
"countRows": false,
"fields": [],
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "9.5.10",
"targets": [
{
"annotations": true,
"datasource": {
"type": "camptocamp-prometheus-alertmanager-datasource",
"uid": "c33a77e9-26f7-470a-8dd6-e4bf3e0665f1"
},
"expr": "",
"filters": "severity=\"warning\"",
"hide": false,
"labelSelector": "*",
"legendFormat": "{{ summary }}",
"receiver": "",
"refId": "A",
"silenced": false,
"target": "Query",
"type": "table"
},
{
"datasource": {
"type": "camptocamp-prometheus-alertmanager-datasource",
"uid": "c33a77e9-26f7-470a-8dd6-e4bf3e0665f1"
},
"filters": "severity=\"critical\"",
"hide": false,
"refId": "B"
}
],
"title": "Active Alerts",
"transformations": [
{
"id": "merge",
"options": {
"reducers": []
}
}
],
"type": "table"
},
{
"datasource": {
"type": "camptocamp-prometheus-alertmanager-datasource",
"uid": "c33a77e9-26f7-470a-8dd6-e4bf3e0665f1"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"filterable": true,
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "SeverityValue"
},
"properties": [
{
"id": "custom.width",
"value": 109
}
]
},
{
"matcher": {
"id": "byName",
"options": "alertstatus"
},
"properties": [
{
"id": "custom.width",
"value": 163
},
{
"id": "custom.hidden",
"value": true
}
]
},
{
"matcher": {
"id": "byName",
"options": "alertstatus_code"
},
"properties": [
{
"id": "custom.hidden",
"value": true
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 16
},
"id": 9,
"links": [
{
"targetBlank": true,
"title": "Ack",
"url": "/alertmanager/#/silences"
}
],
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": [
{
"desc": true,
"displayName": "alertstatus"
}
]
},
"pluginVersion": "9.5.10",
"targets": [
{
"active": false,
"datasource": {
"type": "camptocamp-prometheus-alertmanager-datasource",
"uid": "c33a77e9-26f7-470a-8dd6-e4bf3e0665f1"
},
"refId": "A",
"silenced": true
}
],
"title": "Acknowledged Alerts",
"type": "table"
}
],
"refresh": "",
"schemaVersion": 38,
"style": "dark",
"tags": [
"0.0.1"
],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "Prometheus AlertManager",
"uid": "jesse",
"version": 31,
"weekStart": ""
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello all,
Very useful project, thanks for creating and maintaining it:)
Could you please commit (or provide a URL to) the JSON file from which https://raw.githubusercontent.com/camptocamp/grafana-prometheus-alertmanager-datasource/master/img/overview.png is rendered?
It's exactly what I (and I imagine many others) want to accomplish so it would save me a lot of time if you could.
Many thanks in advance,
The text was updated successfully, but these errors were encountered: