Skip to content

Commit 8e6d43c

Browse files
fix(docs): Make sure helm Grafana example works as expected. (#3753) (#3754)
The problem with the grafana helm is that we don't have the profiling port exposed as part of the containerPorts of the container. So I had to reuse/abuse the gossip-tcp port in order to get it to be scraped. It also was using the wrong annotation of "pyroscope.grafana.com" instead of "profiles.grafana.com". Fixes #3523 (cherry picked from commit 6045daa) Co-authored-by: Christian Simon <[email protected]>
1 parent 96a1350 commit 8e6d43c

File tree

1 file changed

+7
-3
lines changed
  • docs/sources/deploy-kubernetes

1 file changed

+7
-3
lines changed

docs/sources/deploy-kubernetes/helm.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,13 @@ Use a custom namespace so that you don't have to overwrite the default namespace
128128
--set env.GF_AUTH_ANONYMOUS_ORG_ROLE=Admin \
129129
--set env.GF_DIAGNOSTICS_PROFILING_ENABLED=true \
130130
--set env.GF_DIAGNOSTICS_PROFILING_ADDR=0.0.0.0 \
131-
--set env.GF_DIAGNOSTICS_PROFILING_PORT=6060 \
132-
--set-string 'podAnnotations.pyroscope\.grafana\.com/scrape=true' \
133-
--set-string 'podAnnotations.pyroscope\.grafana\.com/port=6060'
131+
--set env.GF_DIAGNOSTICS_PROFILING_PORT=9094 \
132+
--set-string 'podAnnotations.profiles\.grafana\.com/cpu\.scrape=true' \
133+
--set-string 'podAnnotations.profiles\.grafana\.com/cpu\.port=9094' \
134+
--set-string 'podAnnotations.profiles\.grafana\.com/memory\.scrape=true' \
135+
--set-string 'podAnnotations.profiles\.grafana\.com/memory\.port=9094' \
136+
--set-string 'podAnnotations.profiles\.grafana\.com/goroutine\.scrape=true' \
137+
--set-string 'podAnnotations.profiles\.grafana\.com/goroutine\.port=9094'
134138
```
135139

136140
For details, see [Deploy Grafana on Kubernetes](/docs/grafana/latest/setup-grafana/installation/kubernetes/).

0 commit comments

Comments
 (0)