Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make collector default prometheus metricset #6636

Merged
merged 1 commit into from
Mar 26, 2018

Conversation

exekias
Copy link
Contributor

@exekias exekias commented Mar 22, 2018

This change makes prometheus collector the default metricset, so there is no need to declare it when using it by hand or in autodiscover:

metricbeat.modules:
  - module: prometheus
    period: 10s
    hosts: ["localhost:9090"]
    metrics_path: /metrics

if err := mb.Registry.AddMetricSet("prometheus", "collector", New, hostParser); err != nil {
panic(err)
}
mb.Registry.MustAddMetricSet("prometheus", "collector", New,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have a mention of this in the docs.

@andrewkroh Thanks for this feature. We should probably make use of it in some other modules.

@ruflin
Copy link
Member

ruflin commented Mar 23, 2018

@exekias I think the failing tests could be related (docker labels).

Signed-off-by: Carlos Pérez-Aradros Herce <carlos@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants