-
Notifications
You must be signed in to change notification settings - Fork 582
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 #7334] GraphiteWriter: Add support for customized metric prefix names #2031
Comments
Updated by chrisjx on 2014-10-01 18:04:24 +00:00 Correction: In the above example of what the tree might look like in Graphite (don"t see how to edit the above):
|
Updated by gbeutner on 2014-10-02 12:39:55 +00:00 Oh hi :) I guess one thing we could do is implement macro-based templates for names:
That way you could also easily use host/service custom variables ( |
Updated by chrisjx on 2014-10-02 22:46:56 +00:00 That sounds excellent... Is this the same approach used to create custom messages for notifications? |
Updated by mfriedrich on 2014-10-11 18:41:07 +00:00
I really like the idea. Especially since you are not bound to runtime macros but can also use global constants setting the graphite environment (which saves you the hassle of defining a host custom var everywhere or in templates). I"ve implemented the feature already, running tests and updated documentation. IIRC that was one of the most requested features during Icinga Camp in SFO, so I guess we"re good to go with it in 2.2. |
Updated by mfriedrich on 2014-10-11 18:42:08 +00:00
|
Updated by mfriedrich on 2014-10-11 18:45:03 +00:00
Applied in changeset 57d9453. |
Updated by gbeutner on 2014-10-12 11:33:22 +00:00
|
Updated by mfriedrich on 2014-10-12 14:21:06 +00:00 Missed that yesterday, thanks for the fix! |
Updated by gbeutner on 2014-10-17 08:55:58 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/7334
Created by chrisjx on 2014-10-01 17:57:55 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2014-10-12 11:33:22 +00:00)
Target Version: 2.2.0
Last Update: 2014-10-17 09:05:31 +00:00 (in Redmine)
Currently the graphite writer routine builds metric names based on the following pattern:
Examples:
In our configuration we will have multiple environments each with similar domain names. It would be very helpful for us to be able to insert the environment name between "icinga" and the "domain name".
For example, we will have a database server in 2 environments that look like this:
so the resulting output in graphite might look like this:
In the graphite tree we would see:
icinga
Because of the nature of domain names being reverse of most sorting methods, it would be difficult to segregate environments within the graphite tree.
Currently I assume there is a method in C** code that concatenates the elements and takes the domain name dots, converts to underscores, etc.
Perhaps there could be a config item that provides for a secondary replacement of first and second elements:
I have no idea how this gets implemented, so on that last point, it is just brainstorming.
Thank you for your consideration,
Chris.
Attachments
Changesets
2014-10-11 18:38:24 +00:00 by mfriedrich 57d9453
2014-10-12 11:30:39 +00:00 by gbeutner 989125c
The text was updated successfully, but these errors were encountered: