This implementation deploys a PM stack based on Prometheus Operator plus a series of exporters for monitoring the OSM nodes and third party software modules (Kafka, mongodb and mysql)
In a high level, it consists of two scripts that deploy/undeploy the required objects in a previously existing Kubernetes based OSM installation. Those scripts use already existing and freely available software: Helm, Kubernetes Operator and a set of exporters and dashboards pretty much standard. Helm server part (tiller) and charts deployed depends on Kubernetes version 1.15.x. Charts versions are pre-configured in an installation script and can be easily changed.
As a result, there will be 3 folders in Grafana:
pack will be installed.stable/prometheus-operator chart which is located at the default helm repository (https://kubernetes-charts.storage.googleapis.com/). This installs a set of basic metrics for CPU, memory, etc. of hosts and pods. It also includes grafana and dashboards.stable/prometheus-mongodb-exporter chart, which is located at the default helm repository (https://kubernetes-charts.storage.googleapis.com/).stable/prometheus-mysql-exporter chart which is located at the default helm repository (https://kubernetes-charts.storage.googleapis.com/).We use the following versions:
Note: This implementation is dependent on the Kubernetes OSM deployment, and the installation script must be executed AFTER the Kubernetes deployment has been completed. Notice that it is not applicable to the basic docker deployment.
usage: ./install_osm_k8s_monitoring.sh [OPTIONS] Install OSM Monitoring OPTIONS -n <namespace> : use specified kubernetes namespace - default: monitoring -s <service_type>: service type (ClusterIP|NodePort|LoadBalancer) - default: NodePort --debug : debug script --dump : dump arguments and versions -h / --help : print this help
To uninstall the utility you must use the installation script.
./uninstall_osm_k8s_monitoring.sh
It will uninstall all components of this utility. To see the options type --help.
usage: ./uninstall_osm_k8s_monitoring.sh [OPTIONS] Uninstall OSM Monitoring OPTIONS -n <namespace>: use specified kubernetes namespace - default: monitoring --helm : uninstall tiller --debug : debug script -h / --help : print this help
To view the WEB with the different dashboards it is necessary to connect to the service "grafana" installed with this utility and view the NodePort that uses. If the utility is installed with the default namespace "monitoring" you must type this:
kubectl get all --namespace monitoring
You must see the NodePort (greater than 30000) that uses the grafana service and type in your WEB browser:
http://<ip_your_osm_host>:<nodeport>