Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/examples/prometheus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ kubectl apply -f rabbitmq-podmonitor.yaml

Alternatively, if you deployed the Prometheus Operator via the [kube-prometheus-stack](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack) Helm chart,
set the values in [kube-prometheus-stack-values.yaml.example](kube-prometheus-stack-values.yaml.example) when installing / upgrading the Helm chart.

---
## TLS Endpoints

With `TLS` enabled you should use `-tls` files to deploy the secure prometheus endpoints.
_Note_: The standard Prometheus (15692) port is disabled with the option `disableNonTLSListeners=true`.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Version > 1.3.0
---
additionalPodMonitors:
- name: rabbitmq
podMetricsEndpoints:
- port: prometheus-tls
scheme: https
tlsConfig:
insecureSkipVerify: true
selector:
matchLabels:
app.kubernetes.io/component: rabbitmq
namespaceSelector:
any: true
16 changes: 16 additions & 0 deletions docs/examples/prometheus/rabbitmq-podmonitor-tls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Version > 1.3.0
---
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: rabbitmq
spec:
podMetricsEndpoints:
- interval: 15s
scheme: https
port: prometheus-tls
selector:
matchLabels:
app.kubernetes.io/component: rabbitmq
namespaceSelector:
any: true