kube-prometheus: Make grafana dashboards non-editable
This commit is contained in:
@@ -6,6 +6,7 @@ dashboard = Dashboard(
|
||||
version=2,
|
||||
graphTooltip=0,
|
||||
refresh=False,
|
||||
editable=False,
|
||||
schemaVersion=14,
|
||||
time=Time(start='now-3h'),
|
||||
timezone='browser',
|
||||
@@ -21,7 +22,7 @@ dashboard = Dashboard(
|
||||
],
|
||||
rows=[
|
||||
Row(
|
||||
height=300, title='CPU Cores', showTitle=False,
|
||||
height=300, title='CPU Cores', showTitle=False, editable=False,
|
||||
titleSize='h6', panels=[
|
||||
Graph(
|
||||
title='CPU Cores',
|
||||
@@ -37,6 +38,7 @@ dashboard = Dashboard(
|
||||
dashLength=10,
|
||||
dashes=False,
|
||||
isNew=False,
|
||||
editable=False,
|
||||
lineWidth=1,
|
||||
spaceLength=10,
|
||||
nullPointMode='null',
|
||||
@@ -74,6 +76,7 @@ dashboard = Dashboard(
|
||||
dataSource='${DS_PROMETHEUS}',
|
||||
id=2,
|
||||
format='percent',
|
||||
editable=False,
|
||||
span=3,
|
||||
gauge=Gauge(show=True),
|
||||
sparkline=SparkLine(show=True),
|
||||
@@ -109,7 +112,7 @@ dashboard = Dashboard(
|
||||
],
|
||||
),
|
||||
Row(
|
||||
height=300, title='Memory', showTitle=False,
|
||||
height=300, title='Memory', showTitle=False, editable=False,
|
||||
titleSize='h6', panels=[
|
||||
Graph(
|
||||
title='Memory',
|
||||
@@ -126,6 +129,7 @@ dashboard = Dashboard(
|
||||
dashes=False,
|
||||
lineWidth=1,
|
||||
isNew=False,
|
||||
editable=False,
|
||||
spaceLength=10,
|
||||
span=9,
|
||||
nullPointMode='null',
|
||||
@@ -165,6 +169,7 @@ dashboard = Dashboard(
|
||||
span=3,
|
||||
gauge=Gauge(show=True),
|
||||
sparkline=SparkLine(show=True),
|
||||
editable=False,
|
||||
valueFontSize='110%',
|
||||
thresholds='80, 90',
|
||||
valueMaps=[
|
||||
|
Reference in New Issue
Block a user