Skip to content

[bug] prometheus_client stops gather metrics after reciving HUP #3049

@freeseacher

Description

@freeseacher

Bug report

Relevant telegraf.conf:


[global_tags]
dc = "DC" # will tag all metrics with dc=us-east-1
env = "prod"

[agent]
  interval = "10s"
  round_interval = true
  metric_buffer_limit = 10000
  flush_buffer_when_full = true
  collection_jitter = "0s"
  flush_interval = "10s"
  flush_jitter = "0s"
  debug = false
  quiet = true
  hostname = "ddiscovery02"

[[inputs.mem]]

[[outputs.prometheus_client]]
  ## Address to listen on
  listen = "0.0.0.0:9126"
  expiration_interval = "10s"

System info:

Telegraf v1.3.4 (git: release-1.3 7bbd3da)
Rhel 7.3

Steps to reproduce:

  1. add config
  2. start telegraf
  3. curl http://0.0.0.0:9126/metrics ensure mem metrics are here
  4. systemctl reload telegraf
  5. curl http://0.0.0.0:9126/metrics ensure mem metrics are here

Expected behavior:

After reload metrics still there

Actual behavior:

only prometheus_client itself metrics are in output.

Additional info:

[Include gist of relevant config, logs, etc.]

https://gist.github.com/freeseacher/e8647e49591f21b348accd8201bb6173

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions