# AutoDiscover ServiceMonitor CRD on Kubernetes

**URL:** https://discuss.elastic.co/t/autodiscover-servicemonitor-crd-on-kubernetes/286642
**Category:** Beats
**Tags:** metricbeat
**Created:** [October 13, 2021, 3:28pm UTC](https://discuss.elastic.co/t/autodiscover-servicemonitor-crd-on-kubernetes/286642 "2021-10-13T15:28:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![julianxhokaxhiu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julianxhokaxhiu/32/113700_2.png) [@julianxhokaxhiu](https://discuss.elastic.co/u/julianxhokaxhiu)
#### Post date: [October 13, 2021, 3:28pm UTC](https://discuss.elastic.co/t/autodiscover-servicemonitor-crd-on-kubernetes/286642/1 "2021-10-13T15:28:27Z")

</div>

Hi,

I have a question about Metricsbeat. I've seen in the official documentation that the service supports AutoDiscovery which is great ( [Autodiscover | Metricbeat Reference [7.15] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/current/configuration-autodiscover.html) ).

Officially it supports Nodes, Pods and Services. Would it be possible to support the ServiceMonitor CRD manifest type too? I'd be happy to contribute with a Go patch if required, but I'd need some help to understand what to patch on the (official?) Metricbeats Github repository ( [beats/metricbeat at master · elastic/beats · GitHub](https://github.com/elastic/beats/tree/master/metricbeat) ).

Supporting this manifest type would solve once and for all the scenario where Charts do deploy this service type, thinking you'll pair them with Prometheus and ensure we can still forward metrics to Elasticsearch through Metricsbeat.

Thank you in advance,  
Julian

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 10, 2021, 5:29pm UTC](https://discuss.elastic.co/t/autodiscover-servicemonitor-crd-on-kubernetes/286642/2 "2021-11-10T17:29:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
