Description
Hello Guys,
Can you maybe help me I can not get it unfortunately
What am I doing wrong ? :(
I am thankful for any help
Error:
Probe request rejected; error is: no API authentication registered for "https://fortigate1:8443"
Probe request rejected; error is: no API authentication registered for "https://fortigate2:8443"
Probe request rejected; error is: no API authentication registered for "https://fortigate3:8443"
Exporter Config:
docker run -d -p 9710:9710 --name fortigate_exporter -v /root/fortigate_exporter/fortigate-key.yaml:/config/fortigate-key.yaml --restart unless-stopped fortigate_exporter:latest -auth-file /config/fortigate-key.yaml -insecure
fortigate-key.yml:
"https:/fortigate1fqdn:8443":
token: mytoken1
"https://fortigatefqdn2:8443":
token: mytoken2
"https://fortigate3fqdn:8443/":
token: mytoken3
Prometheus Config:
-
job_name: 'fortigate1'
metrics_path: /probe
static_configs:
- targets:
- https://exporterFQDN:8443
token: /fgkeys/fgkey1.yml
tls_config:
insecure_skip_verify: true
relabel_configs:
- source_labels: [address]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
regex: '(?:.+)(?:://)([^:]).'
- target_label: address
replacement: 'exporterfqdn:9710'-
job_name: 'fortigate2'
metrics_path: /probe
static_configs:- targets:
- https://fortigatefqd:8443
token: /fgkeys/fgkey2.yml
tls_config:
insecure_skip_verify: true
relabel_configs:
- https://fortigatefqd:8443
- source_labels: [address]
target_label: __param_target - source_labels: [__param_target]
target_label: instance
regex: '(?:.+)(?:://)([^:]).' - target_label: address
replacement: 'exporterFQDN:9710'
- targets:
-
job_name: 'fortigate3'
metrics_path: /probe
static_configs:- targets:
- https://fortigatefqdn:8443
token: /fgkeys/fgkey3.yml
tls_config:
insecure_skip_verify: true
relabel_configs:
- https://fortigatefqdn:8443
- source_labels: [address]
target_label: __param_target - source_labels: [__param_target]
target_label: instance
regex: '(?:.+)(?:://)([^:]).' - target_label: address
replacement: 'exporterFQDNe:9710'
- targets:
-