Merge ~ilasc/turnip:add-statsd-env-label into turnip:master
Status: | Merged |
---|---|
Approved by: | Ioana Lasc |
Approved revision: | 78c71243abc12dd68b3ffe085277456491e3c48d |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~ilasc/turnip:add-statsd-env-label |
Merge into: | turnip:master |
Diff against target: |
111 lines (+32/-16) 5 files modified
charm/turnip-pack-backend/config.yaml (+5/-1) charm/turnip-pack-backend/templates/turnip-pack-backend.service.j2 (+1/-0) config.yaml (+2/-1) turnip/pack/git.py (+19/-12) turnip/pack/tests/test_functional.py (+5/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+393116@code.launchpad.net |
Commit message
Add environment label for Statsd metrics
Description of the change
This branch changes the prefix from 'turnip_
Notes:
1: We already have an environment label in production, but not in QAS:
https:/
https:/
For this reason I went with 'env' as the label name so it doesn't clash with the existent one in Production.
2: We need to pass in some name ('statsd') for the gauge so that the top label stays generic (currently in this branch: 'turnip_statsd' https:/
If we pass in only the prefix, the top label will not remain generic as the first gauge label (operation) gets attached to the prefix and results in as many top labels as there are git operations (git-receive-pack, git-upload-
Thanks Colin!
Addressed comments and indeed I changed from "git" to "statsd" in the gauge name as with "git" the top label would have been "turnip_git".
I figured "turnip_statsd" would be more indicative of the metrics origin in the dashboards, but I can definitely go back to "git" & "turnip_git" if you think that's better ?