Skip to content

Commit 7cfdc48

Browse files
authored
Merge pull request #332 from Helene/prometheus_hw_example_db
Add example dashboards for monitoring HW metrics with Prometheus as datasource
2 parents 00a871d + 95f0937 commit 7cfdc48

8 files changed

+1120
-0
lines changed

examples/grafana_dashboards/ESS_hardware/Prometheus as Datasource/ESS Hardware Performance overview-1754408796395.json

Lines changed: 443 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,213 @@
1+
{
2+
"__inputs": [
3+
{
4+
"name": "DS_SWAT_PROMETHEUS",
5+
"label": "SWAT Prometheus",
6+
"description": "",
7+
"type": "datasource",
8+
"pluginId": "prometheus",
9+
"pluginName": "Prometheus"
10+
}
11+
],
12+
"__elements": {},
13+
"__requires": [
14+
{
15+
"type": "panel",
16+
"id": "bargauge",
17+
"name": "Bar gauge",
18+
"version": ""
19+
},
20+
{
21+
"type": "grafana",
22+
"id": "grafana",
23+
"name": "Grafana",
24+
"version": "12.0.2"
25+
},
26+
{
27+
"type": "datasource",
28+
"id": "opentsdb",
29+
"name": "OpenTSDB",
30+
"version": "1.0.0"
31+
},
32+
{
33+
"type": "datasource",
34+
"id": "prometheus",
35+
"name": "Prometheus",
36+
"version": "1.0.0"
37+
}
38+
],
39+
"annotations": {
40+
"list": [
41+
{
42+
"builtIn": 1,
43+
"datasource": {
44+
"type": "grafana",
45+
"uid": "-- Grafana --"
46+
},
47+
"enable": true,
48+
"hide": true,
49+
"iconColor": "rgba(0, 211, 255, 1)",
50+
"name": "Annotations & Alerts",
51+
"type": "dashboard"
52+
}
53+
]
54+
},
55+
"editable": true,
56+
"fiscalYearStartMonth": 0,
57+
"graphTooltip": 0,
58+
"id": null,
59+
"links": [],
60+
"panels": [
61+
{
62+
"datasource": {
63+
"type": "prometheus",
64+
"uid": "${Datasource}"
65+
},
66+
"fieldConfig": {
67+
"defaults": {
68+
"color": {
69+
"mode": "continuous-GrYlRd"
70+
},
71+
"mappings": [],
72+
"noValue": "0",
73+
"thresholds": {
74+
"mode": "absolute",
75+
"steps": [
76+
{
77+
"color": "green"
78+
},
79+
{
80+
"color": "red",
81+
"value": 80
82+
}
83+
]
84+
},
85+
"unit": "celsius"
86+
},
87+
"overrides": []
88+
},
89+
"gridPos": {
90+
"h": 18,
91+
"w": 24,
92+
"x": 0,
93+
"y": 0
94+
},
95+
"id": 2,
96+
"options": {
97+
"displayMode": "lcd",
98+
"legend": {
99+
"calcs": [],
100+
"displayMode": "list",
101+
"placement": "bottom",
102+
"showLegend": false
103+
},
104+
"maxVizHeight": 300,
105+
"minVizHeight": 16,
106+
"minVizWidth": 8,
107+
"namePlacement": "auto",
108+
"orientation": "auto",
109+
"reduceOptions": {
110+
"calcs": [
111+
"lastNotNull"
112+
],
113+
"fields": "",
114+
"values": false
115+
},
116+
"showUnfilled": true,
117+
"sizing": "auto",
118+
"valueMode": "color"
119+
},
120+
"pluginVersion": "12.0.2",
121+
"targets": [
122+
{
123+
"datasource": {
124+
"type": "prometheus",
125+
"uid": "${DS_SWAT_PROMETHEUS}"
126+
},
127+
"disableTextWrap": false,
128+
"editorMode": "builder",
129+
"expr": "gpfs_hw_temp{node=~\"$node\", gpfs_hw_entity=~\"$values\"}",
130+
"fullMetaSearch": false,
131+
"includeNullMetadata": true,
132+
"instant": false,
133+
"legendFormat": "{{gpfs_hw_entity}}",
134+
"range": true,
135+
"refId": "A",
136+
"useBackend": false
137+
}
138+
],
139+
"type": "bargauge"
140+
}
141+
],
142+
"schemaVersion": 41,
143+
"tags": [
144+
"hardware",
145+
"ess",
146+
"prometheus"
147+
],
148+
"templating": {
149+
"list": [
150+
{
151+
"current": {},
152+
"name": "Datasource",
153+
"options": [],
154+
"query": "prometheus",
155+
"refresh": 1,
156+
"regex": "",
157+
"type": "datasource"
158+
},
159+
{
160+
"current": {},
161+
"datasource": {
162+
"type": "prometheus",
163+
"uid": "${Datasource}"
164+
},
165+
"definition": "label_values(gpfs_hw_temp,node)",
166+
"includeAll": true,
167+
"label": "Node",
168+
"multi": true,
169+
"name": "node",
170+
"options": [],
171+
"query": {
172+
"qryType": 1,
173+
"query": "label_values(gpfs_hw_temp,node)",
174+
"refId": "PrometheusVariableQueryEditor-VariableQuery"
175+
},
176+
"refresh": 1,
177+
"regex": "",
178+
"type": "query"
179+
},
180+
{
181+
"current": {},
182+
"datasource": {
183+
"type": "prometheus",
184+
"uid": "${DS_SWAT_PROMETHEUS}"
185+
},
186+
"definition": "label_values(gpfs_hw_temp{node=~\"$node\"},gpfs_hw_entity)",
187+
"includeAll": true,
188+
"label": "HW Component",
189+
"multi": true,
190+
"name": "values",
191+
"options": [],
192+
"query": {
193+
"qryType": 1,
194+
"query": "label_values(gpfs_hw_temp{node=~\"$node\"},gpfs_hw_entity)",
195+
"refId": "PrometheusVariableQueryEditor-VariableQuery"
196+
},
197+
"refresh": 1,
198+
"regex": "canister.*|enc.*",
199+
"type": "query"
200+
}
201+
]
202+
},
203+
"time": {
204+
"from": "now-1h",
205+
"to": "now"
206+
},
207+
"timepicker": {},
208+
"timezone": "browser",
209+
"title": "HW Components Temperature (Prometheus)",
210+
"uid": "72241a0b-cb64-4b03-aa67-5c56c254dfcc",
211+
"version": 21,
212+
"weekStart": ""
213+
}

0 commit comments

Comments
 (0)