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
* Expose prometheus compatible metrics endpoint
* add docs for prometheus endpoint
* Add explicit callout for additional options for metrics command
* move example daemonset out of README to it's own file
* rename to metrics_server.go
* copyright and license header
* rename shortenMetricName to sanitizeMetricName to match what it does
* remove extra log message
* remove extra log message
* remove debug message
* only create prometheus metrics if enabled
* fix conditional for updating prom metrics in printMetricsAsync
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,9 @@ If neither sudo nor root access is available, an administrator must apply the fo
52
52
53
53
Once the configuration changes are applied, use the `--noroot` flag on the command line, for example, `perfspect metrics --noroot`.
54
54
55
+
##### Prometheus Endpoint
56
+
The `metrics` command can expose metrics via a Prometheus compatible `metrics` endpoint. This allows integration with Prometheus monitoring systems. To enable the Prometheus endpoint, use the `--prometheus-server` flag. By default, the endpoint listens on port 9090. The port can be changed using the `--prometheus-server-addr` flag. Run `perfspect metrics --prometheus-server`. See the [example daemonset](docs/perfspect-daemonset.md) for deploying in Kubernetes.
57
+
55
58
See `perfspect metrics -h` for the extensive set of options and examples.
This is an example DaemonSet for exposing PerfSpect metrics as a prometheus compatible metrics endpoint. This example assumes the use of Google Kubernetes Engine (GKE) and using the `PodMonitoring` resource to collect metrics from the metrics endpoint.
0 commit comments