summaryrefslogtreecommitdiffstats
path: root/docs/monitoring.rst
blob: 44b01e3dda9e2538f987278dc421523427906eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
##########
Monitoring
##########

************
Installation
************

Currently, we use the Istio build-in prometheus addon to install prometheus::

    cd <istio-release-path>
    kubectl apply -f install/kubernetes/addons/prometheus.yaml

********
Validate
********

Setup port-forwarding for prometheus by executing the following command::

    kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=prometheus -o jsonpath='{.items[0].metadata.name}') 9090:9090 &

Run the scripts in ``clover/monitoring`` validates prometheus installation::

    python clover/monitoring/validate.py

It validates the installation with the following criterias

#. [DONE] prometheus pod is in Running state
#. [DONE] prometheus is conneted to monitoring targets
#. [TODO] test collecting telemetry data from istio
#. [TODO] TBD