Skip to content

ZeroDeposit/grafana-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages