parca icon indicating copy to clipboard operation
parca copied to clipboard

document how to add an additional pprof scrape endpoint

Open brancz opened this issue 3 years ago • 2 comments

While Parca is capable of this, it is nowhere documented how to scrape for example an fgprof endpoint.

brancz avatar Apr 27 '22 13:04 brancz

for completeness this is an example config:

debug_info:
  bucket:
    type: "FILESYSTEM"
    config:
      directory: "./tmp"
  cache:
    type: "FILESYSTEM"
    config:
      directory: "./tmp"

scrape_configs:
  - job_name: "default"
    scrape_interval: "3s"
    scrape_timeout: "4s"
    static_configs:
      - targets: [ '127.0.0.1:7070' ]
    profiling_config:
      pprof_config:
        fgprof:
          enabled: true
          path: /debug/pprof/fgprof
          delta: true

brancz avatar Apr 27 '22 15:04 brancz

We added an example to our docs a while back, however, it might not be the best in terms of discoverability (given you opened this issue): https://www.parca.dev/docs/ingestion#alternative-approaches

metalmatze avatar Apr 28 '22 08:04 metalmatze