# DynaKube metrics/ingest method POST is not supported

**URL:** <https://community.dynatrace.com/t/dynakube-metrics-ingest-method-post-is-not-supported/40024>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, oneagent, kubernetes, dynatrace-api\
**Created:** [June 1, 2023, 9:52am UTC](https://community.dynatrace.com/t/dynakube-metrics-ingest-method-post-is-not-supported/40024 "2023-06-01T09:52:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobydavies](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@tobydavies](https://community.dynatrace.com/u/tobydavies)\
**Post date:** [June 1, 2023, 9:52am UTC](https://community.dynatrace.com/t/dynakube-metrics-ingest-method-post-is-not-supported/40024/1 "2023-06-01T09:52:28Z")

</div>

Hi,

I’ve followed this post:&nbsp;[https://community.dynatrace.com/t5/Dynatrace-API/Dynatrace-V2-Metrics-API-Kubernetes-How-to-configure-localhost/m-p/192808](https://community.dynatrace.com/post/192808)

But reached the same issue as the OP in that question, that the metrics ingest from the active gates responds with a 405. I’ve sent in metrics outside of kube with the same endpoint on a localhost:14499 OneAgent without issue, but here, the response is:

\<body\>Error: 405 HTTP method POST is not supported by this URL\<br/\>Uri: /metrics/ingest\<br/\>  
api/v2/metrics/ingest also fails, but with a 404.

What is the working combination to get metric ingest in DynaKube?

---

<div class="post-metadata">

**Author:** ![jonno56](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jonno56/32/13261_2.png) [@jonno56](https://community.dynatrace.com/u/jonno56)\
**Post date:** [June 1, 2023, 2:05pm UTC](https://community.dynatrace.com/t/dynakube-metrics-ingest-method-post-is-not-supported/40024/2 "2023-06-01T14:05:37Z")

</div>

In&nbsp;[https://github.com/Dynatrace/dynatrace-operator/blob/main/assets/samples/cloudNativeFullStack.yaml](https://github.com/Dynatrace/dynatrace-operator/blob/main/assets/samples/cloudNativeFullStack.yaml)

There was previous mention of metrics-ingest module for the Activegate:

> <https://github.com/Dynatrace/dynatrace-operator/commit/962a6181246162d02aefcbc88e7bd2a77ea3af79>

As you can see in that PR, it was removed.

I’m not sure when this feature will be supported by Dynatrace

---

<div class="post-metadata">

**Author:** ![tobydavies](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@tobydavies](https://community.dynatrace.com/u/tobydavies)\
**Post date:** [June 1, 2023, 6:43pm UTC](https://community.dynatrace.com/t/dynakube-metrics-ingest-method-post-is-not-supported/40024/3 "2023-06-01T18:43:06Z")

</div>

Hi,

Thanks for your response, but these just look like they’ve removed it from their samples, not the active gate. the comments in the code also suggest that is it still a capability of the active gate, even if it is not employed in the sample application.

for instance the code in the commit still has the following:

# Specifies which capabilities will be enabled on ActiveGate instances  
# The following capabilities can be set:  
# - routing  
# - kubernetes-monitoring  
# - metrics-ingest  
# - dynatrace-api

Is there an official deprecation announcement of the capability?

Cheers,

Toby

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [June 1, 2023, 9:55pm UTC](https://community.dynatrace.com/t/dynakube-metrics-ingest-method-post-is-not-supported/40024/4 "2023-06-01T21:55:50Z")

</div>

This module is very much still in use and supported, the samples indeed just moved folders:

dynatrace-operator/config/samples → dynatrace-operator/assets/samples

Please raise a ticket or open a new question in case of issues.

---

<div class="post-metadata">

**Author:** ![tobydavies](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@tobydavies](https://community.dynatrace.com/u/tobydavies)\
**Post date:** [July 13, 2023, 11:12pm UTC](https://community.dynatrace.com/t/dynakube-metrics-ingest-method-post-is-not-supported/40024/5 "2023-07-13T23:12:39Z")

</div>

For the record, I did not accept this answer, someone accepted it for me. I do not consider “ask someone else” an acceptable answer.
