mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 06:46:10 +00:00
Grafana: drop "container" variable
This commit is contained in:
parent
c55c0917a8
commit
51c88e7d53
@ -43,33 +43,6 @@ if title == "":
|
|||||||
|
|
||||||
outputData["templating"]["list"] = parseJson("""
|
outputData["templating"]["list"] = parseJson("""
|
||||||
[
|
[
|
||||||
{
|
|
||||||
"allValue": null,
|
|
||||||
"current": {
|
|
||||||
"tags": [],
|
|
||||||
"text": "beacon-node-testnet""" & $testnet & """-1",
|
|
||||||
"value": "beacon-node-testnet""" & $testnet & """-1"
|
|
||||||
},
|
|
||||||
"datasource": "node-01.do-ams3.public.hq",
|
|
||||||
"definition": "label_values(process_virtual_memory_bytes{job=\"beacon-node-metrics\"},container)",
|
|
||||||
"hide": 0,
|
|
||||||
"includeAll": false,
|
|
||||||
"index": -1,
|
|
||||||
"label": null,
|
|
||||||
"multi": false,
|
|
||||||
"name": "container",
|
|
||||||
"options": [],
|
|
||||||
"query": "label_values(process_virtual_memory_bytes{job=\"beacon-node-metrics\"},container)",
|
|
||||||
"refresh": 1,
|
|
||||||
"regex": "/.*testnet""" & $testnet & """.*/",
|
|
||||||
"skipUrlSync": false,
|
|
||||||
"sort": 1,
|
|
||||||
"tagValuesQuery": "",
|
|
||||||
"tags": [],
|
|
||||||
"tagsQuery": "",
|
|
||||||
"type": "query",
|
|
||||||
"useTags": false
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"allValue": null,
|
"allValue": null,
|
||||||
"current": {
|
"current": {
|
||||||
@ -106,7 +79,7 @@ outputData["templating"]["list"] = parseJson("""
|
|||||||
|
|
||||||
outputData["panels"] = %* []
|
outputData["panels"] = %* []
|
||||||
for panel in panels.mitems:
|
for panel in panels.mitems:
|
||||||
panel["title"] = %* replace(panel["title"].getStr(), "${node}", "${container}@${instance}")
|
panel["title"] = %* replace(panel["title"].getStr(), "${node}", "${instance}")
|
||||||
panel["datasource"] = newJNull()
|
panel["datasource"] = newJNull()
|
||||||
if panel.hasKey("targets"):
|
if panel.hasKey("targets"):
|
||||||
var targets = panel["targets"]
|
var targets = panel["targets"]
|
||||||
@ -114,8 +87,8 @@ for panel in panels.mitems:
|
|||||||
# The remote Prometheus instance polls once per minute, so the
|
# The remote Prometheus instance polls once per minute, so the
|
||||||
# minimum rate() interval is 2 minutes.
|
# minimum rate() interval is 2 minutes.
|
||||||
target["expr"] = %* multiReplace(target["expr"].getStr(),
|
target["expr"] = %* multiReplace(target["expr"].getStr(),
|
||||||
("{node=\"${node}\"}", "{job=\"beacon-node-metrics\",container=\"${container}\",instance=\"${instance}\"}"),
|
("{node=\"${node}\"}", "{job=\"beacon-node-metrics\",instance=\"${instance}\"}"),
|
||||||
("sum(beacon_attestations_sent_total)", "sum(beacon_attestations_sent_total{job=\"beacon-node-metrics\",container=~\"beacon-node-testnet" & $testnet & "-.\"})"),
|
("sum(beacon_attestations_sent_total)", "sum(beacon_attestations_sent_total{job=\"beacon-node-metrics\"})"),
|
||||||
("[2s]", "[2m]"),
|
("[2s]", "[2m]"),
|
||||||
("[4s]) * 3", "[2m]) * 120"))
|
("[4s]) * 3", "[2m]) * 120"))
|
||||||
outputData["panels"].add(panel)
|
outputData["panels"].add(panel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user