nleiva / ansible-role-grafana_agent

Installs Grafana Cloud Agent on RedHat/CentOS or Debian/Ubuntu servers to collect observability data and send it to Grafana Cloud.
GNU General Public License v3.0
15 stars 19 forks source link

agent-config: Remove deprecated server config #15

Closed bekriebel closed 2 years ago

bekriebel commented 2 years ago

The server block has been removed from the YAML config and causes the agent to fail to start as of grafana-agent v0.26.

https://grafana.com/docs/agent/v0.26/upgrade-guide/#breaking-change-deprecated-yaml-fields-in-server-block-removed

Remove this field from the config to the config can be loaded. The port will continue to be set properly as the command line flag defaults to the same value as the previous config.

nleiva commented 2 years ago

Thanks!