Monitoring

Metrics are available at $ENDPOINT/metrics/v2/values, e.g.:

$ curl -s --cert data-plane-public-cert.pem --key data-plane-private-key.pem \
    'https://cord-19.vespa-team.aws-us-east-1c.public.vespa.oath.cloud/metrics/v2/values' 

Use jq to extract relevant metrics::

$ curl -s --cert data-plane-public-cert.pem --key data-plane-private-key.pem \
    'https://cord-19.vespa-team.aws-us-east-1c.public.vespa.oath.cloud/metrics/v2/values' | \
    jq -r -c '.nodes[] | .hostname as $h | select(.services[].metrics[].values."content.proton.documentdb.documents.total.last") |'\
'.services[].metrics[] | select(.values."content.proton.documentdb.documents.total.last") |'\
'[$h, .dimensions.documenttype, .values."content.proton.documentdb.documents.total.last"] | @tsv'
  
h123a.prod.aws-us-east-1c.vespa-external.aws.oath.cloud	doc	127518
h456a.prod.aws-us-east-1c.vespa-external.aws.oath.cloud	doc	127518

See vespa.ai monitoring and vespa.ai metrics for details.

AWS Cloudwatch

Refer to the metrics-emitter.