-
Notifications
You must be signed in to change notification settings - Fork 6
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 prometheus helmfiles and rules to better use metric labels #304
Merged
Conversation
This file contains 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
using .75 for now as anecdotally seems to work. Ideal number could be more or less.
MekWarrior
approved these changes
Mar 28, 2020
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, well done!
willgraf
added a commit
that referenced
this pull request
May 23, 2020
* Update prometheus-operator, prometheus-adapter, and promethes-redis-exporter helm charts and remove stale default values * Relabel redis-exporter with `deployment=$QUEUE-consumer` and change key to be `$QUEUE` * Rename zip-consumer to segmentation-zip-consumer to match labels. * Using .75 instead of .9 for backoff coefficient.
willgraf
added a commit
that referenced
this pull request
May 23, 2020
* Update prometheus-operator, prometheus-adapter, and promethes-redis-exporter helm charts and remove stale default values * Relabel redis-exporter with `deployment=$QUEUE-consumer` and change key to be `$QUEUE` * Rename zip-consumer to segmentation-zip-consumer to match labels. * Using .75 instead of .9 for backoff coefficient.
willgraf
added a commit
that referenced
this pull request
May 23, 2020
* Update prometheus-operator, prometheus-adapter, and promethes-redis-exporter helm charts and remove stale default values * Relabel redis-exporter with `deployment=$QUEUE-consumer` and change key to be `$QUEUE` * Rename zip-consumer to segmentation-zip-consumer to match labels. * Using .75 instead of .9 for backoff coefficient.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
In an effort to improve the autoscaling, each prometheus-related chart has been updated to the latest version. In updating the charts, I found that some of the values became stale (especially the image version), so I removed all values that we did not need/want to set ourselves. They just inherit from the default value set, with a link provided in the helmfile.
Additionally, prometheus metrics use labels to do math on 2 or more time series. To get our labels to match up, I made a few changes:
redis-exporter
to have the key name bequeue
andqueue-zip
instead ofqueue_image_keys
andqueue_zip_keys
.metric_relabel_config
to theredis-exporter
prometheus job to take thequeue
name and include a new label,deployment="queue-consumer"
.zip-consumer
tosegmentation-zip-consumer
in order to have the labels match the queue name.Also, I updated our rules:
consumer_key_ratio
andconsumers_per_gpu
which use the new labels to calculate stats for all deployed consumers (if their nameX-consumer
matches the queueX
).tf_serving_gpu_usage
metric.avg_over_time
calls, they are outputting discrete points instead of a nice line.