-
Notifications
You must be signed in to change notification settings - Fork 86
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
Need help to connect to Grafana cloud #270
Comments
Hi, have a look at https://github.com/bluecmd/fortigate_exporter?tab=readme-ov-file#prometheus-configuration. When you scrape |
@bluecmd Thanks for the quick reply. That was my previous config and it always the same error as below. |
Have you added |
Yes, I have added it in fortigate-key.yaml file |
If you think, I might done something totally wrong. It would be great to have your detailed guidance. Because I tried my best following your guide in git and also in reddit |
Is it added exactly as you've written the target? E.g. have you put the port in the config but not the Prometheus target? They have to match exactly. If you have, please post your Prometheus config and exporter config but redact any sensitive data. |
I believe so ;) Below is the configuration of my forti-exporter, prometheus and grafana agent : fortigate-key.yaml:
prometheus.yaml:
Grafana-agent,yaml:
|
Can you post the logs from the exporter? |
Can you help me to understand how I can get the logs ? I am beginner in this area |
How are you running the exporter? Through docker? Systemd? Screen? |
I not using docker and I am not sure what you exactly you mean by running the exporter. So far, I have just restarted the process of prometheus and grafana by using the below commands sudo systemctl restart prometheus and sudo systemctl restart grafana-agent.service And I can confirm that both are running |
Well, you have installed this exporter somehow, right? I mean, it doesn't come installed and all the installation is manual - so you or somebody needs to download the software and install it. That somebody also needs to make sure the exporter is told where the fortigate-key.yaml file is. |
Yes, I did the installation. I downloaded the binary and modified the fortigate-key.yaml. and then added the details of the job to prometheus configuration. Can you tell me how I can say the exporter that this is where the fortigate-key.yaml file is ? I am doing it on ubuntu. I tried running the command _
_ , but it ends with the error, sudo: ./fortigate_exporter: command not found. I am running this from the folder where the binaries are placed. |
Sorry, don't have time to hold hands on basic Linux administration. I'll leave the issue open for others to chime in if they want to. |
Hey @bluecmd I managed to run the exporter on my linux, now it's up and running. Maybe can you help me now ? I can see the job data in Grafana cloud dashboard for prometheus. Maybe can you help me now ? However, in the dashboard I couldn't get any data even if I enter the variable data as the IP address of the firewall or as http://localhost:9710. Can you help me here ? In the logs, I have the below error |
Update : I got it running with -insecure. Now I am stuck with next error as below :( However, If I visit https://192.168.1.99/api/v2/monitor/system/status/?access_token=xxxxxxxxxx It gives output as well as the curl as `$ curl -vvv -k -H "Authorization: Bearer xxxxxxxxxxxxxxxxxxxxx" "https://192.168.1.99/api/v2/cmdb/firewall/address/"' |
Hey Guys,
First of all, it's a great job and I am trying to get this working, but with no luck so far...!
This is my first time using Prometheus and Grafana. Your help is really appreciated :)
My Situation:
I have setup the fortigate exporter and prometheus on my linux pc

As mentioned in the guide, I used [http://localhost:9710/probe, but that didn't work and was with the error "404 Not found". Post changing to metrics, job is now alright.
I have also established the connection to grafana cloud and this prometheus. But I don't see anywhere except the job name
I would be happy to provide any additional info.
I really appreciate your help again, Thanks in advance :)
The text was updated successfully, but these errors were encountered: