如何使用Django集成Prometheus进行应用监控?
- 内容介绍
- 文章标签
- 相关推荐
本文共计215个文字,预计阅读时间需要1分钟。
1. 首先在`prometheus.yml`配置文件中设置`targets`: targets: - job_name: test-server-191 static_configs: - targets: [localhost:9100] 然后重新启动Prometheus。 接着,点击查看`Status`下的`Targets`,检查`Endpoint`数据是否为正常`UP`状态。
本文共计215个文字,预计阅读时间需要1分钟。
1. 首先在`prometheus.yml`配置文件中设置`targets`: targets: - job_name: test-server-191 static_configs: - targets: [localhost:9100] 然后重新启动Prometheus。 接着,点击查看`Status`下的`Targets`,检查`Endpoint`数据是否为正常`UP`状态。

