Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongodb - missing metrics #4015

Closed
iatalay opened this issue Apr 12, 2018 · 2 comments
Closed

mongodb - missing metrics #4015

iatalay opened this issue Apr 12, 2018 · 2 comments
Labels
discussion Topics for discussion

Comments

@iatalay
Copy link

iatalay commented Apr 12, 2018

Bug report

Telegraf is not collecting some metrics for mongodb plugin.

Relevant telegraf.conf:

[[inputs.mongodb]]
servers = ["mongodb://usrtelegraf:[email protected]:27018"]

System info:

db.createUser( { "user" : "usrtelegraf", "pwd": "teleusr", roles: [ "root" ] } )

mongodb version 3.6
Telegraf v1.6.0~rc3 (git: release-1.6 3c03992)
Windows Server 2008 R2 Enterprise

Steps to reproduce:

Expected behavior:

Telegraf has to collect metrics mentioned in the following link;
https://github.com/influxdata/telegraf/tree/master/plugins/inputs/mongodb

Actual behavior:

mongodb_db_stats & mongodb_shard_stats meausurements are missing.
mongodb measurement has missing fields.

Additional info:

C:\Program Files\Telegraf>telegraf --input-filter mongodb --test
2018/04/12 11:37:43 I! Using config file: C:\Program Files\Telegraf\telegraf.conf

  • Plugin: inputs.mongodb, Collection 1
  • Plugin: inputs.mongodb, Collection 2

mongodb,host=node11,hostname=node11.mydomain:27018 flushes_per_sec=0i,total_created=0i,commands_per_sec=4i,queued_reads=0i,inserts_per_sec=0i,percent_cache_used=0,wtcache_server_evicting_pages=0i,wtcache_app_threads_page_read_count=11i,getmores_per_sec=0i,jumbo_chunks=0i,total_refreshing=0i,wtcache_worker_thread_evictingpages=0i,wtcache_current_bytes=73020i,queries_per_sec=0i,resident_megabytes=116i,open_connections=10i,wtcache_max_bytes_configured=8052015104i,wtcache_app_threads_page_write_count=20i,updates_per_sec=0i,wtcache_app_threads_page_read_time=0i,wtcache_bytes_written_from=90921i,net_in_bytes=296i,total_available=0i,wtcache_bytes_read_into=47312i,ttl_passes_per_sec=0i,queued_writes=0i,vsize_megabytes=939i,wtcache_pages_evicted_by_app_thread=0i,wtcache_tracked_dirty_bytes=0i,net_out_bytes=26989i,ttl_deletes_per_sec=0i,deletes_per_sec=0i,percent_cache_dirty=0,wtcache_pages_queued_for_eviction=0i,active_writes=0i,active_reads=1i,total_in_use=0i 1523522264000000000

@russorat
Copy link
Contributor

@iatalay i believe this PR adds those metrics: #3819. It will be in the 1.7 release or the nightlies.

@danielnelson
Copy link
Contributor

The mongodb_db_stats are in 1.6, but you need to have the setting: gather_perdb_stats = true. The shard stats are indeed only in 1.7.

@danielnelson danielnelson added the discussion Topics for discussion label Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Topics for discussion
Projects
None yet
Development

No branches or pull requests

3 participants