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

Unable to drop a measurement created by telegraf #1579

Closed
stevenh opened this issue Aug 3, 2016 · 4 comments
Closed

Unable to drop a measurement created by telegraf #1579

stevenh opened this issue Aug 3, 2016 · 4 comments

Comments

@stevenh
Copy link

stevenh commented Aug 3, 2016

Bug report

It seems be be impossible to drop a measurement without first stopping telegraf.

System info:

influxdb 0.12.2
telegraf 0.13.1
linux 3.10
telegraf.conf

[[inputs.statsd]]
  allowed_pending_messages = 100000
  delete_counters = false
  delete_gauges = false
  delete_sets = false
  delete_timings = false
  metric_separator = "."
  percentile_limit = 1000
  percentiles = [50, 90, 99]
  service_address = ":8125"

Steps to reproduce:

  1. Run telegraf and ingest some stats via the statsd plugin.
  2. Reconfigure telegraf so the stats are renamed e.g. change metric_separator .
  3. Drop the old measurements using influx cli
  4. List measurements and the drop measurement will be back.

Expected behavior:

Dropped measurements should stay dropped unless the generator is still sending them.

Actual behavior:

Measurements that are no longer being reported via statsd protocol either due to a client change or a telegraf configuration change so the names are now different are re-created.

@stevenh
Copy link
Author

stevenh commented Aug 3, 2016

Telegraf doesn't seem to be only factor here even with it off something seems to be still re-creating the metrics, which is even more strange given statds plugin in Telegraf is how the stats are actually getting ingested in, so with it off there should be nothing adding new stats.

@sparrc
Copy link
Contributor

sparrc commented Aug 3, 2016

telegraf doesn't dynamically load the configuration file, so I think the problem is just that telegraf is still running with the old config, likely a dupe of #272

@stevenh
Copy link
Author

stevenh commented Aug 3, 2016

I pretty sure that's not the case @sparrc as I've restarted Telegraf and now turned it off, and its still happening, so it may well not be Telegraf, investigating more as what worked to enable us to delete measurements in labs isn't working in production and its most odd.

@stevenh stevenh changed the title Unable to drop a measurement while telegraf is running Unable to drop a measurement created by telegraf Aug 3, 2016
@stevenh
Copy link
Author

stevenh commented Aug 4, 2016

Closing as this is actually a bug in influxdb see: influxdata/influxdb#7112 (comment)

@stevenh stevenh closed this as completed Aug 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants