Kibana monitoring_collection with GET method deprecated

Hello all,

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

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

Kibana keeps logging

[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?

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

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

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

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