This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
forked from ebauman/prometheus-rancher-exporter
-
Notifications
You must be signed in to change notification settings - Fork 7
Exporter can create performance problems at scale #33
Comments
moio
changed the title
Exporter can create problems at scale
Exporter can create performance problems at scale
Nov 2, 2023
When we set a short timer, a similar situation occurred (although our cluster size is not yet large) What i find is
prometheus-rancher-exporter/collector/collector.go Lines 260 to 280 in a61958c
|
Could this be solved by using watch handlers to get the current state then the watchers that just update the local cache? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am looking at a user case with ~1.4k one-node clusters managed by Rancher, and I see
prometheus-rancher-exporter
generating considerable Kubernetes API load, especially to retrieve cluster and node information.Here is an excerpt of the 10 slowest API calls within 8 minutes:
All are due to
prometheus-rancher-exporter
(actually all the way down to the top ~250 in the sample I observed).Unfortunately I do not know enough about the exporter's internals to suggest any solutions yet.
The text was updated successfully, but these errors were encountered: