Add version panel

This commit is contained in:
Vitaly Zhuravlev 2022-05-11 16:43:24 +04:00
parent b00cf5bf48
commit 20f78a97cd

View file

@ -127,12 +127,94 @@ local graphPanel = grafana.graphPanel;
title: 'Uptime',
type: 'stat',
},
{
id: 9,
gridPos: {
h: 3,
w: 4,
x: 4,
y: 0,
},
type: 'stat',
title: 'Version',
datasource: {
uid: '${datasource}',
type: 'prometheus',
},
pluginVersion: '8.4.5',
maxDataPoints: 100,
links: [],
fieldConfig: {
defaults: {
mappings: [
{
options: {
match: 'null',
result: {
text: 'N/A',
},
},
type: 'special',
},
],
thresholds: {
mode: 'absolute',
steps: [
{
color: 'green',
value: null,
},
{
color: 'red',
value: 80,
},
],
},
color: {
mode: 'thresholds',
},
decimals: 1,
unit: 'none',
},
overrides: [],
},
options: {
reduceOptions: {
values: false,
calcs: [
'lastNotNull',
],
fields: '',
},
orientation: 'horizontal',
textMode: 'auto',
colorMode: 'none',
graphMode: 'none',
justifyMode: 'auto',
},
targets: [
{
expr: 'apache_version{instance=~"$instance"}',
legendFormat: '',
interval: '',
exemplar: true,
format: 'time_series',
intervalFactor: 1,
refId: 'A',
step: 240,
datasource: {
type: 'prometheus',
uid: 'grafanacloud-prom',
},
},
],
},
{
id: 5,
gridPos: {
h: 3,
w: 20,
x: 4,
w: 16,
x: 8,
y: 0,
},
type: 'state-timeline',