jenningsloy318 / redfish_exporter

exporter to get metrics from redfish based hardware such as lenovo/dell/superc servers
Apache License 2.0
76 stars 62 forks source link

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

Open sykim1009 opened 1 year ago

sykim1009 commented 1 year ago

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.

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

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 commented 1 year ago

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
...