# Kibana monitoring\_collection with GET method deprecated

**URL:** <https://discuss.elastic.co/t/kibana-monitoring-collection-with-get-method-deprecated/371445>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [December 4, 2024, 7:33am UTC](https://discuss.elastic.co/t/kibana-monitoring-collection-with-get-method-deprecated/371445 "2024-12-04T07:33:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![natharran](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@natharran](https://discuss.elastic.co/u/natharran)\
**Post date:** [December 4, 2024, 7:33am UTC](https://discuss.elastic.co/t/kibana-monitoring-collection-with-get-method-deprecated/371445/1 "2024-12-04T07:33:11Z")

</div>

Hello all,

after the last upgrade to Kibana 8.16.1 under ECK if I have metrics collection enabled like this:

```auto
monitoring:
  metrics:
    elasticsearchRefs:
    - name: my-es
      namespace: my-ns

```

Kibana keeps logging

```auto
[2024-12-04T07:18:51.563+00:00][WARN][http.server.kbn-internal-api-restricted] Access to uri [/api/monitoring_collection/node_actions] with method [get] is deprecated
[2024-12-04T07:18:54.200+00:00][WARN][http.server.kbn-internal-api-restricted] Access to uri [/api/monitoring_collection/node_rules] with method [get] is deprecated
[2024-12-04T07:18:54.490+00:00][WARN][http.server.kbn-internal-api-restricted] Access to uri [/api/monitoring_collection/cluster_rules] with method [get] is deprecated

```

over and over again. The "metricbeat" container that gets deployed via this doesn't have any default values overwritten.

Is there a way to fix this?

---

<div class="post-metadata">

**Author:** ![piotrp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/piotrp/32/108124_2.png) [@piotrp](https://discuss.elastic.co/u/piotrp)\
**Post date:** [December 9, 2024, 11:26am UTC](https://discuss.elastic.co/t/kibana-monitoring-collection-with-get-method-deprecated/371445/2 "2024-12-09T11:26:32Z")

</div>

Not really, looks like metrics API got "deprecated" by accident in 8.15: [[Monitoring] Set explicit access option for internal API by tonyghiani · Pull Request #186882 · elastic/kibana · GitHub](https://github.com/elastic/kibana/pull/186882)

I think you can work around this by filtering out these logs:

```yaml
logging.loggers:
  - name: http.server.kbn-internal-api-restricted
    level: error

```

---

<div class="post-metadata">

**Author:** ![natharran](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@natharran](https://discuss.elastic.co/u/natharran)\
**Post date:** [December 10, 2024, 1:31pm UTC](https://discuss.elastic.co/t/kibana-monitoring-collection-with-get-method-deprecated/371445/3 "2024-12-10T13:31:26Z")

</div>

This seems to do the trick, thank you a lot.
