{"id":21401101,"url":"https://github.com/massdriver-cloud/cloud_monitoring_exporter","last_synced_at":"2025-10-30T11:42:27.520Z","repository":{"id":168735230,"uuid":"597180400","full_name":"massdriver-cloud/cloud_monitoring_exporter","owner":"massdriver-cloud","description":"Prometheus Exporter for GCP Cloud Monitoring","archived":false,"fork":false,"pushed_at":"2024-05-13T12:06:40.000Z","size":112,"stargazers_count":4,"open_issues_count":3,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T04:12:53.701Z","etag":null,"topics":["gcp","metrics-exporter"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/massdriver-cloud.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-03T20:04:23.000Z","updated_at":"2024-11-14T05:46:42.000Z","dependencies_parsed_at":"2024-11-22T15:30:58.022Z","dependency_job_id":"3ad74d23-3cf0-4118-8c69-0e69994f4e5e","html_url":"https://github.com/massdriver-cloud/cloud_monitoring_exporter","commit_stats":null,"previous_names":["massdriver-cloud/cloud_monitoring_exporter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/massdriver-cloud%2Fcloud_monitoring_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/massdriver-cloud%2Fcloud_monitoring_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/massdriver-cloud%2Fcloud_monitoring_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/massdriver-cloud%2Fcloud_monitoring_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/massdriver-cloud","download_url":"https://codeload.github.com/massdriver-cloud/cloud_monitoring_exporter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249185061,"owners_count":21226507,"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","metrics-exporter"],"created_at":"2024-11-22T15:26:08.284Z","updated_at":"2025-10-30T11:42:22.485Z","avatar_url":"https://github.com/massdriver-cloud.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloud Monitoring Exporter\n\nA [Prometheus Exporter](https://prometheus.io/docs/instrumenting/exporters/#exporters-and-integrations) for [Google Cloud Monitoring](https://cloud.google.com/monitoring/) metrics.\n\n# Features\n\n* Export metrics from GCP Cloud Monitoring to Prometheus\n* Simple configuration of metrics using metric type prefixes\n* Auto discovery of resources via tags\n* Adds any available dimension labels to metrics\n\n# Configuration\n\n## Authentication\n\nThe exporter is configured to use [Google Application Default Credentials](https://cloud.google.com/docs/authentication/production#automatically) to authenticate with Google Cloud Monitoring.\n\n## Configuration\n\nThe exporter is configured using a YAML file. The following options are available:\n\n### Required\n\n| Option | Description |\n|--------|-------------|\n| `project_id` | The Google Cloud project ID to export metrics from. |\n| `metric_type_prefixes` | A list of metric type prefixes to export. |\n\n### Optional\n\n| Option | Description |\n|--------|-------------|\n| `user_labels` | User-defined [labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels) to filter on. |\n\n### Example\n\n```yaml\nproject_id: \"massdriver\"\nmetric_type_prefixes:\n- \"cloudsql.googleapis.com/database/cpu\"\nuser_labels:\n  environment: \"prod\"\n```\n\n# Scraping\n\nBy default, the exporter is exposed on port `9090`, path `/metrics`.\n\nMetrics are queried at the time of scraping and are not cached.\n\nTo adhere to the [Prometheus data model](https://prometheus.io/docs/concepts/data_model/), metric names are converted to [snake case](https://en.wikipedia.org/wiki/Snake_case) and all non-alphanumeric characters are replaced with underscores.\n\nFor example, the metric `cloudsql.googleapis.com/database/cpu/utilization` will be exported as `cloudsql_googleapis_com_database_cpu_utilization`.\n\nAll metrics are exported as [gauges](https://prometheus.io/docs/concepts/metric_types/#gauge), and the #HELP comment is set to the metric's description as supplied by the [GCP Cloud Monitoring API](https://cloud.google.com/monitoring/api/v3).\n\n# Deployment\n\nImages for the exporter are available on [Docker Hub](https://hub.docker.com/r/massdrivercloud/cloud_monitoring_exporter).\n\nAn example [docker-compose](./docker-compose.yml) file is included in this repository. It requires a `config.yml` and GCP `credentials.json` in the directory.\n\nAfter starting the exporter with `docker-compose up`, metrics will be available at `http://localhost:9090/metrics`.\n\nThe docker file can be used to deploy the exporter to any container runtime - we use [Kubernetes](https://kubernetes.io/).\n\n# Missing Features\n\n* Currently no support for Distributions.\n\n# Questions?\n\nIf you have any questions or suggestions, please [open an issue](https://github.com/massdriver-cloud/cloud_monitoring_exporter/issues/new)! We'd love to hear from you.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmassdriver-cloud%2Fcloud_monitoring_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmassdriver-cloud%2Fcloud_monitoring_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmassdriver-cloud%2Fcloud_monitoring_exporter/lists"}