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

Disable metric name substition #16

Open
tomplast opened this issue Nov 2, 2015 · 1 comment
Open

Disable metric name substition #16

tomplast opened this issue Nov 2, 2015 · 1 comment

Comments

@tomplast
Copy link

tomplast commented Nov 2, 2015

Hi,

I have a check that outputs a lot of performance data and when sent to graphite I would like it to preserve the . (DOTS) so I can have the structure I require.

It would be nice if it were possible to conditionally turn off the substitution for the metric names, something like this:

if e.name.startswith('@'):
name = e.name[1:]
else:
name = self.illegal_char.sub('_', e.name)

I'm not sure but I have a feeling that this may break the graphite plugin for the WebUI? None the less, would be really nice to be able to use Shinken to get the metrics into Graphite instead of having to use some separate script just to ship it directly to Graphite.

@mohierf
Copy link

mohierf commented Nov 6, 2015

@tomplast : would you mind copying an example please. I am not sure to really understand what you want exactly ...

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