Skip to content

Commit

Permalink
Update docs/deprecations/migrating-from-prometheus-exec-to-prometheus.md
Browse files Browse the repository at this point in the history
Co-authored-by: Jina Jain <[email protected]>
  • Loading branch information
hughesjj and jinja2 authored Aug 17, 2023
1 parent fffb924 commit 7f35971
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ We recommend you migrate your configuration to use the [prometheus](https://gith
The functionality and responsibility of instantiating and exposing an endpoint to be scraped from now lies with the end user, and is not supported in any of the current prometheus receivers. The exact method of your migration
will depend on why you needed to use the `prometheus_exec` scraper in the first place.

The easiest path would likely be to [enable federation](https://prometheus.io/docs/prometheus/latest/federation/) on your prometheus server, you can see our [prometheus-federation](./examples/prometheus-federation/README.md) example under [`examples/prometheus-federation`](./examples/prometheus-federation) in this git repository. Ensure your endpoint is accessible from your otel collector, and feel free to ask in the [#otel-prometheus-wg](https://cloud-native.slack.com/archives/C01LSCJBXDZ), [#otel-collector](https://cloud-native.slack.com/archives/C01N6P7KR6W), or [#prometheus](https://cloud-native.slack.com/archives/C167KFM6C) slack channels for any help. You can also feel free to cut us an issue, or reach our to your support rep.
The easiest path would likely be to [enable federation](https://prometheus.io/docs/prometheus/latest/federation/) on your prometheus server, you can see our [prometheus-federation](./examples/prometheus-federation/README.md) example under [`examples/prometheus-federation`](./examples/prometheus-federation) in this git repository. Ensure your endpoint is accessible from your otel collector, and feel free to ask in the [#otel-prometheus-wg](https://cloud-native.slack.com/archives/C01LSCJBXDZ), [#otel-collector](https://cloud-native.slack.com/archives/C01N6P7KR6W), or [#prometheus](https://cloud-native.slack.com/archives/C167KFM6C) slack channels for any help. You can also feel free to cut us an issue, or reach out to your support representative.

If it's a matter of your data not natively being in the prometheus format, and you were using a prometheus exporter (not to be confused with the opentelemetry-collector-contrib `prometheusexporter`) to extract data, you can either run the relevant prometheus exporter ([list](https://prometheus.io/docs/instrumenting/exporters/)) on your own infrastructure, or better yet, you could check if there's already a native [opentelemetry receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver) for your use case!

Expand Down

0 comments on commit 7f35971

Please sign in to comment.