Skip to content

Instantly share code, notes, and snippets.

@andrew-d
Created December 23, 2022 21:08
Show Gist options
  • Save andrew-d/42eac6461e64dc9af5bee126ce1550d8 to your computer and use it in GitHub Desktop.
Save andrew-d/42eac6461e64dc9af5bee126ce1550d8 to your computer and use it in GitHub Desktop.
{
"datasource": {
"type": "prometheus",
"uid": "l-jz8T47k"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 8
},
"id": 2,
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true
},
"pluginVersion": "8.5.14",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "l-jz8T47k"
},
"editorMode": "code",
"expr": "mastodon_resolved_reports_histogram_bucket",
"format": "heatmap",
"legendFormat": "{{le}}",
"range": true,
"refId": "A"
}
],
"title": "Report Resolution Time",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {},
"indexByName": {},
"renameByName": {
"60": "1m",
"600": "10m",
"1800": "30m",
"3600": "1h",
"14400": "4h",
"28800": "8h",
"86400": "1d",
"+Inf": "Longer",
"Time": ""
}
}
}
],
"type": "bargauge"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment