Skip to content

Instantly share code, notes, and snippets.

@torkelo
Created July 2, 2020 08:56
Show Gist options
  • Save torkelo/3fdb154c1f0b16154e608956fadb3c86 to your computer and use it in GitHub Desktop.
Save torkelo/3fdb154c1f0b16154e608956fadb3c86 to your computer and use it in GitHub Desktop.
panel
{
"columns": [],
"datasource": "gdev-prometheus",
"fieldConfig": {
"defaults": {
"custom": {
"align": null
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 7,
"w": 15,
"x": 0,
"y": 34
},
"id": 10,
"options": {
"showHeader": true
},
"pluginVersion": "7.2.0-pre",
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"$$hashKey": "object:881",
"alias": "Time",
"align": "left",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "date"
},
{
"$$hashKey": "object:882",
"alias": "",
"align": "left",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"thresholds": [],
"type": "number",
"unit": "short"
}
],
"targets": [
{
"expr": "sum (go_gc_duration_seconds_count{job=\"prometheus\"}) by(job)",
"legendFormat": "",
"interval": "",
"format": "table",
"hide": false,
"instant": true,
"refId": "A"
},
{
"expr": "go_goroutines{job!=\"prometheus\"}",
"legendFormat": "",
"interval": "",
"format": "table",
"instant": true,
"refId": "B",
"hide": false
}
],
"title": "Example2) Old table",
"transform": "table",
"transformations": [
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"job",
"Value #A",
"__name__",
"instance",
"Value #B",
"Time"
]
}
}
}
],
"type": "table-old",
"pageSize": null,
"timeFrom": null,
"timeShift": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment