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.
- Changed tags from hard-coded list to templates settable via argument
- Moved test files into tests directory to clean up top level directory
- Updated all modules with 'go get -u' and 'go mod tidy'
- README updates and cleanup
- Lint GitHub Action
- Minor README fixes
- Updated SDK to 0.11.0
- Updated module dependencies
Updates brought in from upstream
- 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"
. - 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". - Changed opsgenie sdk to v2.
- 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 (changed from the upstream based on my opinions).
- Updated SDK to 0.8.0
- Set secret bool to true for authkey
- Fixed go.sum for goreleaser to work
- Increased the default description limit to 15000, matching OpsGenie published limit
- Increased the default message limit to 130, matching OpsGenie published limit
- Clened up a duplicate import of github.com/opsgenie/opsgenie-go-sdk/alertsv
- Updated README to reference secrets, add environment variables, and other cleanup
- Fixed Priority annotations to properly reflect entity annotations precedence over check annotations
- Removed last vestiges of withAnnotations
- Details field for parity with Sensu Enterprise handler
- Expansion of embedded \n newlines in description
- More test coverage
- Minor README fixes
- Changed source from "sensuGo" to "Sensu Go"
- Fixed bug where evenPriority annotations weren't being checked correctly
- Minor README fix
- withAnnotations flags and its code to create description field
- descriptionTemplate and descriptionLimit flags to allow customizing the description field
- includeEventInNote bool flag to include JSON of event in Note, false by default
- Formatting cleanup and goreportcard badge
- Use Sensu SDK templating engine
- Fixed alias to be set string entity name/check name, as opposed to matching message title
- Updated .bonsai.yml
- Move to Go Modules
- Use new Sensu SDK
- Move from Travis to GitHub Actions
- Reorganize README
- Added timestamps to all the test events
- Made message a configurable template, including a length limit
- 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