Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 795 Bytes

README.md

File metadata and controls

37 lines (30 loc) · 795 Bytes

Grafana Agent Buildpack

This is a buildpack for Grafana Agent deployments.

Usage

Config

Your config file should be placed into the root as config.yml.

The buildpack will substitute any environment variables. Example:

---
server:
  http_listen_port: $PORT

prometheus:
  wal_directory: "./"
  global:
    scrape_interval: 5s
  configs:
    - name: agent
      host_filter: false
      scrape_configs:
        - job_name: taylor-swift-metrics
          metrics_path: /metrics
          scheme: https
          static_configs:
            - targets: ['target.taysway.xyz']
      remote_write:
        - url: https://prom.taysway.xyz/api/prom/push
          basic_auth:
            username: $USERNAME
            password: $PASSWORD