You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 19, 2023. It is now read-only.
`phlare.grafana.com/port` should be set to the port that your pod serves the `/debug/pprof/` endpoints from. Note that the values for `phlare.grafana.io/scrape` and `phlare.grafana.io/port` must be enclosed in double quotes to ensure it is represented as a string.
203
+
The full list of profile types supported by annotations is `cpu`, `memory`, `goroutine`, `block` and `mutex`.
204
+
205
+
The following table describes the annotations:
206
+
207
+
| Annotation | Description | Default |
208
+
| ---------- | ----------- | ------- |
209
+
| `profiles.grafana.com/<profile-type>.scrape` | Whether to scrape the profile type. | `false` |
210
+
| `profiles.grafana.com/<profile-type>.port` | The port to scrape the profile type from. | `` |
211
+
| `profiles.grafana.com/<profile-type>.port_name` | The port name to scrape the profile type from. | `` |
212
+
| `profiles.grafana.com/<profile-type>.scheme` | The scheme to scrape the profile type from. | `http` |
213
+
| `profiles.grafana.com/<profile-type>.path` | The path to scrape the profile type from. | default golang path |
214
+
215
+
By default, the port will be discovered using named port `http2` or ending with `-metrics` or `-profiles`.
216
+
This means that if you don't have a named port the scraping target will be dropped.
217
+
218
+
If you don't want to use the port name then you can use the `profiles.grafana.com/<profile-type>.port` annotation to statically specify the port number.
0 commit comments