我目前正在使用weblogic monitoring exporter从WebLogic服务器上抓取指标。我正在尝试使用普罗米修斯显示这些指标。我的prometheus.yml文件内容是:-
# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'wls-exporter'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
metrics_path: '/wls-exporter/metrics'
static_configs:
- targets: ['localhost:7001']
basic_auth:
username: 'weblogic'
password: 'password1'
现在,每当我执行prometheus.exe时,什么都没有发生。我到底做错了什么?PS:-我使用的是Windows 7
发布于 2018-05-01 23:11:01
根据你上次的日志,我建议你试着用'storage.tsdb.no-lockfile=true'
‘运行普罗米修斯,我在win7上有几个例子,数据文件夹被损坏了,普罗米修斯没有启动。当我使用上面的标志时,在win7或win10上运行prometheus没有任何问题
https://stackoverflow.com/questions/49982887
复制相似问题