Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
prometheus: Use counter for db queries #276
This renames the concourse_db_queries metric to concourse_db_queries_total and changes it to a counter that tracks the total number of db queries since application start.
This is way more accurate and ideomeatic for prometheu's pull model. The previous approach was very error prune and almost certainly very incorrect.
@TimSimmons Any comments?
It's been a while, but I believe I used
But now that I look at it again I think that reason might have been that I didn't know they were periodically emitted: https://github.com/concourse/atc/blob/d3cc08277460b8dbd220862d32a56eb7625581ac/metric/periodic.go