Skip to content

Commit 1e2dbef

Browse files
committed
docs: update + dashboard
1 parent 02c97f4 commit 1e2dbef

2 files changed

Lines changed: 82 additions & 9 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
This Go application is a Prometheus exporter for turbostat metrics.
44
It collects CPU and core statistics using the `turbostat` tool and exposes them in a format that Prometheus can scrape.
55

6+
## Dashboard
7+
8+
You can use the provided dashboard in the folder `dashboards` or use this shared ones: https://grafana.com/grafana/dashboards/23537
9+
610
## Features
711

812
- **Prometheus Integration**: Exposes metrics via an HTTP server for Prometheus to scrape.

dashboards/grafana_turbostat.json

Lines changed: 78 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,47 @@
11
{
2+
"__inputs": [
3+
{
4+
"name": "DS_PROMETHEUS",
5+
"label": "Prometheus",
6+
"description": "",
7+
"type": "datasource",
8+
"pluginId": "prometheus",
9+
"pluginName": "Prometheus"
10+
}
11+
],
12+
"__elements": {},
13+
"__requires": [
14+
{
15+
"type": "grafana",
16+
"id": "grafana",
17+
"name": "Grafana",
18+
"version": "12.0.1"
19+
},
20+
{
21+
"type": "panel",
22+
"id": "piechart",
23+
"name": "Pie chart",
24+
"version": ""
25+
},
26+
{
27+
"type": "datasource",
28+
"id": "prometheus",
29+
"name": "Prometheus",
30+
"version": "1.0.0"
31+
},
32+
{
33+
"type": "panel",
34+
"id": "stat",
35+
"name": "Stat",
36+
"version": ""
37+
},
38+
{
39+
"type": "panel",
40+
"id": "timeseries",
41+
"name": "Time series",
42+
"version": ""
43+
}
44+
],
245
"annotations": {
346
"list": [
447
{
@@ -18,7 +61,7 @@
1861
"editable": true,
1962
"fiscalYearStartMonth": 0,
2063
"graphTooltip": 0,
21-
"id": 49,
64+
"id": null,
2265
"links": [],
2366
"panels": [
2467
{
@@ -123,7 +166,11 @@
123166
"format": "time_series",
124167
"legendFormat": "__auto",
125168
"range": true,
126-
"refId": "A"
169+
"refId": "A",
170+
"datasource": {
171+
"type": "prometheus",
172+
"uid": "${DS_PROMETHEUS}"
173+
}
127174
}
128175
],
129176
"title": "Total Core stats",
@@ -293,7 +340,11 @@
293340
"format": "time_series",
294341
"legendFormat": "__auto",
295342
"range": true,
296-
"refId": "A"
343+
"refId": "A",
344+
"datasource": {
345+
"type": "prometheus",
346+
"uid": "${DS_PROMETHEUS}"
347+
}
297348
}
298349
],
299350
"title": "Total CPU stats",
@@ -432,7 +483,11 @@
432483
"format": "time_series",
433484
"legendFormat": "__auto",
434485
"range": true,
435-
"refId": "A"
486+
"refId": "A",
487+
"datasource": {
488+
"type": "prometheus",
489+
"uid": "${DS_PROMETHEUS}"
490+
}
436491
}
437492
],
438493
"title": "Total pkg stats",
@@ -615,7 +670,11 @@
615670
"format": "time_series",
616671
"legendFormat": "__auto",
617672
"range": true,
618-
"refId": "A"
673+
"refId": "A",
674+
"datasource": {
675+
"type": "prometheus",
676+
"uid": "${DS_PROMETHEUS}"
677+
}
619678
}
620679
],
621680
"title": "Pkg Watt",
@@ -718,7 +777,11 @@
718777
"format": "time_series",
719778
"legendFormat": "__auto",
720779
"range": true,
721-
"refId": "A"
780+
"refId": "A",
781+
"datasource": {
782+
"type": "prometheus",
783+
"uid": "${DS_PROMETHEUS}"
784+
}
722785
}
723786
],
724787
"title": "Core Watt",
@@ -821,7 +884,11 @@
821884
"format": "time_series",
822885
"legendFormat": "__auto",
823886
"range": true,
824-
"refId": "A"
887+
"refId": "A",
888+
"datasource": {
889+
"type": "prometheus",
890+
"uid": "${DS_PROMETHEUS}"
891+
}
825892
},
826893
{
827894
"datasource": {
@@ -950,13 +1017,13 @@
9501017
"type": "row"
9511018
}
9521019
],
953-
"preload": false,
9541020
"schemaVersion": 41,
9551021
"tags": ["turbostat"],
9561022
"templating": {
9571023
"list": [
9581024
{
9591025
"allowCustomValue": false,
1026+
"current": {},
9601027
"label": "Prometheus",
9611028
"name": "DS_PROMETHEUS",
9621029
"options": [],
@@ -967,6 +1034,7 @@
9671034
},
9681035
{
9691036
"allowCustomValue": false,
1037+
"current": {},
9701038
"datasource": {
9711039
"type": "prometheus",
9721040
"uid": "${DS_PROMETHEUS}"
@@ -993,5 +1061,6 @@
9931061
"timepicker": {},
9941062
"timezone": "",
9951063
"title": "Turbostat Exporter",
996-
"version": 6
1064+
"version": 8,
1065+
"weekStart": ""
9971066
}

0 commit comments

Comments
 (0)