我使用 Grafana 和 Prometheus。两者都安装在同一台服务器上,并且我不使用 docker。
最近我导入了 Node-Exporter 仪表板,并修改了
prometheus.yml
文件,如下所示:
global:
scrape_interval: 15s
evaluation_interval: 15s
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
- job_name: "node"
static_configs:
- targets: ['localhost:9100']
但是节点作业起不来。下来了:
知道如何让它发挥作用吗?
您可以使用 cmd sudo systemctl status node_exporter 检查节点导出器状态并发布输出吗?
我有配置: prometheus 在 docker 中,node_exporter 在本地设置。 来自 docker localhost 是容器内的本地主机。 我改变了