Suggested promtail configs contain deprecated client (->clients) config key, generates warning

In both the Grafana Cloud UI, and the Grafana stack help notes, the suggested promtail config.yaml contains:

client:
  url: https://<User>:<Your Grafana.com API Key>@logs-prod-004.grafana.net/loki/api/v1/push

This is now deprecated configuration, and generates this warning:

level=warn ts=2022-09-28T00:18:13.637653757Z caller=config.go:66 msg="use of CLI client.* and config file Client block are both deprecated in favour of the config file Clients block and will be removed in a future release"

The sample configs should be changed to e.g.

clients:
  - url: https://<User>:<Your Grafana.com API Key>@logs-prod-004.grafana.net/loki/api/v1/push

… replacing client with a clients array.

Is it sufficient to raise that here, or is a support ticket recommended?

1 Like

Hi @javabrett - thanks for bringing this up! I’ll share with the docs and account portal teams to get this updated!

1 Like