fix: only collect prometheus database metrics when explicitly enabled (#8045)

* fix: only collect prometheus database metrics when explicitly enabled

* add missing test

* de-duplicate wrapping
This commit is contained in:
Cian Johnston
2023-06-15 04:34:16 -07:00
committed by GitHub
parent 3f81f38fcc
commit 6e598234b6
14 changed files with 158 additions and 58 deletions

3
coderd/apidoc/docs.go generated
View File

@ -7880,6 +7880,9 @@ const docTemplate = `{
"collect_agent_stats": {
"type": "boolean"
},
"collect_db_metrics": {
"type": "boolean"
},
"enable": {
"type": "boolean"
}