No project description provided
Project description
This package exports the Security Vulnerability Alerts from GitHub for all repositories of an organization as Prometheus metrics.
Usage
Configure API token
You’ll need to provide an access token to access the GitHub API. See the GitHub documentation for details.
Start HTTP service
Start the HTTP server like this:
$ GITHUB_AUTHTOKEN=MYTOKEN GITHUB_ORGANIZATION=MyGitHubOrg github_vulnerability_exporter --port=9597
Configure Prometheus
scrape_configs: - job_name: 'vulnerabilities' scrape_interval: 1800s static_configs: - targets: ['localhost:9597']
We export one metric, a gauge called github_vulnerability_alerts, with labels {repository="MyGitHubOrg/my-repository-name, status="active|dismissed"}.
Additionally, a ghvuln_scrape_duration_seconds gauge is exported.
CHANGES
1.2.0 (2019-06-07)
Add status label to differentiate between active and dismissed alerts
1.1.0 (2019-06-07)
Allow configuring via environment variables as well as command line parameters
1.0.1 (2019-06-07)
Increase repository query batch size.
1.0.0 (2019-06-06)
First release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for github_vulnerability_exporter-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | abce74388710afb5767b803c1973103fa07ca56c641e63917d536cb70c4dec22 |
|
MD5 | 7cfc6e1fd79356a60614d1247e2e9706 |
|
BLAKE2b-256 | e1a87bc5e0734a364828bd54317cc937de26daf966241abee3cf01bc1c47dc2c |