opsgenie-exporter

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

README

opsgenie-exporter

Prometheus Exporter for Atlassian Opsgenie.

Installation

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)
Container Usage
docker pull quay.io/cbrgm/opsgenie-exporter:latest
docker run --rm -p 9212:9212 quay.io/cbrgm/opsgenie-exporter --opsgenie.apikey=<id here>

Usage

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

Metrics

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

Development

go get -u github.com/cbrgm/opsgenie-exporter

Contributing & License

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL