Prometheus

In our Private Managed Clusters Prometheus will automatically scan all Deployments, DaemonSets and StatefulSets for a scraping port or ServiceMonitors.

If you want to use scraping, you need to add the following annotations, example:

apiVersion: apps/v1beta2
kind: DaemonSet
metadata:
  annotations:
    prometheus.io/port: 7472
    prometheus.io/scrape: true
...

For a ServiceMonitor you need to create a ServiceMonitor map in the Prometheus namespace:

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    k8s-app: coredns
  name: coredns
  namespace: monitoring
spec:
  endpoints:
  - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
    interval: 15s
    port: http-metrics
  jobLabel: k8s-app
  namespaceSelector:
    matchNames:
    - kube-system
  selector:
    matchLabels:
      component: metrics
      k8s-app: coredns

Dashboards

We supply a Grafana, Prometheus and Alertmanager Dashboard that provides an overview of your deployments and alert settings.

Access to this Dashboard happens through the ASERGO Dashboard