floyd871 / prometheus_oracle_exporter

Prometheus Oracle Database exporter
MIT License
109 stars 77 forks source link

how to scrape oracledb_recovery metric #54

Closed dethu closed 4 years ago

dethu commented 4 years ago

Hi, first of all thank you for this very useful exporter.

So should i run binary with flag to scrape oracledb_recovery metric -recovery Expose Recovery percentage usage of FRA (CAN TAKE VERY LONG) , or just use params in prometheus scrape config ? Becouse now when i try to scrape this metric I can't do it

curl -s 'host:9161/metrics?recovery=true' | grep oracledb_recovery

but i can scrape other metrics

curl -s 'host:9161/metrics?recovery=true' |grep oracledb_up
# HELP oracledb_up Whether the Oracle server is up.
# TYPE oracledb_up gauge
oracledb_up{database="LWTER.internal",dbinstance="LWTER"} 1
floyd871 commented 4 years ago

It depends on your usecase. If you need the recovery metrics add "recovery=true"..