-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Update gitlab_runner to use the new OpenMetricsBaseCheck #1978
Conversation
e7b150c
to
55edc20
Compare
53b4791
to
22a9175
Compare
b3180b7
to
579904a
Compare
48d5d8f
to
3bdfed6
Compare
934661a
to
be99352
Compare
425a979
to
ab7f6c9
Compare
be99352
to
d5b1cdb
Compare
ab7f6c9
to
f0643d3
Compare
d5b1cdb
to
f2b1ba9
Compare
# Mapping from Prometheus metrics names to Datadog ones | ||
# For now it's a 1:1 mapping | ||
# TODO: mark some metrics as rate | ||
allowed_metrics = init_config.get('allowed_metrics') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably move this away from init_config
WDYT? (same for gitlab
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should, that will also allow us to actually support multiple endpoints.
We could add a deprecation warning and then adjust the docs to get users to instead define the metrics
config option. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do this in some follow-up work
222cee3
to
7bde919
Compare
f829daf
to
b3bc8c8
Compare
Codecov Report
@@ Coverage Diff @@
## master #1978 +/- ##
==========================================
- Coverage 86.24% 84.04% -2.21%
==========================================
Files 190 4 -186
Lines 13901 94 -13807
Branches 1491 10 -1481
==========================================
- Hits 11989 79 -11910
+ Misses 1499 8 -1491
+ Partials 413 7 -406 |
b3bc8c8
to
59505b4
Compare
59505b4
to
0d6fc47
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Approving it but could you address my comment before to merge it. Thanks
""" | ||
# Mapping from Prometheus metrics names to Datadog ones | ||
# For now it's a 1:1 mapping | ||
# TODO: mark some metrics as rate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please, remove this TODO or address it.
What does this PR do?
Updates gitlab_runner to use the new OpenMetricsBaseCheck class.
Motivation
This fixes the check for when we use the new OpenMetricsBaseCheck class.
Review checklist
no-changelog
label attachedAdditional Notes