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
@@ -164,6 +164,36 @@ The AddonOperator is instrumented with the prometheus-client provided by control
164
164
165
165
See [Quickstart](https://github.com/openshift/addon-operator#quickstart--develop-integration-tests) for instructions on how to setup a local monitoring stack for development / testing.
166
166
167
+
## How to: Test metrics locally
168
+
169
+
The Addon Operator metrics can be exposed locally by port forwarding the `addon-operator-metrics` service which allows users to access the service running inside a Kubernetes cluster from their local machine.
170
+
171
+
- Run Addon Operator locally:
172
+
173
+
```bash
174
+
➜ export ENABLE_MONITORING=true
175
+
176
+
➜ make test-setup
177
+
```
178
+
179
+
- Ensure you have the `KUBECONFIG` environment variable setup:
0 commit comments