我目前正致力于使用weblogic monitoring exporter从WebLogic服务器抓取指标。我正在尝试使用prometheus显示这些指标。我的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上
答案 0 :(得分:0)
根据您上次的日志,我建议尝试使用'storage.tsdb.no-lockfile=true'
运行prometheus
我在win7上有几个案例,数据文件夹已损坏而prometheus无法启动。当我使用上面的标志时,我在win7或win10上运行prometheus没有问题