Skip to content

Add an independent switch for profiling endpoints #3377

Description

@tylercreller

Problem Statement

SpiceDB’s metrics server serves both Prometheus metrics and profiling endpoints:

  • /metrics
  • /debug/pprof/*
  • /debug/fgprof

There is currently no way to disable profiling while retaining metrics. --metrics-enabled=false disables the entire server, while the existing --pprof-*-profile-rate flags only control sampling.

Requested behavior

Add a profiling-specific option, preferably disabled by default:

--pprof-enabled=false

When disabled:

  • /debug/pprof/* and /debug/fgprof return 404.
  • /metrics and other metrics-server behavior remain unchanged.

Solution Brainstorm

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/proposalSomething fundamentally needs to change

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions