Skip to content
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

Add dropwizard metrics to track status of pods #872

Merged
merged 3 commits into from
Nov 12, 2020
Merged

Add dropwizard metrics to track status of pods #872

merged 3 commits into from
Nov 12, 2020

Conversation

angry-cellophane
Copy link
Contributor

This PR is to add some basic dropwizard metrics to track status of provisioned pods.

I migrated Jenkins instances from Mesos to Kubernetes recently and noticed that the kube plugin doesn't provide metrics related to builder nodes provisioning like the mesos plugin does.
These metrics become useful at scale when the number of Jenkins instance is quite big and they help to spot issues with Jenkins -> cloud provider as early as possible.
I took the same approach as the mesos plugin and use dropwizard metrics (and the metrics plugin), however, I personally not a big fan of them as they don't have labels like the prometheus metrics client. Micrometer can be an alternative, it's like slf4j for logs. Any help with the metrics and what's the current stance in the jenkins world on them would be great.

Copy link
Member

@Vlatombe Vlatombe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These look like a good addition. I believe this needs to be slightly reworked in order to avoid too much repeats.

@Vlatombe Vlatombe added the enhancement Improvements label Nov 4, 2020
@@ -679,7 +691,6 @@ public PodTemplate getUnwrappedTemplate(PodTemplate podTemplate) {
}

/**
* Add a new template to the cloud
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this hunk

@Vlatombe Vlatombe mentioned this pull request Nov 12, 2020
@Vlatombe Vlatombe merged commit 6467d2a into jenkinsci:master Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants