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: 300s
static_configs:
- targets: ['localhost:9642']
We export one metric, a histogram called bugsnag_events, with labels {project="MyProject", release_stage="production"}.
A typical alerting PromQL query might be bugsnag_events_bucket{le="+Inf",release_stage="production"} - ignoring (le) bugsnag_events_bucket{le="1000.0",release_stage="production"} > 0
Additionally, a bugsnag_scrape_duration_seconds gauge is exported.
CHANGES
1.2.0 (2021-10-15)
Add sort=unsorted parameter to handle potentially large result sets
1.1.1 (2021-05-07)
Throttle paginated requests to avoid hitting the rate limit.
1.1.0 (2019-10-02)
Use default prometheus histograms with “le” buckets
1.0.0 (2019-09-09)
First release.
Metadata
Release files for bugsnag-exporter 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bugsnag_exporter-1.2.0.tar.gz | 6.1 kB | Without provenance | Details for bugsnag_exporter-1.2.0.tar.gz |
Release files / bugsnag_exporter-1.2.0.tar.gz
| Download URL | bugsnag_exporter-1.2.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4126fdb9e82bd673463fd211083899df240fffdb0299cc7cb1d12872ea2abbb
|
|
BLAKE2b-256 checksum How to use checksums |
fdbdb35b384d77b536543025c7959e561918efaade34945b3d0d23c05638e461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.7
|
Security for bugsnag-exporter 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.