How can i get cluster metrics without accessing admin ui?

In admin ui, we can get all node-metrics and cluster-metrics.
In the other way, crdb_internals.node_metrics records the metrics of the node at which the sql run.
Now I want to get the metrics of the cluster, by the way similar to query crdb_internals.node_metrics. Is there any command?

Or the cluster-metrics are something calculated from node-metrics?

Hi AGao,

The cluster-metrics are calculated from the node-metrics. Which metric(s) are you interested in?

Lauren

Hi lauren,

Thank you for reply.

I’ve learnt /_status/vars shows some metrics. But I want to make sure if they are all possible metrics we can get.

Thanks,
AGao

Great! /_status/vars does return all of the metrics.