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
Add monitoring and stats for the raster server #3679
Comments
I started to experiment with https://github.com/prometheus/blackbox_exporter. I installed it on metrics.shields.io and added two HTTP targets to Prometheus: https://shields.io/ and https://raster.shields.io/badge/foo-bar-blue.png. Checks are performed every 15 seconds (we can change it). This way we gather a lot of data. I also added https://grafana.com/grafana/dashboards/7587 to our Grafana. AFAIK it's not possible verify the response body using blackbox exporter. But we have stats with status code and content length of the response and we can use this data (expecting status code = 200 and content length = 972 (current response size of |
https://metrics.shields.io/d/xtkCtBkiz/prometheus-blackbox-exporter has stats for raster badge for the last two weeks. Average response time is 458 ms. Today I've added probing of the most popular SVG badges: static_badge, npm_version, travis_build, npm_downloads, github_stars. Results can be seen at https://metrics.shields.io/d/xtkCtBkiz/prometheus-blackbox-exporter. |
Nice! I'm guessing that request is hitting the Now CDN cache? |
I think you are right. Response times for new badges not requested before are 2x-3x longer than response times for badges requested several times. |
It would be good to know how many requests are hitting the server, maybe get errors in Sentry, and have a frequent test that hits the server and ensures it's still responding with valid PNGs.
The text was updated successfully, but these errors were encountered: