-
Notifications
You must be signed in to change notification settings - Fork 195
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
Publish storage worker and execute worker pool size in prometheus #1606
Conversation
Had dependency on #1605, buildfails due to missing newly added field. |
.register(); | ||
private static final Gauge executeWorkerPoolSize = | ||
Gauge.build() | ||
.name("execute_worker_pool_size") |
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.
Would be useful to add a labelNames("queue_name") here as you can have multiple pools of execute workers. Also can you please update the config docs with new 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.
This will require changes at multiple places.
- Change type of active_workers property in BackplaneStatus. Which will trigger changes in multiple places.
- Include worker queues in ShardWorker
Are we ok with these changes?
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.
This is fine as is for now. There is a different way to get the workers by type (if running in k8s) with something like this:
count(completed_operations_total) by (job)
where job is a label assigned to a kubernetes deployment.
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.
Thanks for updating the doc!
.register(); | ||
private static final Gauge executeWorkerPoolSize = | ||
Gauge.build() | ||
.name("execute_worker_pool_size") |
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.
This is fine as is for now. There is a different way to get the workers by type (if running in k8s) with something like this:
count(completed_operations_total) by (job)
where job is a label assigned to a kubernetes deployment.
fce37aa
to
9a14811
Compare
Publish storage worker and execute worker pool size in prometheus