May 2019
Intermediate to advanced
442 pages
11h 36m
English
So far, we've deployed the Operator and used it to deploy Prometheus itself. Now, we're ready to add targets and go over the logic of how to generate them.
Before proceeding, we'll also deploy an application to increase the number of available targets. For this, we'll be using the Hey application once again, this time using the default namespace:
apiVersion: apps/v1kind: Deploymentmetadata: name: hey-deployment namespace: defaultspec: replicas: 3 selector: matchLabels: app: hey
Pay close attention to the labels and the port name, as shown in the following code block; they'll be used by the service monitor:
template: metadata: labels: app: hey spec: containers: - name: hey image: kintoandar/hey:v1.0.1 ports:
Read now
Unlock full access