Skip to content

[Metricbeat] [Prometheus] Add proper error handling for query dataset when the auth/ssl is misconfigured #44446

@mykola-elastic

Description

@mykola-elastic

Describe the enhancement:

Improve error handling for the query submodule of Metricbeat's prometheus module: https://github.com/elastic/beats/blob/main/metricbeat/module/prometheus/query/query.go#L86

Describe a specific use case for the enhancement or feature:

When adding username, password, and SSL support to the query dataset (which is already implemented in the collector dataset) (see PR elastic/integrations#13969), the error messages in Metricbeat are ambiguous.
For example, when username or password is wrong, we have the following error messages:

For Collector (good and understandable):

Image

For Query (obscure):

Image

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions