Skip to content

Commit 90da571

Browse files
committed
Move ServiceMonitor into its own section instead of using tabs
1 parent 12c01f1 commit 90da571

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

docs/content/logging-and-monitoring/prometheus.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ The Ingress Controller exposes a number of metrics in the [Prometheus](https://p
1515

1616
## Enabling Metrics
1717

18-
{{<tabs name="apply-and-configure-prometheus-resource">}}
19-
20-
{{%tab name="Using Manifest"%}}
18+
### Using Manifest
2119

2220
If you're using *Kubernetes manifests* (Deployment or DaemonSet) to install the Ingress Controller, to enable Prometheus metrics:
2321

@@ -39,13 +37,13 @@ If you're using *Kubernetes manifests* (Deployment or DaemonSet) to install the
3937
prometheus.io/scheme: http
4038
```
4139
42-
{{%/tab%}}
43-
44-
{{%tab name="Using Helm"%}}
40+
### Using Helm
4541
4642
If you're using *Helm* to install the Ingress Controller, to enable Prometheus metrics, configure the `prometheus.*` parameters of the Helm chart. See the [Installation with Helm](/nginx-ingress-controller/installation/installation-with-helm) doc.
4743

48-
When deploying with *Helm*, you can also choose to deploy a `Service` and `ServiceMonitor` resource using the `prometheus.service.*` and `prometheus.serviceMonitor.*` parameters.
44+
### Using ServiceMonitor
45+
46+
When deploying with *Helm*, you can deploy a `Service` and `ServiceMonitor` resource using the `prometheus.service.*` and `prometheus.serviceMonitor.*` parameters.
4947
When these resources are deployed, Prometheus metrics exposed by the NGINX Ingress Controller can be captured and enumerated using a `Prometheus` resource alongside a Prometheus Operator deployment.
5048

5149
To view metrics captured this way, the following is required:
@@ -56,9 +54,6 @@ curl https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/$
5654
```
5755
* A working [Prometheus resource and Prometheus Operator](https://prometheus-operator.dev/docs/user-guides/getting-started/)
5856

59-
{{%/tab%}}
60-
61-
{{</tabs>}}
6257

6358
## Available Metrics
6459

0 commit comments

Comments
 (0)