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

Add a pull controller, use it for Prometheus #751

Merged
merged 10 commits into from
May 20, 2020

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented May 20, 2020

This is a simplification of the existing code. Pulling updates is backwards for the usual Export() API.

*pull.Controller implements a Collect() and ForEach() methods, used by Prometheus. The NewRawExporter() function is removed, as a *prometheus.Exporter always includes its Provider. This can be extended in the future, either to support a more configurable integrators or multiple integrators.

@jmacd jmacd added the area:metrics Part of OpenTelemetry Metrics label May 20, 2020
sdk/metric/controller/pull/config.go Show resolved Hide resolved
sdk/metric/controller/pull/pull.go Outdated Show resolved Hide resolved
sdk/metric/controller/pull/pull.go Show resolved Hide resolved
exporters/metric/prometheus/prometheus.go Outdated Show resolved Hide resolved
exporters/metric/prometheus/prometheus.go Outdated Show resolved Hide resolved
@jmacd jmacd merged commit 5461669 into open-telemetry:master May 20, 2020
@jmacd jmacd deleted the jmacd/pull_cont branch May 20, 2020 17:27
@pellared pellared added this to the untracked milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:metrics Part of OpenTelemetry Metrics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants