Hello everyone, I have an interesting question regarding labels. So I am trying to pull values with metrics specifically PVC data and pretty much would like to produce a label with the yielded results.
For instance, here is my simple query argument for the PVCs within one of my environments looking for statefulsets that have PVCs with storage utilization that is 40% or higher. Specifically, is there a way to create a label for the value output? This is so when our alerts fire, we could declare a variable which produces accurate info in the alert message itself. Does anyone have any good ideas on this?
Specifically I am trying to produce a {{ $labels.storage }} label, based on the value produced by the expression below:
```kubelet_volume_stats_available_bytes/kubelet_volume_stats_capacity_bytes < .60
Element:
{endpoint="http-metrics",instance="10.xxx.58.210:10255",job="kubelet",metrics_path="/metrics",namespace="{infra}",node="gke-xxx-xxx-xxx-001-stateful-394fxxxx-xxxx",persistentvolumeclaim="prometheus-prometheus-operator-prometheus-db-prometheus-prometheus-operator-prometheus-0",service="prometheus-operator-kubelet"}
Value:
0.505853632940522```