No project description provided
Project description
This package exports metrics about Bugsnag error events as Prometheus metrics.
Usage
Configure API token
You’ll need to provide an API token to access the Bugsnag Data Access API. See the Bugsnag documentation for details.
Start HTTP service
Start the HTTP server like this:
$ BUGSNAG_APITOKEN=MYTOKEN bugsnag_exporter --host=127.0.0.1 --port=9642
Pass --ttl=SECONDS to cache Bugsnag API results for the given time or -1 to disable (default is 600). Prometheus considers metrics stale after 300s, so that’s the highest scrape_interval one should use. However it’s usually unnecessary to hit the API that often, since the vulnerability alert information does not change that rapidly.
You can pass –buckets with a comma-separated list to define the upper bucket bounds that are used to generate the histogram metric.
Configure Prometheus
scrape_configs: - job_name: 'bugsnag' scrape_interval: 1800s static_configs: - targets: ['localhost:9642']
We export one metric, a histogram with “greater than/equal” buckets called bugsnag_events, with labels {project="MyProject", release_stage="production"}.
Additionally, a bugsnag_scrape_duration_seconds gauge is exported.
CHANGES
1.0.0 (2019-09-09)
First release.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.