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

Probe request rejected #299

Open
R4VXN opened this issue Sep 24, 2024 · 0 comments
Open

Probe request rejected #299

R4VXN opened this issue Sep 24, 2024 · 0 comments

Comments

@R4VXN
Copy link

R4VXN commented Sep 24, 2024

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:
      • source_labels: [address]
        target_label: __param_target
      • source_labels: [__param_target]
        target_label: instance
        regex: '(?:.+)(?:://)([^:]).'
      • target_label: address
        replacement: 'exporterFQDN:9710'
    • job_name: 'fortigate3'
      metrics_path: /probe
      static_configs:

      • targets:
      • source_labels: [address]
        target_label: __param_target
      • source_labels: [__param_target]
        target_label: instance
        regex: '(?:.+)(?:://)([^:]).'
      • target_label: address
        replacement: 'exporterFQDNe:9710'
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

1 participant