Giter Site home page Giter Site logo

cbrgm / opsgenie-exporter Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 226 KB

Prometheus Exporter for Atlassian Opsgenie

License: Apache License 2.0

Dockerfile 1.57% Makefile 8.53% Go 89.90%
opsgenie atlassian prometheus exporter prometheus-exporter metrics

opsgenie-exporter's Introduction

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.

opsgenie-exporter's People

Contributors

cbrgm avatar dependabot[bot] avatar xopherus avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

opsgenie-exporter's Issues

Secret on apiKey

Hi @cbrgm how are you doing? please i'm use your project for scrape some metrics in my opsgenie, but for security questions, i can't show my apiKey on the repository, there a use possibility to change the apiKey to secret? Because in my case i'm use de Secret Manager from AWS

i'm try this approach but don't works well:

      args:
        - --http.addr=0.0.0.0:9212
        - --http.path=/metrics
        - --log.level=info
        - --opsgenie.apikey=opsgenie-exporter-secrets              
      resources:
        limits: null
      env:
        [] 
      envFrom:
        - secretRef:
            name: opsgenie-exporter-secrets  

do you have any idea?

Team level alerts metrics

Hi, We have started using this, looks great to get started. But is there plan to add labels for team level metrics which can gives us visibility on alerts count on open, closed etc by teams?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.