git-grep-exporter
Prometheus metrics for how many lines in certain git repos match certain regular expressions.
Only the HEAD of the repositories will be grepped.
The metrics are named {pattern}_lines and have repo labels.
I made this to track the amount of TODO and FIXME comments in my repositories because often while fixing one TODO I end up writing two more and it feels like it’s never ending but surely there’s an end? The patterns are fully configurable so you could also use this to track curse words … or something else?
