First install prometheus:
# serviceMonitorSelectorNilUsesHelmValues allow to monitor all serviceMonitors
helm install --version "61.3.1" prometheus-stack prometheus-community/kube-prometheus-stack -n monitoring --set prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues=false
Then ServiceMonitor-example
contains an example for a monitoring application
kubectl apply -f Prometheus/ServiceMonitor-example
cf. Dockerfile
TODO: delete google deps and retry
TODO: check prom conf in conf/
Check spark-prom/spark-pi-prometheus.yaml
then launch a pod with the above image
TODO: write port-forward and curl command
Work in progress in spark-prom
See https://github.com/kubeflow/spark-operator/tree/master/examples
TODO