An open API service indexing awesome lists of open source software.

https://github.com/whyeasy/sentry-exporter

Prometheus exporter to receive Sentry data.
https://github.com/whyeasy/sentry-exporter

Last synced: 12 months ago
JSON representation

Prometheus exporter to receive Sentry data.

Awesome Lists containing this project

README

          

![build](https://github.com/Whyeasy/sentry-exporter/workflows/build/badge.svg)
![status-badge](https://goreportcard.com/badge/github.com/Whyeasy/sentry-exporter)
![Github go.mod Go version](https://img.shields.io/github/go-mod/go-version/Whyeasy/sentry-exporter)

# Sentry exporter

A Prometheus exporter for Sentry issues and events.

Currently this exporter retrieves the following metrics:

- Total amount of issues per project per environment
- Total amount of events per issue per project per environment

## Requirements

- Provide a Sentry API key; `--sentryAPIKey=` or as env variable `SENTRY_API_KEY`.
- Provide your Sentry organization; `--sentryOrg=` or as env variable `SENTRY_ORG`.

### Optional

Change listening port of the exporter; `--listenAddress ` or as env variable `LISTEN_ADDRESS`. Default = `8080`

Change listening path of the exporter; `--listenPath ` or as env variable `LISTEN_PATH`. Default = `/metrics`

Change the interval of retrieving data in the background; `--interval ` or as env variable `INTERVAL`. Default is `60`

Change the log format; `--logFormat=` or as env variable `LOG_FORMAT`. Default = `logfmt`.

Change the log level; `--logLevel=` or as env variable `LOG_LEVEL`. Default = `info`.

Change Sentry URI; `--sentryURI=` or as env variable `SENTRY_URI`. Default = `https://sentry.io/api/0/`