Add username/password in Metricbeat autodiscover hints #15115
Labels
autodiscovery
enhancement
Team:Integrations
Label for the Integrations team
test-plan
Add this PR to be manual test plan
Describe the enhancement:
Currently we don't have username/password in autodiscover hints. In order to set this you need to make use of
raw
hint. Since these are really common configuration options we should consider adding them to the list of known hints.Describe a specific use case for the enhancement or feature:
https://discuss.elastic.co/t/metricbeat-autodiscover-hints-for-mysql/211575/3
Implementation would be similar to #14208.
Manual Testing
./metricbeat -e -d "hints.builder"
docker run -l co.elastic.metrics/module=nats -l co.elastic.metrics/username=user42 --name nats nats
2019-12-16T15:53:18.712+0200 DEBUG [hints.builder] hints/metrics.go:144 generated config: {"enabled":true,"hosts":null,"metricsets":["connections","routes","stats","subscriptions"],"module":"nats","period":"1m","processors":null,"ssl":null,"timeout":"3s","username":"user42"}
The text was updated successfully, but these errors were encountered: