All Projects → ujamii → prometheus-sentry-exporter

ujamii / prometheus-sentry-exporter

Licence: MIT license
Exports sentry project metrics for prometheus.

Programming Languages

PHP
23972 projects - #3 most used programming language
Smarty
1635 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to prometheus-sentry-exporter

sentry exporter
Prometheus exporter for Sentry
Stars: ✭ 23 (-28.12%)
Mutual labels:  sentry, prometheus-exporter
craft
The universal Sentry release CLI 🚀
Stars: ✭ 117 (+265.63%)
Mutual labels:  sentry
serilog-sinks-sentry
A Sentry sink for Serilog
Stars: ✭ 34 (+6.25%)
Mutual labels:  sentry
pedax
Reversi Board with edax, which is the strongest reversi engine.
Stars: ✭ 18 (-43.75%)
Mutual labels:  sentry
domain exporter
Prometheus WHOIS domain details exporter.
Stars: ✭ 73 (+128.13%)
Mutual labels:  prometheus-exporter
app-stores-prometheus-exporter
Prometheus exporter that exports metrics (score, ratings, reviews, app version, etc.) from the Apple App Store and Google Play Store
Stars: ✭ 80 (+150%)
Mutual labels:  prometheus-exporter
github releases exporter
Exports GitHub release metrics to the Prometheus format
Stars: ✭ 21 (-34.37%)
Mutual labels:  prometheus-exporter
tplink-plug-exporter
TP-Link Smart Plug Prometheus Exporter
Stars: ✭ 80 (+150%)
Mutual labels:  prometheus-exporter
sentry-ocaml
A work-in-progress OCaml client for Sentry
Stars: ✭ 26 (-18.75%)
Mutual labels:  sentry
enviroplus exporter
Prometheus exporter for enviroplus module by Pimoroni
Stars: ✭ 70 (+118.75%)
Mutual labels:  prometheus-exporter
lustre exporter
Prometheus exporter for use with the Lustre parallel filesystem
Stars: ✭ 25 (-21.87%)
Mutual labels:  prometheus-exporter
ha cluster exporter
Prometheus exporter for Pacemaker based Linux HA clusters
Stars: ✭ 63 (+96.88%)
Mutual labels:  prometheus-exporter
FastAPI-template
Feature rich robust FastAPI template.
Stars: ✭ 660 (+1962.5%)
Mutual labels:  sentry
good-sentry
Sentry broadcasting for good process monitor
Stars: ✭ 15 (-53.12%)
Mutual labels:  sentry
kamailio exporter
Prometheus exporter for Kamailio SIP server
Stars: ✭ 49 (+53.13%)
Mutual labels:  prometheus-exporter
OctoPrint-Prometheus-Exporter
An octoprint plugin for prometheus compatible metrics endpoint
Stars: ✭ 36 (+12.5%)
Mutual labels:  prometheus-exporter
ansitheus
Ansible playbook - Containerize, configure and deploy Prometheus ecosystem
Stars: ✭ 19 (-40.62%)
Mutual labels:  prometheus-exporter
extatus
App to report metrics to Prometheus from Elixir GenServers
Stars: ✭ 18 (-43.75%)
Mutual labels:  prometheus-exporter
bash-exporter
Simple & minimalistic Prometheus exporter for bash scripts, written in Go
Stars: ✭ 54 (+68.75%)
Mutual labels:  prometheus-exporter
cassandra-exporter
Java agent for exporting Cassandra metrics to Prometheus
Stars: ✭ 59 (+84.38%)
Mutual labels:  prometheus-exporter

Exporter for sentry data in prometheus format

This package uses the Sentry web api to query for some statistics and outputs them in OpenMetrics format to be scraped by prometheus.

You can also fire it up as a docker container.

Usage

Using this exporter throught with Composer or Docker, you will need the hostname of your sentry installation and an auth token, which you can create via https://<YOUR-SENTRY-HOST>/api/ if you're working with the Sentry self hosted. If you're working with Sentry cloud, you will need to create the token via https://sentry.io/settings/account/api/auth-tokens/.

with Composer

Installation

composer req ujamii/prometheus-sentry-exporter

Usage in your custom file

require_once 'vendor/autoload.php';

$sentryBase = 'https://<YOUR-SENTRY-HOST>/api/0/';
$token      = '<AUTH-TOKEN>'; // get from https://<YOUR-SENTRY-HOST>/api/

$exporter = new \Ujamii\OpenMetrics\Sentry\SentryExporter($token, $sentryBase);
$exporter->run();

with Docker

The image is based on php:8.0-apache and thus exposes data on port 80 by default. Assuming you fire this up with -p 80:80 on localhost, you can see the metrics on http://localhost/metrics.

Configuration is done with 3 env variables: SENTRY_HOST, AUTH_TOKEN and HTTP_PROTO. The first 2 are mandatory, HTTP_PROTO is optional and set to https by default. If you're working with the Sentry Cloud, your SENTRY_HOST variable must be "sentry.io"

docker run -d --name sentry-prometheus -e SENTRY_HOST=sentry.foobar.com -e AUTH_TOKEN=foobarlongtoken -p "80:80" ujamii/prometheus-sentry-exporter

View on Docker Hub

Output

The script will generate something like:

# TYPE sentry_open_issue_events gauge
# HELP sentry_open_issue_events Number of events for one unresolved issue.
sentry_open_issue_events{project_slug="foobar", project_name="Foo Bar", issue_logger="php", issue_type="error", issue_link="https://<SENTRY-HOST>/<ORGANIZATION>/<PROJECT>/issues/1797/", issue_level="error"} 16.000000
...
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].