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

Write metrics to different influxdb databases #25

Closed
adrianlzt opened this issue Feb 2, 2017 · 8 comments
Closed

Write metrics to different influxdb databases #25

adrianlzt opened this issue Feb 2, 2017 · 8 comments

Comments

@adrianlzt
Copy link

I have discovered this project while making a PR to mod_gearman.

I'm trying also to send icinga perfdata to InfluxDB, but I need to send each perfdata to a different database based on a custom template defined in each host.

Any idea if it will be possible to handle this with nagflux?

Thanks!

@Griesbacher
Copy link
Owner

Hi,
at the moment it not possible to do that, if mod_gearman is not able to do so. You could only collect the data from multiple mod_gearman servers but send them just to one InfluxDB. But we were already talking about something like that and I'll add such feature when I'm back to work, in a some weeks.
I was thinking about something like, multiple named serverconfigs within the nagflux config and if such a name is passed by a perfdata the data will be send to the corresponding InfluxDB. If the field is empty the default InfluxDB will be chosen.
Greetings Philip

@adrianlzt
Copy link
Author

And choosing the influxdb databse with a custom variable?
@sni is thinking in expanding mod_gearman to be able to add custom variables: sni/mod_gearman#108 (comment)

@Griesbacher
Copy link
Owner

Exactly, e.g. you're setting a customvariable like NAGFLUX::TARGET to server1, then nagflux would send the data to the server1, which config/address is stored in a the nagflux config

@sni
Copy link
Collaborator

sni commented Feb 3, 2017

It would be possible if Mod-Gearman had a customizable performance data template so you could just define the data like ex.: ...NAGFLUX:DB=$_HOSTINFLUXDB$ or something like that.

@adrianlzt
Copy link
Author

adrianlzt commented Feb 3, 2017 via email

@adrianlzt
Copy link
Author

Any update on this?
Thanks

@Griesbacher
Copy link
Owner

I'll be back at the office in one week and tackle the problem then. It's not forgotten.

@Griesbacher
Copy link
Owner

The latest release should solve this issue.

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

3 participants