Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove time label from hasura actions prometheus (#395)
## Description Closes: #XXXX Due to the time label being different, the monitoring for hasura actions histogram will not accumulate even under the same action name. Current monitoring: ``` # TYPE bdjuno_action_response_time histogram bdjuno_action_response_time_bucket{path="/delegation",time="0.624719333",le="0.5"} 0 bdjuno_action_response_time_bucket{path="/delegation",time="0.624719333",le="1"} 1 bdjuno_action_response_time_bucket{path="/delegation",time="0.624719333",le="2"} 1 bdjuno_action_response_time_bucket{path="/delegation",time="0.624719333",le="3"} 1 bdjuno_action_response_time_bucket{path="/delegation",time="0.624719333",le="4"} 1 bdjuno_action_response_time_bucket{path="/delegation",time="0.624719333",le="5"} 1 bdjuno_action_response_time_bucket{path="/delegation",time="0.624719333",le="+Inf"} 1 bdjuno_action_response_time_sum{path="/delegation",time="0.624719333"} 0.624738125 bdjuno_action_response_time_count{path="/delegation",time="0.624719333"} 1 bdjuno_action_response_time_bucket{path="/delegation",time="1.586871667",le="0.5"} 0 bdjuno_action_response_time_bucket{path="/delegation",time="1.586871667",le="1"} 0 bdjuno_action_response_time_bucket{path="/delegation",time="1.586871667",le="2"} 1 bdjuno_action_response_time_bucket{path="/delegation",time="1.586871667",le="3"} 1 bdjuno_action_response_time_bucket{path="/delegation",time="1.586871667",le="4"} 1 bdjuno_action_response_time_bucket{path="/delegation",time="1.586871667",le="5"} 1 bdjuno_action_response_time_bucket{path="/delegation",time="1.586871667",le="+Inf"} 1 bdjuno_action_response_time_sum{path="/delegation",time="1.586871667"} 1.586899834 bdjuno_action_response_time_count{path="/delegation",time="1.586871667"} 1 ``` Updated monitoring: ``` # TYPE bdjuno_action_response_time histogram bdjuno_action_response_time_bucket{path="/delegation",le="0.5"} 0 bdjuno_action_response_time_bucket{path="/delegation",le="1"} 2 bdjuno_action_response_time_bucket{path="/delegation",le="2"} 2 bdjuno_action_response_time_bucket{path="/delegation",le="3"} 2 bdjuno_action_response_time_bucket{path="/delegation",le="4"} 2 bdjuno_action_response_time_bucket{path="/delegation",le="5"} 2 bdjuno_action_response_time_bucket{path="/delegation",le="+Inf"} 2 bdjuno_action_response_time_sum{path="/delegation"} 1.5621203750000001 bdjuno_action_response_time_count{path="/delegation"} 2 ``` --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch - [ ] provided a link to the relevant issue or specification - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable)
- Loading branch information