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

exclude_retention_policy_tag and exclude_database_tag excludes both DB and RP tags from metrics even if the other exclude_ parameter is set to false #7310

Closed
abalone23 opened this issue Apr 10, 2020 · 1 comment · Fixed by #7323
Assignees
Labels
area/influxdb bug unexpected problem or unintended behavior
Milestone

Comments

@abalone23
Copy link

Relevant telegraf.conf:

 database_tag = "thedb"
## If true, the database tag will not be added to the metric.
  # exclude_database_tag = false

 retention_policy_tag = "therp"
 ## If true, the 'retention_policy_tag' will not be removed from the metric.
  exclude_retention_policy_tag = true

System info:

telegraf 1.14

Steps to reproduce:

  1. Set exclude_retention_policy_tag = true and exclude_database_tag = false (or vice-versa)
  2. curl -i -XPOST 'http://localhost:8186/write' --data-binary 'cpu_load_short,thedb=mydb,therp=one_week,host=server01,region=us-west value=0.65 1586387198000700200'

Expected behavior:

> select * from cpu_load_short
name: cpu_load_short
time                host     region  thedb    value
----                ----     ------  -----    -----
1586387198000700200 server01 us-west mydb 0.65

Actual behavior:

> select * from cpu_load_short
name: cpu_load_short
time                host     region  value
----                ----     ------  -----
1586387198000700200 server01 us-west 0.65

Additional info:

exclude_retention_policy_tag should only exclude the rp
exclude_database_tag should only exclude the db

@reimda
Copy link
Contributor

reimda commented Apr 10, 2020

related to #7308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/influxdb bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants