Empty grafana dashboard: docker mongodb exporter

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.

1 Like

Hi Jordi,

You should take a dashboard from “main” branch.

1 Like

Thanks adivinho.

Some data is shown now.

Nevertheless, I’m getting this message from grafana:

Do you know anything about it?

1 Like

Some variables can’t be assigned because you don’t have datasource Metrics in your installation.

You may set the correct datasource for variables in dashboard settings.

1 Like