-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 plugin with prometheus_client output wont show member_status #2928
Comments
This is because these are string fields, prometheus has only float values. Are you thinking we should add string fields as labels? |
in my opinion that info are tags for prometheus. and later in query i want to search them as a tags not as values |
If we move string fields to labels, we need to consider it for all metrics. Would love to hear from other prometheus users too. |
probably there we have 3 options here
to make a decidion we have to understand which values are currently lost in case of luck of convertion. |
I'm not sure what you mean by this, can you explain in a little more detail? |
One more idea that I think is being worked on, a processor that can promote a field to tag and vice versa. |
telegraf/plugins/inputs/mongodb/mongostat.go Line 559 in e7f9db2
looks a little weird for me. |
any news? |
ping? |
Hey @freeseacher, I'm actually in this code right now, I will go ahead and add the string fields as labels and we can see how it ends up looking. |
oh! cool. :) |
Bug report
Relevant telegraf.conf:
System info:
Telegraf v1.3.2 (git: release-1.3 0f419e9)
Steps to reproduce:
telegraf --config mongodb.conf --test
curl http://0.0.0.0:9126/metrics
Expected behavior:
state="SECONDARY" and member_status="SEC" will be shown as tags
Actual behavior:
none of states is shown
The text was updated successfully, but these errors were encountered: