Monitoring

To enable monitoring support, add a monitor to the rv-example by editing the custom resource using kubectl:

kubectl edit rv rv-example

In the editor navigate to the spec section of the resource, add a monitorServices section with a monitor object, and then save or exit the editor to apply the changes:

spec:
monitorServices:
- name: monitor
gatewayServices:
...
Note: This is a YAML file, so you must use the correct formatting.

Once the monitor is running use kubectl to access the REST endpoint

kubectl exec monitor-0 -- curl --insecure \
https://localhost:7580/trns/v1/stats/summary

Or the Prometheus endpoint:

kubectl exec monitor-0 -- curl --insecure https://localhost:7580/metrics