Monitoring
Installing kube-prometheus-stack in the same Kubernetes cluster that hosts the Seldon Enterprise Platform.
kube-prometheus, also known as Prometheus Operator, is a popular open-source project that provides complete monitoring and alerting solutions for Kubernetes clusters. It combines tools and components to create a monitoring stack for Kubernetes environments.
The Seldon Enterprise Platform, along with any deployed models, automatically exposes metrics to Prometheus. By default, certain alerting rules are pre-configured, and an alertmanager instance is included.
You can install kube-prometheus to monitor Seldon components, and ensure that the appropriate ServiceMonitors are in place for Seldon deployments. The analytics component is configured with the Prometheus integration. The monitoring for Seldon Enterprise Platform is based on the Prometheus Operator and the related PodMonitor and PrometheusRule resources.
Monitoring the model deployments in Seldon Enterprise Platform involves:
Prerequisites
Installing kube-prometheus
Download the seldon-deploy-install.tar file that contains required installation resources. For example, to download the installation resources for version 2.4.0 of Seldon Enterprise Platform run the following:
Extract the contents of the seldon-deploy-install.tar file.
Create a namespace for the monitoring components of Seldon Enterprise Platform.
Configuring monitoring for Seldon Enterprise Platform
To configure monitoring create a dedicated PodMonitor and PrometheusRule resources. Copy the installation resource files from the seldon-deploy-install/reference-configuration/metrics/ directory to the current directory.
Apply the configurations to the Kubernetes cluster that is running the Seldon Enterprise Platform.
When the configuration is complete, you should see this:
Get the Pod that is running Seldon Enterprise Platform in the cluster and save it as $POD_NAME.
You can use port-forwarding to access your application locally.
Open your browser and navigate to http://127.0.0.1:8000/seldon-deploy/ to access Seldon Enterprise Platform.
Next
You may now be able to check the status of Seldon components in Prometheus:
Open your browser and navigate to http://127.0.0.1:9090/ to access Prometheus UI from outside the cluster.
Go to Status and select Targets.
The status of all the endpoints and the scrape details are displayed.