[Prometheus] Relabelling – Custom “__name__” to your mind
Case chúng ta là ntn. Tôi nhận metrics từ 1 Recording Rules và source_labels:[__name__] như ảnh. Tôi muốn chuyển nó từ federate:istio_request_duration_milliseconds_bucket:rate1mthành như sau: istio_request_duration_milliseconds_bucket Câu hỏi làm sao bạn để ý dòng regex: ‘federate:(.*):rate1m’ trong đoạn code bên dưới. Nếu bạn ko metric_relabel_configs thì bạn phải query như sau:federate:istio_request_duration_milliseconds_bucket:rate1m