I have installed the operator(https://github.com/Dynatrace/dynatrace-operator) and then added metrics-ingest to the dynakube, but now, how can I use the metrics ingestion endpoint ?
I'd like to create custom metrics from my deployments, so from my pods I will call the OneAgent metrics api.
Should I call the ActiveGate service ? Should the http://localhost:14499/metrics/ingest be available on my pods ?
I'm stuck on what do now.
Hi, I'm gonna explain my use case:
I'm gonna use OpentelemetryCollector with dynatraceexporter(https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/dynatraceexport...)
So I need to configure the url when it is not possible to use the default value (localhost:14499)
I'm gonna talk to our devops to test that connection using nodeIp:14499.
I'm testing locally:
kubectl get node -o wide
Then I tried that inside a pod:
curl --data "alef.oneagent,cpu=1 55" http://192.168.65.4:14499/metrics/ingest \
-H "Content-Type: text/plain; charset=utf-8"
The response was Connection Refused.
I also tried that curl inside oneagent pod, and it worked!
I tried to call the SaaS and ActiveGate endpoints, but I needed to send the auth header and add the dynatrace attributes(dt.host, dt.entity, etc). manually 😞
Calling the oneagent endpoint all metrics are already tagged with those default attributes.
For example there are receivers on OpenTelemetry Collector(https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/kafkametricsrec...) that I cant modify to add those attributes.
So, my first try was to use OneAgent metrics to centralize all metrics ingestion...
Yes, i'm using that "Zero configuration" strategy. But it sends the metrics to http://localhost:14499/metrics/ingest(OneAgent metrics api)
But the pod(otel collector) cant call the localhost:14499, so I was searching for a solution that I could call OneAgent APIs. I was planning to create a sidecard to redirect the http://localhost:14499/metrics/ingest to a that new endpoint.
But I dont know how to call the OneAgent Metrics api outside the oneagent pod.