{"id":29390833,"url":"https://github.com/ishantanu/gcp-status-exporter","last_synced_at":"2026-05-10T16:44:18.069Z","repository":{"id":114222928,"uuid":"478994925","full_name":"ishantanu/gcp-status-exporter","owner":"ishantanu","description":"A Prometheus Exporter for generating metrics for GCP Service Status and Incidents :rocket:","archived":false,"fork":false,"pushed_at":"2022-08-17T08:57:19.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T21:02:36.779Z","etag":null,"topics":["gcp","opentelemetry","prometheus-exporter","sre"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ishantanu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-07T13:21:47.000Z","updated_at":"2022-04-07T14:56:52.000Z","dependencies_parsed_at":"2024-04-21T04:10:43.498Z","dependency_job_id":null,"html_url":"https://github.com/ishantanu/gcp-status-exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ishantanu/gcp-status-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishantanu%2Fgcp-status-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishantanu%2Fgcp-status-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishantanu%2Fgcp-status-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishantanu%2Fgcp-status-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ishantanu","download_url":"https://codeload.github.com/ishantanu/gcp-status-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishantanu%2Fgcp-status-exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264551644,"owners_count":23626536,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gcp","opentelemetry","prometheus-exporter","sre"],"created_at":"2025-07-10T08:30:18.915Z","updated_at":"2026-05-10T16:44:18.009Z","avatar_url":"https://github.com/ishantanu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GCP Status Exporter\r\n\r\nAn exporter to get metrics for availability status of GCP services and observe the incident impacts in GCP environments.\r\n\r\n**Note**: This is a work in progress. Contributions are welcome.\r\n\r\n## Approach\r\n\r\n* GCP incidents older than 30 days are discarded to keep the metrics relevant.\r\n* GCP service status is collected from [Google Cloud Status Dashboard's incident history](https://status.cloud.google.com/incidents.json)\r\n\r\n## Components\r\n\r\n* [Opentelemetry](https://github.com/open-telemetry/opentelemetry-go) library is used for creating metrics.\r\n* [logrus](https://github.com/sirupsen/logrus) for structured logging.\r\n* [cobra](https://github.com/spf13/cobra) for creating a CLI application.\r\n\r\n## Metrics\r\n\r\nList of metrics created by this exporter is listed [here](./metrics.md) along with the description.\r\n\r\n## Building the Exporter \r\n\r\n```bash\r\n$ git clone https://github.com/ishantanu/gcp-status-exporter\r\n$ go build -o gcp-status-exporter\r\n$ ./gcp-status-exporter start -e https://status.cloud.google.com/incidents.json\r\n```\r\n\r\n## Running the Exporter\r\n\r\n```bash\r\n$ go run main.go start -e https://status.cloud.google.com/incidents.json\r\n\r\n```\r\n\r\nVisit http://localhost:8888 for metrics.\r\n\r\n## Adding gcp-status-exporter config to Prometheus\r\n\r\nAdd the below block to prometheus config to start scraping the metrics\r\n\r\n```yaml\r\nscrape_configs:\r\n    - job_name: 'gcp-status-exporter'\r\n\r\n    static_configs:\r\n    - targets: ['\u003cgcp-status-exporter\u003e:8888']\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishantanu%2Fgcp-status-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fishantanu%2Fgcp-status-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishantanu%2Fgcp-status-exporter/lists"}