尝试了解是否有一种方法可以使用类似于联合端点抓取的remote_write仅将某些指标发送到远程存储。
最佳答案
找到了答案,但不知道我最初是如何错过的:
write_relabel_configs is relabeling applied to samples before sending them to the remote endpoint. Write relabeling is applied after external labels. This could be used to limit which samples are sent.
来自https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write
关于prometheus - 如何在 Prometheus 中仅远程写入所有抓取指标的子集?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56155339/