0
我在默認端口上運行9101 配置文件後普羅米修斯使用haproxy_exporter我不能夠以默認的端口上運行此。無法在本地主機上運行haproxy_exporter:9101
爲HAProxy的配置文件:普羅米修斯
frontend frontend
bind :1234
use_backend backend
backend backend
server server 0.0.0.0:9000
frontend monitoring
bind :1235
no log
stats uri/
stats enable
配置文件
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
monitor: 'codelab-monitor'
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'production'
static_configs:
- targets: ['localhost:8080', 'localhost:8081']
labels:
group: 'production'
- job_name: 'canary'
static_configs:
- targets: ['localhost:8082']
labels:
group: 'canary'
- job_name: 'test'
static_configs:
- targets: ['localhost:9091']
- job_name: 'test1'
static_configs:
- targets: ['localhost:9091']
- job_name: 'test2'
static_configs:
- targets: ['localhost:9091']
- job_name: 'haproxy'
static_configs:
- targets: ['localhost:9188']
請,誰能幫助我這個?
可能的問題是取決於操作系統的OS是你? HAproxy版本是1.7.2-1。 – honey
現在工作正常。萬分感謝 – honey