phlare
phlare copied to clipboard
Better documentation/default support for fgprof
Is your feature request related to a problem? Please describe.
I'd like to configure phlare to scrape fgprof like discribed here. But it failed (maybe due to a lack of scrape configuration skills of mine)
Describe the solution you'd like
It would be nice if the documentation would be clearer-
Additional context
Add any other context or screenshots about the feature request here.
values.yaml for helm chart:
phlare:
replicaCount: 1
persistence:
enabled: true # false
storageClassName: local-path
accessModes:
- ReadWriteOnce
size: 10Gi
structuredConfig:
storage:
backend: s3
s3:
access_key_id: xxx
bucket_name: phlare
endpoint: minio.minio.svc:9000
secret_access_key: xxx
insecure: true # undefined
scrape_configs:
- job_name: 'kubernetes-pods'
scrape_interval: "15s"
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels: [__meta_kubernetes_pod_annotation_phlare_grafana_com_scrape]
action: keep
regex: true
- source_labels: [__address__, __meta_kubernetes_pod_annotation_phlare_grafana_com_port]
action: replace
regex: (.+?)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
- action: labelmap
regex: __meta_kubernetes_pod_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
action: replace
target_label: namespace
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: pod
- source_labels: [__meta_kubernetes_pod_phase]
regex: Pending|Succeeded|Failed|Completed
action: drop
- job_name: 'default'
profiling_config:
pprof_config:
fgprof:
path: /debug/fgprof
delta: true
enabled: true