fastapi-prometheus-grafana
                                
                                 fastapi-prometheus-grafana copied to clipboard
                                
                                    fastapi-prometheus-grafana copied to clipboard
                            
                            
                            
                        Grafana 8.5.3 does not know dashboard
On my Ubuntu 20.04 running Docker 20.10.12 after docker-compose up --build I can see all 3 services up and running,
but Grafana does not show any fastAPI Dashboard.
Service app runs on 238.11 and shows HTTP 200 GET /metrics
Service prometheus  seems to be ok as well,
only grafana does not come up with any dashboard.
I tried to change the target volume for
./datasource.yml:/etc/grafana/provisioning/datasource.yml to
/etc/grafana/provisioning/datasources/datasource.yml
but without luck. How does fastapi-dashboard.json get mounted into grafana?
Can anybody please give me a hint what's missing?
I have the same issue, all services are up, but nothing shows up in grafana
@vali-pavel It looks like, the dashboard is not loaded by default, you have to import it.
@JRGit4UE what did you add for data source of prometheus while importing fastapi-dashboard.json in graphana dashboard ?
Edit: Adding details in case someone else comes to this issue
- create a prometheus data source
- Add http://prometheus:9090as prometheus server url instead ofhttp://localhost:9090. Read here assuming you used docker-compose
- go to http://localhost:3000/dashboardsand select new > import > upload json file.
I also had to adjust the docker compose file so this line changes from
      - ./datasource.yml:/etc/grafana/provisioning/datasource.yml
to
      - ./datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
PR is welcome to fix things :pray: