AI 与机器学习
使用 Prometheus 对 Go 程序进行指标采集
Posts on 煎é±0 次浏览
在前面的章节中,已经知道了如何对应用程序进行 Prometheus metrics 的注册和暴露,那么接下来如何让 Prometheus 对应用程序进行采集呢。 设置采集配置 首先打开先前所安装的 prometheus 软件目录: $ ls LICENSE data promtool NOTICE prometheus rules console_libraries prometheus.yml tsdb consoles prometheus.yml.default 打开并修改 prometheus.yml 文件,查看到 scrape_configs 配置选项,进行如下调整: ... scrape_configs: - job_name: 'test01' static_configs: - targets: ['127.
原文:https://eddycjy.com/posts/prometheus/2020-05-16-pull/



