Skip to content

Instantly share code, notes, and snippets.

@hagen1778
Last active October 3, 2018 14:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hagen1778/f448f5202d76c82ab9953b2382417a5a to your computer and use it in GitHub Desktop.
{
"__inputs": [
{
"name": "DS_CH",
"label": "CH",
"description": "",
"type": "datasource",
"pluginId": "vertamedia-clickhouse-datasource",
"pluginName": "ClickHouse"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "5.2.5"
},
{
"type": "datasource",
"id": "vertamedia-clickhouse-datasource",
"name": "ClickHouse",
"version": "1.7.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,
"id": null,
"iteration": 1538577391467,
"links": [],
"panels": [],
"refresh": false,
"schemaVersion": 16,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": true,
"tags": [],
"text": "Prome",
"value": "Prome"
},
"hide": 1,
"label": null,
"name": "prometheus",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"type": "datasource"
},
{
"allValue": ".*",
"current": {},
"datasource": "$prometheus",
"hide": 1,
"includeAll": false,
"label": null,
"multi": false,
"name": "instance",
"options": [],
"query": "label_values(go_goroutines, instance) ",
"refresh": 2,
"regex": "",
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {},
"datasource": "$prometheus",
"hide": 1,
"includeAll": false,
"label": "goroutines",
"multi": false,
"name": "goroutines",
"options": [],
"query": "query_result(go_goroutines{instance=\"$instance\"}) ",
"refresh": 2,
"regex": "/(\\d+) \\d+$/",
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {},
"datasource": "${DS_CH}",
"hide": 1,
"includeAll": true,
"label": "filtered_goroutines",
"multi": false,
"name": "filtered_goroutines",
"options": [],
"query": " SELECT arrayJoin(range($goroutines)) AS cpus",
"refresh": 2,
"regex": "",
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {},
"datasource": "$prometheus",
"hide": 0,
"includeAll": false,
"label": "filtered_goroutines_prom",
"multi": false,
"name": "filtered_goroutines_prom",
"options": [],
"query": "query_result(go_goroutines>$goroutines) ",
"refresh": 2,
"regex": "/(\\d+) \\d+$/",
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-24h",
"to": "now"
},
"timepicker": {
"now": true,
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "utc",
"title": "Grafana issue 13291",
"uid": "I8f5LlTiz",
"version": 22
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment