Error: invalid configuration: receivers::apache: query must be 'auto': 'http://localhost:8080/server-status?manual'
2024/05/21 12:21:23 collector server run finished with error: invalid configuration: receivers::apache: query must be 'auto': 'http://localhost:8080/server-status?manual'
However, when the same config is managed by the receivercreator:
I think a better experience here would be to validate each populated configuration, log an error once and do not start the receiver, instead of starting the receiver with an invalid configuration. The latter will flood the logs with errors when it can be avoided.
Component(s)
receiver/receivercreator
Describe the issue you're reporting
At the moment the
receivercreator
can produce receivers' configurations that would normally fail to get validated.For example for the following configuration:
when running the collector I get:
However, when the same config is managed by the receivercreator:
no validation errors occur and the apache receiver will start giving constantly scraping errrors:
I think a better experience here would be to validate each populated configuration, log an error once and do not start the receiver, instead of starting the receiver with an invalid configuration. The latter will flood the logs with errors when it can be avoided.