overview dashboard: Show offending instance in error log rate graph

pull/151/head
Mike Lang 5 years ago
parent 249e32583b
commit 77f23d775a

@ -353,9 +353,9 @@
"targets": [ "targets": [
{ {
"intervalFactor": 1, "intervalFactor": 1,
"expr": "sum(irate(log_count_total{level!=\"INFO\"}[2m])) by (job, level, module, function) > 0\n", "expr": "sum(irate(log_count_total{level!=\"INFO\"}[2m])) by (instance, job, level, module, function) > 0\n",
"refId": "A", "refId": "A",
"legendFormat": "{{job}} {{level}}({{module}}:{{function}})", "legendFormat": "{{instance}} {{job}} {{level}}({{module}}:{{function}})",
"format": "time_series" "format": "time_series"
} }
], ],

@ -122,8 +122,8 @@ grafana.dashboard({
axis: {min: 0, label: "logs / sec"}, axis: {min: 0, label: "logs / sec"},
display: "bars", display: "bars",
expressions: { expressions: {
"{{job}} {{level}}({{module}}:{{function}})": ||| "{{instance}} {{job}} {{level}}({{module}}:{{function}})": |||
sum(irate(log_count_total{level!="INFO"}[2m])) by (job, level, module, function) > 0 sum(irate(log_count_total{level!="INFO"}[2m])) by (instance, job, level, module, function) > 0
|||, |||,
}, },
}, },

Loading…
Cancel
Save