#Display substring of value
1 messages · Page 1 of 1 (latest)
See if below works as a prometheus query?
label_replace(node_labels, "extracted_version", "$1", "version", ".*([0-9]+\\.[0-9]+\\.[0-9]+[A-Za-z0-9]*).*")
hmm still looks the same. I'm currently to create a overview dashboard where we see the amount of systems per version with the query sum(netapp_node_labels{datacenter=~"$Datacenter",cluster=~"$Cluster"}) by (version)
Query I gave above creates a new label extracted_version as below