1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-21 11:48:53 +00:00

Docs: Update Getting-Started examples

Updates getting-started example yaml scripts to match
their declared purpose - creates 2 new snippets to
achieve this.

Signed-off-by: GuyTempleton <guy.templeton@skyscanner.net>
This commit is contained in:
GuyTempleton 2019-11-19 12:04:25 +00:00
parent e52713eec7
commit 5fef8909b5
No known key found for this signature in database
GPG key ID: 1293A624D42B68E0
4 changed files with 31 additions and 5 deletions

View file

@ -322,7 +322,7 @@ For more information, see the [Prometheus Operator RBAC guide][prom-rbac].
A Prometheus object defines the `serviceMonitorSelector` to specify which ServiceMonitors should be included. Above the label `team: frontend` was specified, so that's what the Prometheus object selects by.
[embedmd]:# (../../example/user-guides/getting-started/prometheus.yaml)
[embedmd]:# (../../example/user-guides/getting-started/prometheus-service-monitor.yaml)
```yaml
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
@ -347,7 +347,7 @@ This enables the frontend team to create new ServiceMonitors and Services which
Finally, a Prometheus object defines the `podMonitorSelector` to specify which PodMonitors should be included. Above the label `team: frontend` was specified, so that's what the Prometheus object selects by.
[embedmd]:# (../../example/user-guides/getting-started/prometheus.yaml)
[embedmd]:# (../../example/user-guides/getting-started/prometheus-pod-monitor.yaml)
```yaml
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
@ -355,7 +355,7 @@ metadata:
name: prometheus
spec:
serviceAccountName: prometheus
serviceMonitorSelector:
podMonitorSelector:
matchLabels:
team: frontend
resources:
@ -404,7 +404,7 @@ This API access is disabled by default and can be toggled using this boolean fla
> user is advised to add additional authentication authorization via a proxy to
> ensure only clients authorized to perform these actions can do so.
[embedmd]:# (../../example/user-guides/getting-started/prometheus.yaml)
[embedmd]:# (../../example/user-guides/getting-started/prometheus-admin-api.yaml)
```yaml
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
@ -418,7 +418,7 @@ spec:
resources:
requests:
memory: 400Mi
enableAdminAPI: false
enableAdminAPI: true
```
Further reading:

View file

@ -0,0 +1,13 @@
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
name: prometheus
spec:
serviceAccountName: prometheus
serviceMonitorSelector:
matchLabels:
team: frontend
resources:
requests:
memory: 400Mi
enableAdminAPI: true

View file

@ -0,0 +1,13 @@
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
name: prometheus
spec:
serviceAccountName: prometheus
podMonitorSelector:
matchLabels:
team: frontend
resources:
requests:
memory: 400Mi
enableAdminAPI: false