[Dashboard] Load metrics at the first panel instead of the last panel
This commit is contained in:
parent
6ecc586aaa
commit
c0e3512a23
1 changed files with 69 additions and 55 deletions
|
|
@ -21,7 +21,7 @@
|
||||||
"type": "grafana",
|
"type": "grafana",
|
||||||
"id": "grafana",
|
"id": "grafana",
|
||||||
"name": "Grafana",
|
"name": "Grafana",
|
||||||
"version": "9.3.6"
|
"version": "10.3.0-64399"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "panel",
|
"type": "panel",
|
||||||
|
|
@ -76,7 +76,7 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "Dashboard for endlessh (Update variables on time range changes)",
|
"description": "Dashboard for endlessh (Load metrics at the first panel instead of the last panel)",
|
||||||
"editable": false,
|
"editable": false,
|
||||||
"fiscalYearStartMonth": 0,
|
"fiscalYearStartMonth": 0,
|
||||||
"gnetId": 15156,
|
"gnetId": 15156,
|
||||||
|
|
@ -112,8 +112,8 @@
|
||||||
"panels": [
|
"panels": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "datasource",
|
"type": "prometheus",
|
||||||
"uid": "-- Dashboard --"
|
"uid": "${DS_PROMETHEUS}"
|
||||||
},
|
},
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
|
|
@ -140,6 +140,8 @@
|
||||||
"y": 0
|
"y": 0
|
||||||
},
|
},
|
||||||
"id": 36,
|
"id": 36,
|
||||||
|
"interval": "1m",
|
||||||
|
"maxDataPoints": 1440,
|
||||||
"options": {
|
"options": {
|
||||||
"colorMode": "value",
|
"colorMode": "value",
|
||||||
"graphMode": "none",
|
"graphMode": "none",
|
||||||
|
|
@ -153,17 +155,37 @@
|
||||||
"values": false
|
"values": false
|
||||||
},
|
},
|
||||||
"text": {},
|
"text": {},
|
||||||
"textMode": "auto"
|
"textMode": "auto",
|
||||||
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.3.6",
|
"pluginVersion": "10.3.0-64399",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "datasource",
|
"type": "prometheus",
|
||||||
"uid": "-- Dashboard --"
|
"uid": "${DS_PROMETHEUS}"
|
||||||
},
|
},
|
||||||
"panelId": 49,
|
"editorMode": "code",
|
||||||
"refId": "A"
|
"expr": "(endlessh_client_open_count{instance=~\"$host\",job=~\"$job\"} - endlessh_client_open_count{instance=~\"$host\",job=~\"$job\"} offset $__interval) > 0 or (endlessh_client_open_count{instance=~\"$host\",job=~\"$job\"}!=0 unless endlessh_client_open_count{instance=~\"$host\",job=~\"$job\"} offset $__interval)",
|
||||||
|
"format": "table",
|
||||||
|
"instant": false,
|
||||||
|
"legendFormat": "Seen {{ip}}",
|
||||||
|
"range": true,
|
||||||
|
"refId": "Seen"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "${DS_PROMETHEUS}"
|
||||||
|
},
|
||||||
|
"editorMode": "code",
|
||||||
|
"expr": "(endlessh_client_trapped_time_seconds{instance=~\"$host\",job=~\"$job\"} - endlessh_client_trapped_time_seconds{instance=~\"$host\",job=~\"$job\"} offset $__interval) > 0 or (endlessh_client_trapped_time_seconds{instance=~\"$host\",job=~\"$job\"}!=0 unless endlessh_client_trapped_time_seconds{instance=~\"$host\",job=~\"$job\"} offset $__interval)",
|
||||||
|
"format": "table",
|
||||||
|
"hide": false,
|
||||||
|
"instant": false,
|
||||||
|
"legendFormat": "Trapped {{ip}}",
|
||||||
|
"range": true,
|
||||||
|
"refId": "Trapped"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "Connections",
|
"title": "Connections",
|
||||||
|
|
@ -277,16 +299,17 @@
|
||||||
"values": false
|
"values": false
|
||||||
},
|
},
|
||||||
"text": {},
|
"text": {},
|
||||||
"textMode": "auto"
|
"textMode": "auto",
|
||||||
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.3.6",
|
"pluginVersion": "10.3.0-64399",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "datasource",
|
"type": "datasource",
|
||||||
"uid": "-- Dashboard --"
|
"uid": "-- Dashboard --"
|
||||||
},
|
},
|
||||||
"panelId": 49,
|
"panelId": 36,
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
@ -402,9 +425,10 @@
|
||||||
"values": false
|
"values": false
|
||||||
},
|
},
|
||||||
"text": {},
|
"text": {},
|
||||||
"textMode": "auto"
|
"textMode": "auto",
|
||||||
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.3.6",
|
"pluginVersion": "10.3.0-64399",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
|
|
@ -465,16 +489,17 @@
|
||||||
"values": false
|
"values": false
|
||||||
},
|
},
|
||||||
"text": {},
|
"text": {},
|
||||||
"textMode": "auto"
|
"textMode": "auto",
|
||||||
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.3.6",
|
"pluginVersion": "10.3.0-64399",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "datasource",
|
"type": "datasource",
|
||||||
"uid": "-- Dashboard --"
|
"uid": "-- Dashboard --"
|
||||||
},
|
},
|
||||||
"panelId": 49,
|
"panelId": 36,
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
@ -578,16 +603,17 @@
|
||||||
"values": false
|
"values": false
|
||||||
},
|
},
|
||||||
"text": {},
|
"text": {},
|
||||||
"textMode": "value"
|
"textMode": "value",
|
||||||
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.3.6",
|
"pluginVersion": "10.3.0-64399",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "datasource",
|
"type": "datasource",
|
||||||
"uid": "-- Dashboard --"
|
"uid": "-- Dashboard --"
|
||||||
},
|
},
|
||||||
"panelId": 49,
|
"panelId": 36,
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
@ -722,9 +748,10 @@
|
||||||
"values": false
|
"values": false
|
||||||
},
|
},
|
||||||
"text": {},
|
"text": {},
|
||||||
"textMode": "auto"
|
"textMode": "auto",
|
||||||
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.3.6",
|
"pluginVersion": "10.3.0-64399",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
|
|
@ -753,6 +780,7 @@
|
||||||
"mode": "palette-classic"
|
"mode": "palette-classic"
|
||||||
},
|
},
|
||||||
"custom": {
|
"custom": {
|
||||||
|
"axisBorderShow": false,
|
||||||
"axisCenteredZero": false,
|
"axisCenteredZero": false,
|
||||||
"axisColorMode": "text",
|
"axisColorMode": "text",
|
||||||
"axisLabel": "",
|
"axisLabel": "",
|
||||||
|
|
@ -766,6 +794,7 @@
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"viz": false
|
"viz": false
|
||||||
},
|
},
|
||||||
|
"insertNulls": false,
|
||||||
"lineInterpolation": "stepAfter",
|
"lineInterpolation": "stepAfter",
|
||||||
"lineWidth": 1,
|
"lineWidth": 1,
|
||||||
"pointSize": 5,
|
"pointSize": 5,
|
||||||
|
|
@ -886,7 +915,7 @@
|
||||||
"type": "datasource",
|
"type": "datasource",
|
||||||
"uid": "-- Dashboard --"
|
"uid": "-- Dashboard --"
|
||||||
},
|
},
|
||||||
"panelId": 49,
|
"panelId": 36,
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
@ -1068,14 +1097,14 @@
|
||||||
"zoom": 1
|
"zoom": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.3.6",
|
"pluginVersion": "10.3.0-64399",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "datasource",
|
"type": "datasource",
|
||||||
"uid": "-- Dashboard --"
|
"uid": "-- Dashboard --"
|
||||||
},
|
},
|
||||||
"panelId": 49,
|
"panelId": 36,
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
@ -1151,8 +1180,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "datasource",
|
||||||
"uid": "${DS_PROMETHEUS}"
|
"uid": "-- Dashboard --"
|
||||||
},
|
},
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
|
|
@ -1161,7 +1190,9 @@
|
||||||
},
|
},
|
||||||
"custom": {
|
"custom": {
|
||||||
"align": "auto",
|
"align": "auto",
|
||||||
"displayMode": "auto",
|
"cellOptions": {
|
||||||
|
"type": "auto"
|
||||||
|
},
|
||||||
"filterable": true,
|
"filterable": true,
|
||||||
"inspect": false,
|
"inspect": false,
|
||||||
"minWidth": 50
|
"minWidth": 50
|
||||||
|
|
@ -1239,7 +1270,9 @@
|
||||||
},
|
},
|
||||||
"id": 49,
|
"id": 49,
|
||||||
"options": {
|
"options": {
|
||||||
|
"cellHeight": "sm",
|
||||||
"footer": {
|
"footer": {
|
||||||
|
"countRows": false,
|
||||||
"fields": "",
|
"fields": "",
|
||||||
"reducer": [
|
"reducer": [
|
||||||
"sum"
|
"sum"
|
||||||
|
|
@ -1255,33 +1288,15 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.3.6",
|
"pluginVersion": "10.3.0-64399",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "datasource",
|
||||||
"uid": "${DS_PROMETHEUS}"
|
"uid": "-- Dashboard --"
|
||||||
},
|
},
|
||||||
"exemplar": true,
|
"panelId": 36,
|
||||||
"expr": "(endlessh_client_open_count{instance=~\"$host\",job=~\"$job\"} - endlessh_client_open_count{instance=~\"$host\",job=~\"$job\"} offset $__interval) > 0 or (endlessh_client_open_count{instance=~\"$host\",job=~\"$job\"}!=0 unless endlessh_client_open_count{instance=~\"$host\",job=~\"$job\"} offset $__interval)",
|
"refId": "A"
|
||||||
"format": "table",
|
|
||||||
"hide": false,
|
|
||||||
"interval": "",
|
|
||||||
"legendFormat": "Seen {{ip}}",
|
|
||||||
"refId": "Seen"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"exemplar": true,
|
|
||||||
"expr": "(endlessh_client_trapped_time_seconds{instance=~\"$host\",job=~\"$job\"} - endlessh_client_trapped_time_seconds{instance=~\"$host\",job=~\"$job\"} offset $__interval) > 0 or (endlessh_client_trapped_time_seconds{instance=~\"$host\",job=~\"$job\"}!=0 unless endlessh_client_trapped_time_seconds{instance=~\"$host\",job=~\"$job\"} offset $__interval)",
|
|
||||||
"format": "table",
|
|
||||||
"hide": false,
|
|
||||||
"interval": "",
|
|
||||||
"legendFormat": "Trapped {{ip}}",
|
|
||||||
"refId": "Trapped"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "Clients",
|
"title": "Clients",
|
||||||
|
|
@ -1446,8 +1461,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"refresh": "",
|
"refresh": "",
|
||||||
"schemaVersion": 37,
|
"schemaVersion": 39,
|
||||||
"style": "dark",
|
|
||||||
"tags": [
|
"tags": [
|
||||||
"prometheus"
|
"prometheus"
|
||||||
],
|
],
|
||||||
|
|
@ -1511,6 +1525,6 @@
|
||||||
"timezone": "",
|
"timezone": "",
|
||||||
"title": "Endlessh",
|
"title": "Endlessh",
|
||||||
"uid": "ATIxYkO7k",
|
"uid": "ATIxYkO7k",
|
||||||
"version": 10,
|
"version": 6,
|
||||||
"weekStart": ""
|
"weekStart": ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue