Hey Luca,
I wouldn't say the documentation is wrong (it can just get a little confusing) - these two properties have different meanings - as the linked documentation explains further on.
`quarkus.datasource.metrics.enabled` enables exposing metrics for data sources, meaning that they will be present on the /metrics endpoint. But each data source itself can have its metrics turned on/off separately, and if they are off, they won't appear on the endpoint. `quarkus.datasource.DS_NAME.jdbc.enable-metrics` does this - omitting the DS_NAME segment means you're setting it for the "default" data source.
Yeah this can get confusing, so if you have ideas how to improve the documentation wording, that would be welcome.
Cheers
Jan