-
我使用kube-prometheus监控了一个k8s集群,我想把kube-prometheus的采集的数据推送到都推送到夜莺v5,在夜莺v5上做图形展示和告警。 如何让夜莺v5可以采集另一个prometheus实例的完整数据,类似联邦模式 |
Beta Was this translation helpful? Give feedback.
Answered by
UlricQin
Oct 26, 2022
Replies: 2 comments 5 replies
-
两个方案:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
UlricQin
-
version: 2.32.1
remoteWrite:
- url: "http://nightingale-nserver.n9e:80/prometheus/v1/write"
writeRelabelConfigs:
- sourceLabels: ["instance"]
separator: ";"
action: "replace"
regex: "(.*)"
replacement: "$1"
targetLabel: "ident" 通过配置writeRelabelConfigs 解决了 对象列表无法识别 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
两个方案:
/prometheus/v1/write
接口