-
Notifications
You must be signed in to change notification settings - Fork 490
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
Define sensu source in the sensu service #1132
Comments
@ellis2323 Thanks for creating the patch! See https://help.github.com/articles/creating-a-pull-request/ for how to submit a pull request against this repo and we can discuss getting it merged. |
Not really sure if it's the best solution. I think it could be easier not to use my hostname but use in "source" the ID. Or to put the source expr in sensu('{{ index .Tags "url" }}'). |
This would be really helpful to have, when can we expect to see the PR? |
Hi @henry-megarry-tr, What do you prefer ? Look the alerta config for a coherency. They have way more parameters |
I would do it the same way that they set up the channel for slack. You can have it set in the config, but you can also change it per alert. I'm not very familiar with go but I think you can see how they do it in kapacitor/services/slack/service.go |
I have been trying to do it the same way that slack does it, however it wont replace the '{{ index .Tags "url" }}' part for some reason. https://github.com/mega0022/kapacitor @nathanielc @ellis2323 |
So ? if you want a PR, i can create one tomorrow. |
That would be fantastic! |
ok i have synced my repo and created a PR #1214 |
I have moved source into the sensu handler and made a pull request #1314 |
Hello,
I'm using telegraf to monitor network equipments. I have many hundred of equipments. With kapacitor i'm checking the ping and push alerts on my sensu.
The problem is that you define the source in the kapacitor.conf:
services/sensu/service.go line 136 (method prepareData)
With this config, all the alerts goes into the same client. So i have one client with one alert per equipements.
To change this behavious (https://github.com/ellis2323/kapacitor/), i have a made a little patch. Not sure that the way to do :) I have added a Hostname in the event.State among the ID, message, details and i put it in the
My alert in TICKS is like this:
With this hack, i have one client alert by equipement. It is more readable
My new result
The text was updated successfully, but these errors were encountered: