#is there a way to get a list of all
1 messages · Page 1 of 1 (latest)
not at the moment. we could create a a gron or jq script to extract the expressions. is that what you're looking for?
honestly I'm not sure. for example, this is a (partial) list of stuff in the Cluster dashboard:
Highlights:
Read latency
Write latency
Throughput
IOps
CPU Utilization
Disk Utilitization
Latency
Throughput
IOPs
basically I'd love a way to get a list of all metrics in all dashboards (the ones that come out of the box, anyway)
does that make sense?
it does - we don't publish that anywhere at the moment, but since the dashboards are all json, it's extractable depending on how comfortable you are with jq, gron, etc. For example, cluster metrics:
cat grafana/dashboards/cmode/cluster.json | gron | rg "expr|query.query"
another idea - we could add that as a feature of bin/grafana something like bin/grafana metrics which prints all metrics used in a dashboard
either of those would be great. I'll take a look at the first one, thanks Chris!
any idea which RHEL package provides rg? the what-provides command can't find it..
not sure, it may be called ripgrep. but you can use grep -E instead too
cat grafana/dashboards/cmode/cluster.json | gron | grep -E "expr|query.query"
i took a few minutes to add bin/grafana metrics does this have what you want, anything else you need in the output? https://gist.github.com/cgrinds/a8a47122d0962012644aead22116b1a0