Skip to main content

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_vulnerability_exporter --port=9597 --organization=MyGitHubOrg --authtoken=ACCESSTOKEN

Configure Prometheus

scrape_configs:
  - job_name: 'vulnerabilities'
    scrape_interval: 600s
    static_configs:
      - targets: ['localhost:9597']

We export one metric, a gauge called github_vulnerability_alerts, with a label {repository="MyGitHubOrg/my-repository-name}.

Additionally, a ghvuln_scrape_duration_seconds gauge is exported.

CHANGES

1.0.1 (2019-06-07)

  • Increase repository query batch size.

1.0.0 (2019-06-06)

  • 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.

Source Distribution

github_vulnerability_exporter-1.0.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page