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

Change metric type for system_uptime_format in the system input plugin #3577

Closed
ildarsv opened this issue Dec 13, 2017 · 0 comments
Closed
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@ildarsv
Copy link
Contributor

ildarsv commented Dec 13, 2017

Bug report

Since the uptime_format field was added into the system input plugin as Counter, I have tag uptime_format, not field as expected in my prometheus output. The reason is the following: string value can not be Counter. By the way, prometheus doesn't support string values, in that case system_uptime_format have to be skipped.

Relevant telegraf.conf:

[[inputs.system]]

[[outputs.prometheus_client]]
listen = "0.0.0.0:9126"

System info:

telegraf 1.5 rc1

Steps to reproduce:

  1. Add system input and prometheus output.
  2. Check system_uptime metric.

Expected behavior:

system_uptime{host="host_name"} 186665

Actual behavior:

system_uptime{host="cfg01",uptime_format="2 days, 3:51"} 186665

@danielnelson danielnelson added this to the 1.5.0 milestone Dec 13, 2017
@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants