Prometheus Exporter for Atlassian Opsgenie.
For pre-built binaries please take a look at the releases.
/~https://github.com/cbrgm/opsgenie-exporter/releases
You will need an Opsgenie API Key for this exporter to work. Create one via the Opsgenie UI at
- Settings -> API Key Management -> Add new API Key.
The API Key needs the following permissions:
- Read (querying Alerts)
- Configuration Access (querying Teams and Users)
docker pull quay.io/cbrgm/opsgenie-exporter:latest
docker run --rm -p 9212:9212 quay.io/cbrgm/opsgenie-exporter --opsgenie.apikey=<id here>
Usage: opsgenie-exporter --opsgenie.apikey=STRING
Flags:
-h, --help Show context-sensitive help.
--http.addr="0.0.0.0:9212" The address the exporter is running on
--http.path="/metrics" The path metrics will be exposed at
--log.json Tell the exporter to log json and not key value pairs
--log.level="info" The log level to use for filtering logs
--opsgenie.apikey=STRING The opsgenie api token
Name | Type | Cardinality | Help |
---|---|---|---|
opsgenie_alerts_created_total | counter | 1 | Returns the total amount of alerts by status. |
opsgenie_alerts_status_count | gauge | 1 | Returns the actual amount of alerts by status. Can be filtered by status closed , open or all |
opsgenie_teams_count | gauge | 1 | Returns the actual number of teams of your account |
opsgenie_users_count | gauge | 1 | Returns the actual number of users. Can be filtered by role |
go get -u github.com/cbrgm/opsgenie-exporter
Feel free to submit changes! See the Contributing Guide. This project is open-source and is developed under the terms of the Apache 2.0 License.