Skip to content

Prometheus 2.44.0 vs 2.30.3 - why is it so much faster? #12518

Answered by bboreham
rejohnst asked this question in Q&A
Discussion options

You must be logged in to vote

All profiles are for 30 seconds.
shard1-pprof-before.gz shows 282 CPU-seconds, so 9.2 CPUs active.
shard1-pprof-after.gz shows 218 CPU-seconds, 6.4 CPUs active.
This is a bit less than the 15->6 you first mentioned, but still a decent drop.

In before we have 190s in scrapePool.Sync, plus 65 in background garbage-collection.
In after we have 118s in scrapePool.Sync, plus 50 in garbage-collection.

The detail confirms that #12048 and #12084 gave big improvements.

Even after this, nearly all the time is going into producing Labels to show in the 'dropped targets' view, which I have proposed to restrict. When using Kubernetes this issue can be avoided by filtering targets using namespaces and …

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
11 replies
@rejohnst
Comment options

@rejohnst
Comment options

@bboreham
Comment options

@rejohnst
Comment options

@rejohnst
Comment options

Comment options

You must be logged in to vote
1 reply
@rejohnst
Comment options

Answer selected by bwplotka

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants