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

Failed to Get Redfish Data by Group's Auth. #63

Open
sykim1009 opened this issue Dec 27, 2022 · 1 comment
Open

Failed to Get Redfish Data by Group's Auth. #63

sykim1009 opened this issue Dec 27, 2022 · 1 comment

Comments

@sykim1009
Copy link

Hello, I'm testing redfish-exporter in prometheus.
I want to consist redfish-exporter.yml file by grouping because operate several vendors(hpe,dell,lenovo...).
so, I consist 2 config file(redfish-exporter.yml, prometheus.yml) like that.

  • redfish_exporter.yml

groups:
redfish_dell:
username: dell_user
password: dell_pw
redifsh_lenovo:
username: lenovo_user
password: lenovo_user

  • prometheus.yml

    • job_name: "redfish-exporter"
      metrics_path: /redfish
      scrape_interval: 5m
      scrape_timeout: 2m
      static_configs:
      • targets : ['192.168.1.1']
        relabel_configs:
      • source_labels: [address]
        target_label: __param_target
      • source_labels: [__param_target]
        target_label: instance
      • target_label: address
        replacement: localhost:9610
      • target_label: __param_group
        replacement: redfish_dell

Unfortunately, I got a Failed Log about no Credentials Error.
(error error getting credentials app=redfish_exporter error=no credentials found for target 192.168.1.1 target=192.168.1.1)

Do you get any idea to solve this issue?
Thanks.

@fschlich
Copy link

relabelling happens after the metrics are collected, if you want to add a param to the request, it needs to go into "params":

- job_name: redfish-dell
  metrics_path: /redfish
  params:
    group:
    - redfish_dell
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants