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

Prometheus Scrape Job Relabel Configuration #26

Closed
tzyifeng opened this issue May 16, 2023 · 2 comments
Closed

Prometheus Scrape Job Relabel Configuration #26

tzyifeng opened this issue May 16, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation no-issue-activity

Comments

@tzyifeng
Copy link

tzyifeng commented May 16, 2023

In the previous pure-exporter, there is relabel configuration to support multiple targets.

See below:
relabel_configs:

- source_labels: [__address__]
  target_label: __param_endpoint

- source_labels: [__pure_apitoken]
  target_label: __param_apitoken

- source_labels: [__address__]
  target_label: instance

- target_label: __address__
  replacement: [xxxxx] # CHANGE THIS (pure-exporter address)

In this new openmetrics exporter, what will the configuration looks like? looks like __param_apitoken is not supported anymore.

@james-laing
Copy link
Collaborator

There was a shift in Prometheus standards which required us make the change in order for the exporter to be accepted. The main reason was to avoid passing the API tokens as part of the URL.

To be more secure means the prometheus.yml config is much lengthier as we need to declare it for each metric endpoint.

Here is an example of how to configure prometheus.yml with the current exporter:
https://github.com/PureStorage-OpenConnect/pure-fb-openmetrics-exporter/blob/main/extra/prometheus/prometheus.yaml

@sdodsley sdodsley added the documentation Improvements or additions to documentation label Jul 16, 2023
@github-actions
Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation no-issue-activity
Projects
None yet
Development

No branches or pull requests

3 participants