我正在使用Cadvisor获取容器的kubernetes统计数据,它在端口8080上运行得很好。现在我需要在prometheus,https://github.com/google/cadvisor/blob/master/docs/storage/README.md中导出这些指标
上面链接指定了cadvisor提供prometheus作为存储驱动程序。
有人能把这些步骤整合到我身上吗?
发布于 2018-11-29 23:05:37
只要告诉Prometheus抓取cAdvisor服务器的"/metrics“端点即可。这是我的cAdvisor实例的抓取配置:
scrape_configs:
- job_name: cadvisor
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- cadvisor:8080
relabel_configs:
- separator: ;
regex: (.*)
target_label: instance
replacement: cadvisor
action: replacehttps://stackoverflow.com/questions/53522402
复制相似问题