All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- flag
--aliasTemplate
to make opsgenie alias as Template.
- flag
--team
and--schedule-team
and--escalation-team
now can be used with multiple values splited by comma. This limit still existing from Opsgenie documentationIf the API Key belongs to a team integration, this field will be overwritten with the owner team.
opsgenie api docs This issue is about how to handle with this.
- flags
--heartbeat
and--hearbeat-map
to enable this handler to send an heartbeat request to opsgenie instead opening an alert. This can be used as keepalived handler or just to check if one integration is working fine.
- Update Readme
- Both flags
--heartbeat
and--remediation-events
discard any event with status!= 0
. - update golang to 1.16
- flag
--tagTemplate
based on fork from nixwiz. Remove short option due conflict with titlePrettify flag. - flag
--visibility-teams
to add list of teams that alert will be visible in Opsgenie. It's not working properly but we have an issue open in opsgenie-sdk-v2 - add new flags
--remediation-events
and--remediation-event-alias
to change how to use this plugin and send check.output from a remediation check to origin alert using a configured alias.
- flag
--team
is not required anymore.
- flags
--schedule-team
and--escalation-team
to add Responders field more correctly. From Opsgenie documentationIf the API Key belongs to a team integration, this field will be overwritten with the owner team.
opsgenie api docs - flag
--addHooksToDetails
to add event.check.hooks.[].labels, event.check.hooks.[].command and event.check.hooks.[].output using event.check.hooks.[].name as key.
- flag
--titlePrettify
to apply strings.Title in message title and remove these characters -, /, \
- update golang to 1.15
- Removed flag
OPSGENIE_APIURL
now we use constants from opsgenie sdk-v2. - Removed
opsgenie_priority
annotation. Should use:"sensu.io/plugins/sensu-opsgenie-handler/config/priority": "P3"
. - Removed travis-ci integration
- Added flag
--region
to choose opsgenie region. Can be configured using environment variable tooOPSGENIE_REGION
. This feature replaces oldOPSGENIE_APIURL
. - Added flag
--priority
to change Opsgenie default priority. String field. Expected: "P1", "P2", "P3", "P4" and "P5". - Updated golang version to 1.14. As require for this updated golangci-lint to
v1.23.8
- Changed opsgenie sdk to v2.
- Changed from spf13/cobra to sensu-community/sensu-plugin-sdk.
- Changed withAnnotations to parse all annotations, and exclude if it contains
sensu.io/plugins/sensu-opsgenie-handler/config
, to send to Opsgenie.
- Added more tests
- Added
--allowLabels
to parse all Labels and send to Opsgenie. - Added
--fullDetails
to add all kind of details in Opsgenie. - Added
--descriptionLimit
,--descriptionTemplate
,--includeEventInNote
,--messageLimit
,--messageTemplate
from this forked
- Removed flag
--allowOverride
to enable change opsgenie auth token and team. With this feature you can avoid creating multiples handlers only because one check or entity. We can achieve the same feature with Argument Annotations we can overwrite it even from a event through agent event api.
- Changed behaviour from opsgenie-handler to not add new alerts as a note and send them as alert.
- Removed addNote func
- Removed eventKey func
- Removed eventTags func
- Removed goreleaser goos freeebsd and arch arm64
- Parse Entity.Name, Check.Name, Entity.Namespace, Entity.Class as tags to Opsgenie
- Add OPSGENIE_SENSU_DASHBOARD variable to add new field in Description with "source: Sensu Dashboard URL"
- Added the Sensu event json dump to the OpsGenie
Note
field. - Added more tests
- change from dep to go mod
- gometalinter to golangci-lint
- correct goreleaser
- Correct issue #6:
trim additional ending slash in --url argument
- add script test.all.events.sh
- Add
OPSGENIE_ANNOTATIONS
to parse annotations to include that information inside the alert. - Update README.
- Add
OPSGENIE_APIURL
to change OpsGenie API URL - Updated Gopkg.lock file.
- Changed travis go version.
- Add bonsai configuration
- Add OpsGenie Priority as annotations inside check annotations.
- Add Get, Close and Add Note functions to manage alerts already open.
- Add OpsGenie Priority as annotations inside sensu-agent to override default Alert Event Priority in OpsGenie.
- Initial release