This is an unofficial Heroku buildpack for Grafana Cloud Agent deployments.
It downloads the binary that will placed in bin/grafana-agent
TODO: Cache the download part with the help CACHE_DIR
Your config file should be placed into the root as config/grafana-agent-template.yml
.
The buildpack will substitute any environment variables. Example:
---
integrations:
prometheus_remote_write:
- basic_auth:
password: ${GRAFANA_CLOUD_API_KEY}
username: ${GRAFANA_CLOUD_USERNAME}
url: https://prometheus-prod-10-prod-us-central-0.grafana.net/api/prom/push
prometheus:
configs:
- name: integrations
remote_write:
- basic_auth:
password: ${GRAFANA_CLOUD_API_KEY}
username: ${GRAFANA_CLOUD_USERNAME}
url: https://prometheus-prod-10-prod-us-central-0.grafana.net/api/prom/push
scrape_configs:
- job_name: integrations/nodejs
honor_labels: true
metrics_path: /api/v1/services/metrics
static_configs:
- targets:
- ${APP_DOMAIN}
global:
scrape_interval: 60s
wal_directory: /tmp/grafana-agent-wal