目录 /usr/local/webserver/prometheus
直接解压
需要exporter收集数据
elasticsearch_exporter,收集es运行状态
node_exporter,收集机器cpu内存等信息
启动使用nohup ./elasticsearch_exporter &
prometheus配置
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
- job_name: "node"
static_configs:
- targets: ["localhost:9100"]
- job_name: "elasticsearch"
static_configs:
- targets: ["localhost:9114"]
启动使用nohup ./prometheus &