#is there a way to get a list of all

1 messages · Page 1 of 1 (latest)

fluid tinsel
#

not at the moment. we could create a a gron or jq script to extract the expressions. is that what you're looking for?

median spoke
#

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?

fluid tinsel
#

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

median spoke
#

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..

fluid tinsel
#

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"

fluid tinsel
median spoke
#

that is absolutely wonderful, thank you!

#

I was literally doing this by hand until now