Hi dear community members,
I was very happy to see this feature coming with OA 1.269 (https://docs.dynatrace.com/docs/shortlink/release-notes-oneagent-sprint-269#enabled-event-ingest-on-oneagent-localhost-interface).
It took a while for me to test it, so I ended up testing it on trial SaaS Dynatrace environment after enabling it on environment level (Settings >> Extension Execution Controller >> Enable local HTTP Metric, Logs and Events Ingest API).
However, it works just 50%:
- I can inject metrics
- I get forbidden then I try it for events
I use VSC for injection.
Working request:
POST http://localhost:14499/metrics/ingest HTTP/1.1content-type: text/plain; charset=utf-8
cpu.temperature,cpu=1 55
Answer:
HTTP/1.1 202 Accepted Content-Type: application/json Server: EEC Connection: close Content-Length: 62
{ “error”: null, “linesOk”: 1, “linesInvalid”: 0 }
Failing request:
POST http://localhost:14499/events/ingest HTTP/1.1content-type: application/json; charset=utf-8
{“eventType”: “INFO”, “title”: “Test”}
Answer:
HTTP/1.1 403 Forbidden Content-Type: text/plain Server: EEC Connection: close Content-Length: 9 Forbidden
any idea? Has anybody manage to make it work? I was unable to find any documentation for this in DT docs…
Thanks in advance!
Ingrida