Custom Metrics with Grafana & Prometheus

Prerequisites

  • A kubernetes cluster with kubectl configured

  • curl

Setup Seldon Core

Install Seldon Core as described in docs.

Then port-forward to that ingress on localhost:8003 in a separate terminal either with:

kubectl port-forward -n istio-system svc/istio-ingressgateway 8003:80
%%bash
kubectl create namespace seldon || echo "Seldon namespace already exists"
kubectl config set-context $(kubectl config current-context) --namespace=seldon
Error from server (AlreadyExists): namespaces "seldon" already exists


Seldon namespace already exists
Context "kind-ansible" modified.

Install Prometheus Operator

Deploy Example Model

Sent series of REST requests

Check Metrics (REST)

Send series GRPC requests

Check metrics (GRPC)

Check Custom Metrics

This model defines a few custom metrics in its .py class definition:

We will be checking value of mygaguge metrics.

Cleanup

Last updated

Was this helpful?