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.

Options

Usage

anjuna-metrics-proxy --enclave-name <enclave-name> [OPTIONS...]

--enclave-name

(Recommended) Custom name assigned to the enclave by the user, used to uniquely identify an enclave (default: enclave)

--exporter-port

The port where the HTTP server will run to expose metrics on the parent instance (default: 59090)

--udp-port

The UDP port that the proxy will pick when communicating with the enclave (default: 0, i.e. pick a random available port)

Exit status

  • 0 on success

  • > 0 on error