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

[dev.icinga.com #12879] OpenTsdbWriter dot not insert metric names with colon character : #4723

Closed
icinga-migration opened this issue Oct 10, 2016 · 6 comments
Assignees
Labels
area/metrics General metrics handling area/opentsdb Metrics to OpenTSDB bug Something isn't working help wanted Extra attention is needed

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/12879

Created by jre3brg on 2016-10-10 06:44:04 +00:00

Assignee: tobiasvdk
Status: Assigned
Target Version: (none)
Last Update: 2016-11-11 10:02:08 +00:00 (in Redmine)

Icinga Version: v2.5.4
Backport?: Not yet backported
Include in Changelog: 1

OpenTsdbWriter do not insert metric names with colon character. Metrics came from Windows agents include colon on disk drive letters !

[2016-10-10 08:34:42 +0200] debug/OpenTsdbWriter: Add to metric list:'put icinga.service.disk.C:_ 1476081281 15031336960 host=xyz_xyz_xyz'.

Changesets

2016-10-20 20:50:33 +00:00 by (unknown) ba81472

Fix metric and tag escaping for OpenTSDB writer

Currently only the following characters are allowed: a to z, A to Z,
0 to 9, -, _, ., / so use a regex to replace other characters with an
_ (underscore).

refs #12879
@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-10-11 10:39:57 +00:00

  • Status changed from New to Assigned
  • Assigned to set to tobiasvdk

tobiasvdk: Can you have a look at this please?

@icinga-migration
Copy link
Author

Updated by tobiasvdk on 2016-10-11 10:59:35 +00:00

Colons are not supported in metric or tag names, see http://opentsdb.net/docs/build/html/user\_guide/writing.html#metrics-and-tags so they must be replaced. I will check the code tomorrow.

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-11-02 12:45:27 +00:00

Any update on this? :)

@icinga-migration
Copy link
Author

Updated by tobiasvdk on 2016-11-11 10:02:08 +00:00

gunnarbeutner wrote:

Any update on this? :)
We are currently working it.

@icinga-migration icinga-migration added bug Something isn't working area/metrics General metrics handling labels Jan 17, 2017
@dnsmichi dnsmichi added the help wanted Extra attention is needed label Apr 26, 2017
@dnsmichi dnsmichi added the area/opentsdb Metrics to OpenTSDB label Jan 20, 2018
@jre3brg
Copy link
Contributor

jre3brg commented Feb 18, 2018

I would propose to replace all characters not allowed by opentsdb by underscore to avoid further incompatibilities with metric name. As example a windows path needs the colon character for windows disk size check.

@dnsmichi
Copy link
Contributor

Send a PR please, this will be assigned a target issue then. This one has no progress at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/metrics General metrics handling area/opentsdb Metrics to OpenTSDB bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants