I am trying to configure a docker grafana-agent to scrape logs from a custom service. No matter what I do grafana-agent seems to ignore the scrape job and never actually requests the metrics page.
Here’s my configuration
server:
log_level: info
metrics:
global:
scrape_interval: 1m
configs:
- name: pvdbmetrics
scrape_configs:
- job_name: pvdbmetrics
static_configs:
- targets: ['pvdb-metrics:2112']
remote_write:
- url: https://prometheus-us-central1.grafana.net/api/prom/push
basic_auth:
password: <redacted>
username: <redacted>
integrations:
node_exporter:
enabled: true
prometheus_remote_write:
- basic_auth:
password: <redacted>
username: <redacted>
url: https://prometheus-us-central1.grafana.net/api/prom/push
postgres_exporter:
enabled: true
data_source_names:
- <redacted>
the pvdb-metrics:2112/metrics route never gets hit. What am I doing wrong?