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

Flow: otelcol.exporter.prometheus component #2302

Closed
Tracked by #2213
rfratto opened this issue Oct 3, 2022 · 0 comments · Fixed by #2463
Closed
Tracked by #2213

Flow: otelcol.exporter.prometheus component #2302

rfratto opened this issue Oct 3, 2022 · 0 comments · Fixed by #2463
Assignees
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Milestone

Comments

@rfratto
Copy link
Member

rfratto commented Oct 3, 2022

Create an OpenTelemetry Collector exporter component called prometheus and expose it as a Flow component called otelcol.exporter.prometheus.

This component would act as a bridge between the otelcol.* component and the prometheus.* components, where it would accept a prometheus.* component receiver to send metrics to. Incoming OpenTelemetry Collector metrics would be converted to Prometheus metrics on the fly before being sent to the configured prometheus.* component receivers.

otelcol.receiver.otlp "default" {
  output {
    metrics = [otelcol.exporter.prometheus.default.input]
  }
}

otelcol.exporter.prometheus "default" {
  send_to = [prometheus.remote_write.default.receiver] 
}

prometheus.remote_write "default" {
  ...
}
@rfratto rfratto added this to the v0.30.0 milestone Oct 4, 2022
@rfratto rfratto modified the milestones: v0.30.0, v0.29.0 Oct 26, 2022
@rfratto rfratto self-assigned this Oct 27, 2022
@rfratto rfratto moved this from Todo to In Progress in Grafana Agent (Public) Oct 27, 2022
rfratto added a commit to rfratto/agent that referenced this issue Nov 2, 2022
Introduce an `otelcol.exporter.prometheus` component which:

1. Accepts OpenTelemetry metrics from other `otelcol` components.
2. Converts metrics into the Prometheus format.
3. Forwards converted metrics to a set of provided `prometheus`
   components.

The component implements the required portions of the OpenTelmemetry
[Metrics Data Model][Metrics Data Model] specification.

The following optional portions of the specification are left
unimplemented for this initial commit:

1. Metrics aggregated with delta temporality are dropped and no
   delta-to-cumulative transformation takes place.

2. Exemplars are dropped.

Closes grafana#2302.

[Metrics Data Model]: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/data-model.md
rfratto added a commit to rfratto/agent that referenced this issue Nov 2, 2022
Introduce an `otelcol.exporter.prometheus` component which:

1. Accepts OpenTelemetry metrics from other `otelcol` components.
2. Converts metrics into the Prometheus format.
3. Forwards converted metrics to a set of provided `prometheus`
   components.

The component implements the required portions of the OpenTelmemetry
[Metrics Data Model][Metrics Data Model] specification.

The following optional portions of the specification are left
unimplemented for this initial commit:

1. Metrics aggregated with delta temporality are dropped and no
   delta-to-cumulative transformation takes place.

2. Exemplars are dropped.

Closes grafana#2302.

[Metrics Data Model]: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/data-model.md
Repository owner moved this from In Progress to Done in Grafana Agent (Public) Nov 3, 2022
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Feb 22, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant