<p>I am new to Kubernetes. I created a service monitor, I am wondering how can I find the created service monitor.
The service monitor is created successfully.
<a href="https://i.stack.imgur.com/O0XBi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O0XBi.png" alt="enter image description here" /></a></p>
<p>When I use <code>kubectl get services</code>, I can't find the created service monitor. Can i get some help?</p>
<p>Thanks!</p>

kevin
<p>ServiceMonitor is a custom resource provided by the Prometheus Operator and it's name inside Kubernetes is <code>servicemonitor</code>. So you have to list you ServiceMonitors with:</p>
<pre class="lang-sh prettyprint-override"><code>kubectl get servicemonitors
</code></pre>
<p>Or you can list the specific ServiceMonitor you created with:</p>
<pre class="lang-sh prettyprint-override"><code>kubectl get servicemonitor servicemonitor-sms-config-services
</code></pre>
