Metricbeat autodiscover hints for MySQL

I'm looking for a way to setup auto-discovery based on docker hints for MySQL, as described here:

How can I set the MySQL user and password supported by the module (, but using the labels instead? There are only a few labels supported as hints and I would like delegate to the configuration to the target, and not the metricbeat instance.


Hi @stingus,

how about using co.elastic.metrics/raw?

Seems that not all json keys/values are parsed from co.elastic.metrics/raw. Tried to set the user key but its value isn't passed to the module. So my guess is that only accepted keys are the ones listed on the hints based autodiscovery page.


tried to reproduce it (with mongodb module) and I can see the username config to be set.

Could you check that your hints are correct. The key is username and not user just in case.

In any case we should consider adding username/password to known hints list. I will open a Github issue for this. Thanks for bringing this up!


Fyi github issue:

Thanks @ChrsMark!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.