docs: update yaml file link for prometheus deployment

Update link address of yaml file refer to kata 2.0-dev branch.

Fixes: #676

Signed-off-by: zhanghj <zhanghj.lc@inspur.com>
This commit is contained in:
zhanghj 2020-09-06 21:55:00 -04:00
parent 677c87d248
commit 2019f00e2c

View File

@ -34,7 +34,7 @@ Also you should ensure that `kubectl` working correctly.
Start Prometheus by utilizing our sample manifest: Start Prometheus by utilizing our sample manifest:
``` ```
$ kubectl apply -f https://raw.githubusercontent.com/kata-containers/documentation/master/how-to/data/prometheus.yml $ kubectl apply -f https://raw.githubusercontent.com/kata-containers/kata-containers/2.0-dev/docs/how-to/data/prometheus.yml
``` ```
This will create a new namespace, `prometheus`, and create the following resources: This will create a new namespace, `prometheus`, and create the following resources:
@ -60,7 +60,7 @@ go_gc_duration_seconds{quantile="0.75"} 0.000229911
`kata-monitor` can be started on the cluster as follows: `kata-monitor` can be started on the cluster as follows:
``` ```
$ kubectl apply -f https://raw.githubusercontent.com/kata-containers/documentation/master/how-to/data/kata-monitor-daemontset.yml $ kubectl apply -f https://raw.githubusercontent.com/kata-containers/kata-containers/2.0-dev/docs/how-to/data/kata-monitor-daemonset.yml
``` ```
This will create a new namespace `kata-system` and a `daemonset` in it. This will create a new namespace `kata-system` and a `daemonset` in it.
@ -73,7 +73,7 @@ Once the `daemonset` is running, Prometheus should discover `kata-monitor` as a
Run this command to run Grafana in Kubernetes: Run this command to run Grafana in Kubernetes:
``` ```
$ kubectl apply -f https://raw.githubusercontent.com/kata-containers/documentation/master/how-to/data/grafana.yml $ kubectl apply -f https://raw.githubusercontent.com/kata-containers/kata-containers/2.0-dev/docs/how-to/data/grafana.yml
``` ```
This will create deployment and service for Grafana under namespace `prometheus`. This will create deployment and service for Grafana under namespace `prometheus`.
@ -99,7 +99,7 @@ You can import this dashboard using Grafana UI, or using `curl` command in conso
$ curl -XPOST -i localhost:3000/api/dashboards/import \ $ curl -XPOST -i localhost:3000/api/dashboards/import \
-u admin:admin \ -u admin:admin \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{\"dashboard\":$(curl -sL https://raw.githubusercontent.com/kata-containers/documentation/master/how-to/data/dashboard.json )}" -d "{\"dashboard\":$(curl -sL https://raw.githubusercontent.com/kata-containers/kata-containers/2.0-dev/docs/how-to/data/dashboard.json )}"
``` ```
## References ## References