Skip to content

Commit 53d3f20

Browse files
authored
Update guestbook-logs-metrics-with-elk.md
The description was confusing. Moved around the text and removed duplicated/unnecessary parts.
1 parent 4b09e82 commit 53d3f20

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

content/en/docs/tutorials/stateless-application/guestbook-logs-metrics-with-elk.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,15 @@ kubectl create clusterrolebinding cluster-admin-binding \
6060
## Install kube-state-metrics
6161

6262
Kubernetes [*kube-state-metrics*](https://github.com/kubernetes/kube-state-metrics) is a simple service that listens to the Kubernetes API server and generates metrics about the state of the objects. Metricbeat reports these metrics. Add kube-state-metrics to the Kubernetes cluster that the guestbook is running in.
63-
64-
### Check to see if kube-state-metrics is running
65-
```shell
66-
kubectl get pods --namespace=kube-system | grep kube-state
67-
```
68-
### Install kube-state-metrics if needed
69-
7063
```shell
7164
git clone https://github.com/kubernetes/kube-state-metrics.git kube-state-metrics
7265
kubectl apply -f kube-state-metrics/examples/standard
73-
kubectl get pods --namespace=kube-system | grep kube-state-metrics
7466
```
75-
Verify that kube-state-metrics is running and ready
67+
68+
### Check to see if kube-state-metrics is running
7669
```shell
77-
kubectl get pods -n kube-system -l app.kubernetes.io/name=kube-state-metrics
70+
kubectl get pods --namespace=kube-system | grep kube-state
7871
```
79-
8072
Output:
8173
```shell
8274
NAME READY STATUS RESTARTS AGE

0 commit comments

Comments
 (0)