Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.25 KB

README.md

File metadata and controls

46 lines (37 loc) · 1.25 KB

Heroku Buildpack for Grafana Cloud Agent

This is an unofficial Heroku buildpack for Grafana Cloud Agent deployments.

Usage

Binary

It downloads the binary that will placed in bin/grafana-agent

TODO: Cache the download part with the help CACHE_DIR

Config

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