Commit graph

562 commits

Author SHA1 Message Date
Nick Satterly
6d19ee65ac Merge pull request from APSL/process_sqs_message
Update sqs worker.
2017-08-23 15:44:43 +01:00
Tomeu Canyelles Escarrer
fc754ebba7 Update sqs worker
Add new method to custom easily what to do with the sqs message.
2017-08-23 16:33:27 +02:00
Nick Satterly
90b9d3cc94 Update zabbix plugin to ack all events for a trigger 2017-08-17 20:39:48 +01:00
Nick Satterly
b0dd6d8b8d Merge pull request from alerta/zabbix-plugin
Add zabbix plugin for ack/close alerts
2017-08-16 10:45:04 +01:00
Nick Satterly
96957ff270 Add zabbix plugin for ack/close alerts 2017-08-16 10:44:14 +01:00
Nick Satterly
b86471c378 Merge pull request from alerta/prom-silence-id-update
Prometheus silenceId update to attributes
2017-08-14 09:47:30 +01:00
Nick Satterly
42fa9f9fb4 Prometheus silenceId update to attributes 2017-08-14 09:46:57 +01:00
Nick Satterly
92625dcdba Rename syslog screenshot 2017-08-10 11:46:49 +01:00
Nick Satterly
5299000c9b Merge pull request from alerta/syslog-screenshot
Add screenshot to alerta syslog
2017-08-10 11:43:32 +01:00
Nick Satterly
23e8dbe11d Add screenshot to alerta syslog 2017-08-10 11:43:11 +01:00
Nick Satterly
07feaea176 Merge pull request from SiegristJ/sendgrid_support
Added smtp_username configuration variable to enable using mailer with email delivery service sendgrid.
2017-07-17 08:01:42 +01:00
John Siegrist
2264371d7d Implemented suggestion: make setting smtp_username more consistent with the rest of the options. 2017-07-17 13:14:54 +10:00
John Siegrist
0dc5ad6301 Added smtp_username configuration variable to enable using mailer with email delivery service sendgrid. 2017-07-14 11:26:10 +10:00
Nick Satterly
c7ac9276f1 Merge pull request from twcollins/master
customtimeout plugin
2017-07-09 15:35:13 +01:00
Thomas Collins
b4cbf60e9b Incorporate PR feedback. Rename plugin to timeout; correct licence to MIT. Also bumped version and renamed env var used for ext config. 2017-07-09 15:11:42 +01:00
Thomas Collins
4aa3deb72a customtimeout plugin 2017-07-06 14:38:27 +01:00
Nick Satterly
ff5a7a85b1 Merge pull request from kwesterfeld/master
Fix refactoring typo
2017-07-05 15:35:28 +01:00
Kurt Westerfeld
701537a0aa Fix refactoring typo 2017-07-05 10:23:06 -04:00
Nick Satterly
a08ab78c8f Expand on SNMP trap integration README 2017-07-01 18:50:06 +01:00
Nick Satterly
f58fdd5f5e Update list of plugins 2017-07-01 10:14:33 +01:00
Nick Satterly
52b16de893 Update AUTHORS file 2017-06-27 14:39:45 +01:00
Nick Satterly
692e9c3597 Merge pull request from kwesterfeld/master
Initial revision of OpsGenie plugin for Alerta
2017-06-27 14:35:31 +01:00
Kurt Westerfeld
c1b976724a Initial revision 2017-06-27 09:32:00 -04:00
Nick Satterly
15e2fd3619 Merge pull request from tester22/master
OP5 plugin
2017-06-27 10:19:20 +01:00
i00171
a0b27d5c4d OP5 plugin 2017-06-27 11:12:51 +02:00
Nick Satterly
d0144bb100 Merge pull request from restlet/slack_multi_channel
Add support for per environment alert channel
2017-06-19 13:38:59 +01:00
Damien Guihal
bc4eddf69d Simplify code 2017-06-19 14:08:14 +02:00
Damien Guihal
6526b09b53 Add support for per environment channel 2017-05-31 14:15:56 +02:00
Nick Satterly
b193d5b069 Merge pull request from alerta/influxdb-single-measurement
Write alerts to single Influxdb 'event' measurement series only
2017-05-19 22:29:33 +01:00
Nick Satterly
4128e87474 Write alerts to single Influxdb 'event' measurement series only
See "Don't have too many series" for more info...
https://docs.influxdata.com/influxdb/v1.2/concepts/schema_and_data_layout/#don-t-have-too-many-series
2017-05-19 22:26:42 +01:00
Nick Satterly
d5e183bb9b Merge pull request from thehilll/influxdb-single-measurement
Allow InfluxDB plugin to use a single measurement
2017-05-19 22:01:58 +01:00
thehill
8343d80c64 Provide an option to output to a single InfluxDB measurement rather than one per event
The default behavior is to create one measurement per alert.event in InfluxDB.  Several processes are easier if all Alerta data is available in a single measurement with a tag that indicates alert.event.

This introduces two new config variables:

INFLUXDB_SEPARATE_MEASUREMENT defaults to True and triggers the default (separate measurement per event) behavior.

INFLUXDB_SINGLE_MEASUREMENT defaults to False and triggers the new behavior of one measurement for all events.  If set it should be set to the name of the measurement you want to use (e.g. not True but rather "alert_measurement").

Both settings can be either True or False (i.e. it isn't one or the other behavior...you can have both).  The InfluxDB points now start as an empty list (line 46).  If either of the above config variables are True a point is added to the list in the format appropriate for that setting.  In the case of INFLUXDB_SEPARATE_MEASUREMENT (default behavior) this is unchanged.  In the case of INFLUXDB_SINGLE_MEASUREMENT (new behavior) this point uses the value set in INFLUXDB_SINGLE_MEASUREMENT as a measurement name and adds a new tag called "event" which is populated with the alert.event value.

I've made one other change to each point type which is to coerce the value field (alert.value in both cases) to a string.  The issue we ran into is that InfluxDB defines a field's type based on the first point.  If the first point is a string the old code worked fine (numbers were treated as strings), but if the first point was numeric InfluxDB would drop subsequent points that included string values.  Since Alerta allows string values (and has to it would seem) I've forced this field to be a string in InfluxDB.

Finally within the final try block to write points to InfluxDB I changed this to only do so if the points list is not empty.  This handles the case where both configuration variables are false and nothing is written.
2017-05-19 09:28:25 -04:00
Nick Satterly
697f7e66ea Merge pull request from alerta/mit-license
Make everything MIT license
2017-05-10 10:13:12 +01:00
Nick Satterly
1849db2ad0 Make everything MIT license 2017-05-10 10:09:13 +01:00
Nick Satterly
6d180e3fc9 Merge pull request from arindamchoudhury/master
added support to use service account json file for authentication
2017-05-10 10:06:52 +01:00
Arindam Choudhury
d950057f7e remove exclamation from link 2017-05-09 16:00:09 +02:00
Arindam Choudhury
0885edf0af support for service account 2017-05-09 15:57:18 +02:00
Nick Satterly
478f79b887 Update README with pubsub 2017-05-02 15:35:46 +01:00
Nick Satterly
3ddbc3c35b Bump version of influxdb plugin to 0.3.3 2017-05-02 15:33:05 +01:00
Nick Satterly
22f5c4f5dc Merge pull request from thehilll/influxdb-severity
record alert severity in influxdb as a tag
2017-05-02 15:30:37 +01:00
thehill
311c772c86 record alert severity in influxdb as a tag 2017-04-28 09:31:32 -04:00
Nick Satterly
be77b28136 Merge pull request from scottmullaly/feature/Allow-sending-PagerDuty-alerts-to-multiple-service-integration-keys
Determine payload service key based on regex match on alert resource.…
2017-03-31 10:36:41 +01:00
Scott Mullaly
550c9325bf Determine payload service key based on regex match on alert resource. Defaults to PAGERDUTY_SERVICE_KEY. 2017-03-31 12:12:44 +13:00
Nick Satterly
593cfb3c5d Merge pull request from mircopolo/fix_mailer_uname_windows
Fix cross platform compatiblity for windows
2017-03-06 10:09:27 +00:00
marksmyth
ff60e8aefb Fix cross platform compatiblity for windows
As per python docs os.uname is only available on Unix like systems,
should be plaform.uname for cross compatibility.

https://docs.python.org/dev/library/os.html#os.uname
2017-03-06 10:04:13 +00:00
Nick Satterly
606ba7c21f Merge pull request from arindamchoudhury/master
added pubsub plugin
2017-03-01 12:40:33 +00:00
Arindam Choudhury
3e940d14b6 change name to Google Cloud Pub/Sub 2017-03-01 13:39:28 +01:00
Arindam Choudhury
38d397dbfd updated year 2017-03-01 13:36:51 +01:00
Arindam Choudhury
80839d61da added references 2017-03-01 13:36:24 +01:00
Arindam Choudhury
2c3c8d45d1 typo in name 2017-03-01 13:34:59 +01:00