Skip to content

feat(fleetshard): add Pyroscope continuous profiling support#2670

Open
ebensh wants to merge 1 commit intomainfrom
ebenshet/fleetshard-pyroscope
Open

feat(fleetshard): add Pyroscope continuous profiling support#2670
ebensh wants to merge 1 commit intomainfrom
ebenshet/fleetshard-pyroscope

Conversation

@ebensh
Copy link
Copy Markdown
Collaborator

@ebensh ebensh commented Apr 20, 2026

Summary

  • Add opt-in Pyroscope push-based continuous profiling to fleetshard-sync
  • Configurable via PYROSCOPE_ENABLED, PYROSCOPE_SERVER_ADDRESS, PYROSCOPE_AUTH_TOKEN, and PYROSCOPE_APPLICATION_NAME env vars
  • Profiles CPU, memory (alloc/inuse), goroutines, mutex, and block contention; tags all profiles with cluster_id
  • Disabled by default; validation ensures server address is set when enabled

Test plan

  • Config tests for enabled/disabled/missing-address scenarios pass
  • go build ./fleetshard/... compiles cleanly
  • Deploy to dev cluster with Pyroscope instance, verify profiles appear in Pyroscope UI

🤖 Generated with Claude Code

Add opt-in Pyroscope integration to fleetshard-sync for push-based
continuous profiling. Controlled via environment variables:

- PYROSCOPE_ENABLED: enable/disable (default: false)
- PYROSCOPE_SERVER_ADDRESS: Pyroscope server URL (required when enabled)
- PYROSCOPE_AUTH_TOKEN: optional auth token
- PYROSCOPE_APPLICATION_NAME: app name tag (default: fleetshard-sync)

Profiles exported: CPU, alloc, inuse, goroutines, mutex, block.
Cluster ID automatically tagged on all profiles.
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 20, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ebensh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Comment thread fleetshard/main.go
pprofServer.Start()
defer pprofServer.Stop()

if config.Pyroscope.Enabled {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shall we disable/remove the standard pprof server?

@kovayur
Copy link
Copy Markdown
Contributor

kovayur commented Apr 20, 2026

It looks like changes to the Helm chart are missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants