I’ve started percona mongodb prometheus exporter using docker image:
docker container run -d -p 9216:9216 -p 17001:17001 \
--name percona percona/mongodb_exporter:0.30.0 \
--mongodb.uri=mongodb://mongodb_exporter:password@172.17.0.1:30001 \
--log.level=debug
After that, I’ve configured my prometheus in order to recollect metrics from percona exporter:
scrape_configs:
- job_name: 'percona_exporter'
scrape_interval: 5s
static_configs:
- targets: ['172.17.0.1:9216']
Prometheus target is up and running.
I’m able to see generated metrics on prometheus metrics explorer:
...
mongodb_ss_wt_connection_auto_adjusting_condition_wait_raced_to_update_timeout_and_skipped_updating
mongodb_ss_wt_connection_pthread_mutex_shared_lock_write_lock_calls
mongodb_ss_wt_connection_pthread_mutex_shared_lock_read_lock_calls
mongodb_ss_wt_connection_hash_bucket_array_size_for_data_handles
mongodb_ss_wt_connection_auto_adjusting_condition_wait_calls
...
I’m imported Grafana MongoDb Percona Dashboard into my grafana.
Nevertheless, nothing is shown:
I don’t quite figure out what I’m doing wrong.