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

pkg/ipam: Update histogram buckets for trigger metrics #25600

Merged
merged 1 commit into from Jun 8, 2023

Conversation

hemanthmalla
Copy link
Member

@hemanthmalla hemanthmalla commented May 22, 2023

Currently, trigger related histogram metrics in pgk/ipam use the default prometheus histogram buckets. Resync operation in cloud providers like Azure tend to take a long time and the current buckets are inadequate to track changes in behavior. This commit extends the buckets to allow for measuring longer durations.

Currently, some metrics plateau at 10 secs
image

Reusing buckets defined in Kubernetes API server to measure request duration

@hemanthmalla hemanthmalla requested a review from a team as a code owner May 22, 2023 20:01
@hemanthmalla hemanthmalla requested a review from gandro May 22, 2023 20:01
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label May 22, 2023
Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

The change overall looks fine by me. But I don't know much about metric best practises. Is there any overlap with the ongoing work in #25256?

@hemanthmalla hemanthmalla added the release-note/misc This PR makes changes that have no direct user impact. label May 23, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label May 23, 2023
@hemanthmalla
Copy link
Member Author

I don't think its related since we're only updating the histogram buckets. #25256 doesn't seem to touch bucket values.

@hemanthmalla
Copy link
Member Author

hemanthmalla commented May 23, 2023

/test

Job 'Cilium-PR-K8s-1.26-kernel-net-next' failed:

Click to show.

Test Name

K8sDatapathServicesTest Checks N/S loadbalancing With host policy Tests NodePort

Failure Output

FAIL: Can not connect to service "tftp://192.168.56.12:30528/hello" from outside cluster (1/10)

Jenkins URL: https://jenkins.cilium.io/job/Cilium-PR-K8s-1.26-kernel-net-next/95/

If it is a flake and a GitHub issue doesn't already exist to track it, comment /mlh new-flake Cilium-PR-K8s-1.26-kernel-net-next so I can create one.

Then please upload the Jenkins artifacts to that issue.

@hemanthmalla
Copy link
Member Author

@gandro net-next and test-runtime seems to be flaky now ? I don't see the corresponding Jenkins jobs for failures. Are we cleaning up jenkins jobs in less than a day now ?

@gandro
Copy link
Member

gandro commented May 25, 2023

@gandro net-next and test-runtime seems to be flaky now ? I don't see the corresponding Jenkins jobs for failures. Are we cleaning up jenkins jobs in less than a day now ?

We had a Jenkins outage last week and had to re-provision all Jenkins instances. During that process, we accidentally fell back to a Jenkins config to only retained the last 30 jobs. That has now been fixed to retain job logs up to 15 days. If you rerun those pipelines, you should see be able to access the failure now.

Currently, trigger related histogram metrics in pgk/ipam use the default
prometheus histogram buckets. Resync operation in cloud providers like
Azure tend to take a long time and the current buckets are inadequate to
track changes in behavior. This commit extends the buckets to allow for
measuring longer durations.

Signed-off-by: Hemanth Malla <hemanth.malla@datadoghq.com>
@hemanthmalla hemanthmalla force-pushed the hmalla/ipam_histogram_buckets branch from 12f34e3 to 3410629 Compare June 5, 2023 21:26
@hemanthmalla
Copy link
Member Author

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 7, 2023
@dylandreimerink dylandreimerink merged commit 6df9d10 into cilium:main Jun 8, 2023
61 checks passed
antonipp added a commit to DataDog/cilium that referenced this pull request Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants