You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Now that we get quite a bit of traffic on the website, we could start to provide a badge for the top N tools that we calculate from our webserver monitoring every month.
Posting the query here for future reference:
topk(20, sum(count_over_time({domain=~"(analysis-tools\\.dev|www\\.analysis-tools\\.dev)", path=~"/tool/.*"} [$__range])) by (path))
On https://dash.jorgelbg.me. It's not publicly accessible, but I think we can query the Loki endpoint. My idea was to write a cronjob that fetches the information once per week and renders a static JSON with the top N tools which can then be used by Gatsby during the build process. We might have an optional top-badge, field for each node that points to a pre-rendered image. This way we can also show it on Github if we wanted (e.g. on our static-analysis repo or send a PR to the top tools).
Activity
jakubsacha commentedon Nov 23, 2020
Where do you invoke that query? In the cloudflare?
mre commentedon Nov 23, 2020
On https://dash.jorgelbg.me. It's not publicly accessible, but I think we can query the Loki endpoint. My idea was to write a cronjob that fetches the information once per week and renders a static JSON with the top N tools which can then be used by Gatsby during the build process. We might have an optional
top-badge, field for each node that points to a pre-rendered image. This way we can also show it on Github if we wanted (e.g. on our static-analysis repo or send a PR to the top tools).mre commentedon Dec 2, 2020
Posting my progress here so that I don't forget.