anjuna-metrics-proxy
anjuna-metrics-proxy --enclave-name <enclave-name> [OPTIONS...]
A proxy that exposes metrics, such as average CPU and memory usage, from the AWS Nitro Enclave to the parent instance. This is especially useful in the context of Kubernetes to automatically scale workloads.
Metrics are exposed on the port specified by --exporter-port
.
The metrics HTTP endpoint is /metrics
.
anjuna-metrics-proxy
must be run prior to starting an enclave so that metrics are exported.
In order to clean up resources when you terminate an enclave,
you should kill the anjuna-metrics-proxy
after terminating an enclave.
When restarting an enclave,
it is important to stop and start anjuna-metrics-proxy as described above.
|
The enclave may fail to detect the anjuna-metrics-proxy if you run run-enclave immediately
after running anjuna-metrics-proxy due to a known race condition. For now,
you can add a three-second delay between the two commands using sleep 3 .
This behavior will be fixed in a future release.
|