-
Notifications
You must be signed in to change notification settings - Fork 522
Update metrics linting to be able to handle custom metrics #18733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 22 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
4df927b
Add in base linting for metrics
MadLittleMods cec25dd
Support `labelnames` argument being a Tuple expression
MadLittleMods d62d564
Make label name arg position/name generic
MadLittleMods 325caec
Update wording
MadLittleMods 53bfbc6
Explain why `prometheus_client.metrics_core.Metric` isn't included here
MadLittleMods 395b33b
Disambiguate
MadLittleMods 7818657
Remove debug log
MadLittleMods 6bb5fef
Fix lints in in lint
MadLittleMods b073bb1
Merge branch 'develop' into madlittlemods/18592-lint-metric
MadLittleMods 6758742
Add cross-check for `prometheus_metric_fullname_to_label_arg_map`
MadLittleMods c53d34d
Ignore some process-level metrics
MadLittleMods 07e79fe
Ignore process-level metrics
MadLittleMods 4902046
Fix `JemallocCollector` edge case
MadLittleMods da38631
Support almost all metric types
MadLittleMods b46040a
Add some cross-links
MadLittleMods 8d706ac
Lint `Metric` types
MadLittleMods 478edc2
Ignore `Metric` usage where necessary
MadLittleMods 62ce1e0
Add changelog
MadLittleMods 9166d55
Remove irrelevant comment
MadLittleMods 2d947a4
Beef up comment
MadLittleMods 89076a4
Mark off TODO about `Metric`
MadLittleMods a90e19b
Merge branch 'develop' into madlittlemods/18592-lint-metric
MadLittleMods 44e30cf
Merge branch 'develop' into madlittlemods/18592-lint-metric
MadLittleMods 86a0bcd
Merge branch 'develop' into madlittlemods/18592-lint-metric
MadLittleMods ab5a756
Uncomment merged lints
MadLittleMods 8c380c0
Merge branch 'develop' into madlittlemods/18592-lint-metric
MadLittleMods bec7bfb
We can now use the full list
MadLittleMods 21ef4b4
Workaround mypy limitation only calling `get_base_class_hook` for one…
MadLittleMods 61a6f39
More sound logic
MadLittleMods 4965340
Use lint instead of assert
MadLittleMods a7573a7
Make sure pydantic mypy hooks are still being called
MadLittleMods d2efe1d
Add more explicit instructions
MadLittleMods f2f1b9e
Merge branch 'develop' into madlittlemods/18592-lint-metric
MadLittleMods File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Update metrics linting to be able to handle custom metrics. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.