prometheus-to-monitoring
AckeeCZ/prometheus-to-monitoring/gcp
Cloud Functions based translate of prometheus monitoring metrics to Google Cloud Monitoring
Install
README
Terraform module for pushing Prometheus metrics to Google Cloud Monitoring Module is based on Cloud Function called by Cloud Scheduler. Each call says which endpoint should be pushed to Google Cloud Monitoring custom metrics. For further setup, use variable scrape_jobs, e.g.: ``hcl module "metrics_push" { source = "../" # use correct module path project_id = var.project scrape_jobs = { testing : { schedule : " " endpoint : "https://example.com/metrics" } } region = var.region } ` Each key in scrape_jobs can contain following keys: schedule (required) - cronline endpoint (required) - url to metrics endpoint description - used for scheduler description time_zone - time zone, default "Europe/Prague" Kuddos for https://github.com/google/go-metrics-stackdriver/blob/main/stackdriver.go on how to
Inputs (3)
| Name | Type | Description | Default |
|---|---|---|---|
| region | string | GCP region | required |
| project_id | string | Project ID | required |
| scrape_jobs | map(map(string)) | Metrics scraping setup, each item needs key schedule (e.g. * * * * *) and endpoi | required |
Outputs (1)
sa — Service account used for Cloud Function runtime emailResources (8)
Details
Similar packages
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,