grafana-agent integration doesn't work with -enable-features=integrations-next #3494
-
When I try to start grafana-agent with command line flag
The config file:
The error message:
The same error occurs when running on kubernetes cluster. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey there 👋 There are a few changes small changes you'll have to make in your config file to make use of You can start by removing the server:
log_level: debug
metrics:
global:
remote_write:
- url: "http://localhost:9009/api/prom/push"
basic_auth:
username: "user"
password: "secret"
configs:
- name: mymetricsinstance
integrations:
agent:
autoscrape:
enable: true
metrics_instance: "mymetricsinstance" Let us know if you're experiencing any other issues! |
Beta Was this translation helpful? Give feedback.
-
Since this doesn't seem to be an issue with the Agent itself, I'll convert this into a GitHub discussion if you don't mind and we can go from there. |
Beta Was this translation helpful? Give feedback.
Hey there 👋 There are a few changes small changes you'll have to make in your config file to make use of
integrations-next
; they're documented here.You can start by removing the
enabled
field and defining theautoscrape
field with your metrics instance to send the metrics to and go from there!Let us know if you're experiencing any other issues!