Skip to content

Commit

Permalink
improve grafana regex and query for repeating panels
Browse files Browse the repository at this point in the history
  • Loading branch information
NavidSassan committed Sep 27, 2024
1 parent 0b29964 commit f372d82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions check-plugins/disk-io/grafana/disk-io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ spec:
label: Metric
multi: true
name: metric
query: SHOW TAG VALUES FROM "cmd-check-disk-io" WITH KEY = "metric"
query: SHOW TAG VALUES FROM "cmd-check-disk-io" WITH KEY = "metric" WHERE hostname =~ /$hostname/
refresh: 2
regex: /^(.*)_.*_.*_.*_.*$/
regex: /^([^_]+)/
sort: 1
type: query

Expand Down
2 changes: 1 addition & 1 deletion check-plugins/network-io/grafana/network-io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
name: metric
query: SHOW TAG VALUES FROM "cmd-check-network-io" WITH KEY = "metric" WHERE hostname =~ /$hostname/
refresh: 2
regex: /^(.*)_.*_.*_.*_.*$/
regex: /^([^_]+)/
sort: 1
type: query

Expand Down

0 comments on commit f372d82

Please sign in to comment.