grafana / grafana/pyroscope-java

Add an ability to not start the agent on some instances

Offen
#154 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
126
Forks
48
Ø Merge
4 T. 14 Std.
Gemergte PRs (30 T.)
5

Beschreibung

We are currently integrating the Pyroscope Java agent into our infrastructure, and it works great. However, we have encountered a problem: In cases of a large fleet of pods (1000+) and aggressive sampling, we generate too much profiling data for the server to handle. Additionally, the 2-3% profiling overhead becomes a significant resource drain.

I propose adding an option (both in the SDK and as an environment variable) named **PYROSCOPE_CLUSTER_RATIO** with a value in percentage (0-100). This feature would enable the agent only if a randomly generated value in an inclusive range 0-100 **is less than the provided percentage**.

This feature will allow users to save resources on both the server and client sides while still maintaining statistically viable continuous profiling data for large deployments.

I would be glad to help implement this feature if you consider it appropriate.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne am Konfigurationseinstiegspunkt des Java agent SDK und seiner Verarbeitung von Umgebungsvariablen. Verfolge, wie der Agent-Start aktiviert wird, definiere anschließend das Verhalten von PYROSCOPE_CLUSTER_RATIO für Werte von 0 bis 100 und überprüfe, dass der Agent nur aktiviert wird, wenn die zufällige Auswahl unter dem konfigurierten Prozentsatz liegt, wobei sowohl die SDK- als auch die Umgebungsvariablenkonfiguration abgedeckt werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
observability-sre
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.