redfish_exporter
redfish_exporter copied to clipboard
Failed to Get Redfish Data by Group's Auth.
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
- job_name: "redfish-exporter"
metrics_path: /redfish
scrape_interval: 5m
scrape_timeout: 2m
static_configs:
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.
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
...