vegasbrianc/github-monitoring

no data points

linlynn opened this issue · 8 comments

hi , I am following this guide https://github.com/vegasbrianc/github-monitoring and no data points in github stats dashboard
go to http://localhost:9090/targets and shows

Endpoint State Labels Last Scrape Error
http://localhost:9090/metrics up instance="localhost:9090" 14.744s ago  
http://metrics:9171/metrics up instance="metrics:9171" 7.262s ago  
http://node-exporter:9100/metrics down instance="node-exporter:9100" 14.295s ago Get http://node-exporter:9100/metrics: dial tcp: lookup node-exporter on 127.0.0.11:53: server misbehaving

i also checked the date looks good

any idea ?

Hi @linlynn I removed node exporter from the targets as it is not used in this stack. Second, can you include the metric service environment: configuration of your docker-compose.yml file?

@vegasbrianc I am using the docker-compose file https://github.com/vegasbrianc/github-monitoring/blob/master/docker-compose.yml (update my token as suggested )

If you open http://0.0.0.0:9171/metrics do you see metrics?

hi @vegasbrianc can't access it
Unable to connect

Firefox can’t establish a connection to the server at 0.0.0.0:9171.

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

this is docker container running status

lynn@lynn-ThinkCentre-M92p:~/github-monitoring$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
99906f31f103 grafana/grafana "/run.sh" 28 minutes ago Up 28 minutes 0.0.0.0:3000->3000/tcp githubmonitoring_grafana_1
997eab108102 prom/prometheus "/bin/prometheus -..." 28 minutes ago Up 28 minutes 0.0.0.0:9090->9090/tcp prometheus
44ab540ea290 infinityworks/github-exporter:latest "/bin/main" 28 minutes ago Up 28 minutes 9171/tcp githubmonitoring_metrics_1

HI @linlynn I updated the docker-compose.yml file. Can you please update your project with the latest version of the compose and then you should be able to access 0.0.0.0:9171

Thx,Actually I already changed locally to expose port to host,I will try again today to see if I still see no data points

Hi @linlynn I saw an update from you today about the metrics. Were you able to make any progress? Can you see the data now in Grafana?

hi @vegasbrianc i made another pr to make it work for multiple repositories ,please take a look
#6