ASP.NET Core 集成Prometheus+grafana
相关主页 Prometheus https://prometheus.io/ grafana https://grafana.com/ 安装Prometheus Linux 可以参考 https://www.cnblogs.com/linkanyway/p/Configure-a-Prometheus-Monitoring-Server-with-a-Gr.html windows: 下载地址: https://prometheus.io/download/ 下载对应windows版本 解压后在命令行运行 prometheus.exe 然后访问 http://localhost:9090/ 出现以下页面说明启动成功: 如果要添加监视服务器可以配置:prometheus.yml global: scrape_interval: 15s evaluation_interval: 15s scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] - job_name: 'node_exporter' scrape_interval: 5s static_configs: - targets: ['localhost:9100'] node-exporter node