You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin can be used for connecting [Graylog](https://www.graylog.org/) alerts to the [Prometheus](https://prometheus.io/)[AlertManager](https://prometheus.io/docs/alerting/alertmanager/).
3
+
4
+
The plugin development is based on [Graylog2/graylog-plugin-sample](https://github.com/Graylog2/graylog-plugin-sample) which is mentioned in the [Graylog plugin documentation](http://docs.graylog.org/en/2.4/pages/plugins.html).
5
+
6
+
## Use Case
7
+
You are using a Graylog for checking the logs for errors, a Prometheus for checking the service metrics and you would like to organize your alerts with a AlertManager you need to get your Graylog alerts into the AlertManager.
8
+
This plugin provides the possibility to send your Graylog notifications with a AlertManager-Callback to your AlertManager.
9
+
10
+
## AlertManager Endpoint
11
+
The plugin uses the `/api/v1/alerts` endpoint of AlertManager. You can find some documentation about this endpoint [here](https://prometheus.io/docs/alerting/clients/).
12
+
13
+
## Provided Information
14
+
The plugin provides the AlertManager several information out of the box:
15
+
*`stream_title` - The title of the stream triggering the alert condition in Graylog
16
+
*`triggered_at` - The time of triggering the alert condition in Graylog
17
+
*`triggered_rule_description` - The generated rule description of triggered alert condition in Graylog
18
+
*`triggered_rule_title` - The title of alert condition rule in Graylog
19
+
20
+
All of those information will be added as annotation.
21
+
22
+
The values `startsAt`, `endsAt` and `generatorURL` will be transmitted to the AlertManager as well.
23
+
`startsAt` will be set to the point of time when the condition triggered the alert.
24
+
`endsAt` will be set to the point of time when the condition triggered the alert plus the set grace time which is configured for the alert.
25
+
26
+
## How to deploy on Graylog
27
+
You can easily build the plugin by executing `./gradlew build`.
28
+
Afterwards there should be a `.jar` file inside the `build/libs/` directory.
29
+
Follow the instructions mentioned [here](http://docs.graylog.org/en/2.4/pages/plugins.html#installing-and-loading-plugins) to deploy this `.jar` file.
30
+
31
+
## Screenshots
32
+

33
+
34
+
## Planned Features
35
+
* Add possibility to define custom labels in UI when configuring the callback
36
+
* Add possibility to define custom annotations in UI when configuring the callback
37
+
38
+
You would like to contribute anything? - Take a look at [CONTRIBUTING.md](CONTRIBUTING.md).
39
+
40
+
## Known Issues
41
+
* The test-callback does not work as expected, it will cause an error instead of a notification
42
+
* Workaround: You have to create a stream with a alert condition to test the callback
43
+
44
+
You would like to contribute anything? - Take a look at [CONTRIBUTING.md](CONTRIBUTING.md).
45
+
46
+
## License
47
+
See [LICENSE](LICENSE)
48
+
49
+
## Copyright
50
+
51
+
Copyright (c) 2019 G DATA Software AG and other authors.
0 commit comments