doc issue related to monitor part

This commit is contained in:
Hui Chen 2018-09-20 15:45:39 +08:00
parent e7739bdf6f
commit be87141fe7
3 changed files with 6 additions and 6 deletions

View file

@ -38,5 +38,5 @@ data:
replacement: $1:$2
- source_labels: [__meta_kubernetes_service_name]
regex: prometheus-service
regex: prometheus-server
action: drop

View file

@ -94,7 +94,7 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: prometheus-service
name: prometheus-server
namespace: ingress-nginx
labels:
app.kubernetes.io/name: prometheus

View file

@ -32,7 +32,7 @@ clusterrole "prometheus-server" created
serviceaccount "prometheus-server" created
clusterrolebinding "prometheus-server" created
deployment "prometheus-server" created
service "prometheus-service" created
service "prometheus-server" created
```
### Prometheus Dashboard
@ -44,7 +44,7 @@ kubectl get svc -n ingress-nginx
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default-http-backend ClusterIP 10.103.59.201 <none> 80/TCP 3d
ingress-nginx NodePort 10.97.44.72 <none> 80:30100/TCP,443:30154/TCP,10254:32049/TCP 5h
prometheus NodePort 10.98.233.86 <none> 9090:32630/TCP 1m
prometheus-server NodePort 10.98.233.86 <none> 9090:32630/TCP 1m
```
Obtain the IP address of the nodes in the running cluster:
@ -77,8 +77,8 @@ kubectl get svc -n ingress-nginx
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default-http-backend ClusterIP 10.103.59.201 <none> 80/TCP 3d
ingress-nginx NodePort 10.97.44.72 <none> 80:30100/TCP,443:30154/TCP,10254:32049/TCP 5h
prometheus NodePort 10.98.233.86 <none> 9090:32630/TCP 10m
grafana NodePort 10.98.233.86 <none> 9090:31086/TCP 10m
prometheus-server NodePort 10.98.233.86 <none> 9090:32630/TCP 10m
grafana NodePort 10.98.233.87 <none> 3000:31086/TCP 10m
```
Open your browser and visit the following URL: _http://{node IP address}:{grafana-svc-nodeport}_ to load the Grafana Dashboard.