Posting APM custom metrics from GKE via apm/metricFeed
search cancel

Posting APM custom metrics from GKE via apm/metricFeed

book

Article ID: 387727

calendar_today

Updated On:

Products

DX APM SaaS DX Application Performance Management DX Operational Observability

Issue/Introduction

In the past, we were able to post custom metrics to APM from GKE by posting to a UMA collector endpoint, something like this:

curl -i -H "Content-type: application/json" -X POST https://collector<endpoint>:8888/apm/metricFeed -d '{
"host": <pod name>
  "metrics": [
    {
      "type": "LongCounter",
      "name": "MyTest|RESTFul|LongCounter|Test2:Count",
      "value": "456"
    }
  ]
}' -k

However, when I try that now, I just receive a certificate error:

curl: (56) OpenSSL SSL_read: error:0A00045C:SSL routines::tlsv13 alert certificate required, errno 0

We currently have a workaround where we deploy a uma sidecar and send metrics to that, but it seems very inefficient to have to deploy a sidecar for every application pod.

Is there any other way to post custom metrics from applications running on GKE?  How to enable the port 8888 endpoint?

Environment

DX O2 SaaS, 2*

Cause

Only UMA Admin has been install, UMA team deployment is missing

uma-team has the metric endpoint enabled by default, it is exposed on port 8888.

 

Resolution

Install UMA Team deployment as per documentation
 

Additional Information