Die Dialektik der Digitalisierung: Zeitersparnis macht Zeit zu einer Mangelerscheinung.  Renzie, Thom    

Inspiration:


https://microk8s.io/docs/registry-built-in
https://docs.docker.com/engine/install/ubuntu/
https://linuxconfig.org/how-to-install-docker-on-ubuntu-20-04-lts-focal-fossa
https://microk8s.io/docs/addon-ingress
https://sysdig.com/blog/kubernetes-monitoring-prometheus/
https://prometheus.io/docs/introduction/overview/


Prometheus wird für die Überwachung (auslesen der Metriken) verwendet.

alfred@pc1:~$ microk8s enable prometheus
Adding argument --authentication-token-webhook to nodes.
Configuring node 192.168.0.205
Configuring node 192.168.0.202
Configuring node 192.168.0.203
Configuring node 192.168.0.204
Restarting nodes.
Configuring node 192.168.0.205
Configuring node 192.168.0.202
Configuring node 192.168.0.203
Configuring node 192.168.0.204
Addon dns is already enabled.
Fetching kube-prometheus version v0.7.0.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   143  100   143    0     0    465      0 --:--:-- --:--:-- --:--:--   464
100  287k    0  287k    0     0   394k      0 --:--:-- --:--:-- --:--:--  394k
kube-prometheus-0.7.0/
kube-prometheus-0.7.0/.github/
kube-prometheus-0.7.0/.github/ISSUE_TEMPLATE/
kube-prometheus-0.7.0/.github/ISSUE_TEMPLATE/bug.md
kube-prometheus-0.7.0/.github/ISSUE_TEMPLATE/feature.md
kube-prometheus-0.7.0/.github/ISSUE_TEMPLATE/support.md
kube-prometheus-0.7.0/.github/workflows/
kube-prometheus-0.7.0/.github/workflows/ci.yaml
kube-prometheus-0.7.0/.gitignore
kube-prometheus-0.7.0/DCO
kube-prometheus-0.7.0/LICENSE
kube-prometheus-0.7.0/Makefile
kube-prometheus-0.7.0/NOTICE
kube-prometheus-0.7.0/OWNERS
kube-prometheus-0.7.0/README.md
kube-prometheus-0.7.0/build.sh
kube-prometheus-0.7.0/code-of-conduct.md
kube-prometheus-0.7.0/docs/
kube-prometheus-0.7.0/docs/EKS-cni-support.md
kube-prometheus-0.7.0/docs/GKE-cadvisor-support.md
kube-prometheus-0.7.0/docs/community-support.md
kube-prometheus-0.7.0/docs/developing-prometheus-rules-and-grafana-dashboards.md
kube-prometheus-0.7.0/docs/exposing-prometheus-alertmanager-grafana-ingress.md
kube-prometheus-0.7.0/docs/kube-prometheus-on-kubeadm.md
kube-prometheus-0.7.0/docs/monitoring-external-etcd.md
kube-prometheus-0.7.0/docs/monitoring-other-namespaces.md
kube-prometheus-0.7.0/docs/weave-net-support.md
kube-prometheus-0.7.0/example.jsonnet
kube-prometheus-0.7.0/examples/
kube-prometheus-0.7.0/examples/additional-namespaces-servicemonitor.jsonnet
kube-prometheus-0.7.0/examples/additional-namespaces.jsonnet
kube-prometheus-0.7.0/examples/alertmanager-config-external.jsonnet
kube-prometheus-0.7.0/examples/alertmanager-config.jsonnet
kube-prometheus-0.7.0/examples/alertmanager-config.yaml
kube-prometheus-0.7.0/examples/all-namespaces.jsonnet
kube-prometheus-0.7.0/examples/auth
kube-prometheus-0.7.0/examples/basic-auth/
kube-prometheus-0.7.0/examples/basic-auth/secrets.yaml
kube-prometheus-0.7.0/examples/basic-auth/service-monitor.yaml
kube-prometheus-0.7.0/examples/continuous-delivery/
kube-prometheus-0.7.0/examples/continuous-delivery/argocd/
kube-prometheus-0.7.0/examples/continuous-delivery/argocd/README.md
kube-prometheus-0.7.0/examples/continuous-delivery/argocd/application.yaml
kube-prometheus-0.7.0/examples/continuous-delivery/argocd/appproject.yaml
kube-prometheus-0.7.0/examples/continuous-delivery/argocd/kube-prometheus/
kube-prometheus-0.7.0/examples/continuous-delivery/argocd/kube-prometheus/argocd-basic.jsonnet
kube-prometheus-0.7.0/examples/eks-cni-example.jsonnet
kube-prometheus-0.7.0/examples/etcd-client-ca.crt
kube-prometheus-0.7.0/examples/etcd-client.crt
kube-prometheus-0.7.0/examples/etcd-client.key
kube-prometheus-0.7.0/examples/etcd-skip-verify.jsonnet
kube-prometheus-0.7.0/examples/etcd.jsonnet
kube-prometheus-0.7.0/examples/example-app/
kube-prometheus-0.7.0/examples/example-app/example-app.yaml
kube-prometheus-0.7.0/examples/example-app/prometheus-frontend-alertmanager-discovery-role-binding.yaml
kube-prometheus-0.7.0/examples/example-app/prometheus-frontend-alertmanager-discovery-role.yaml
kube-prometheus-0.7.0/examples/example-app/prometheus-frontend-role-binding.yaml
kube-prometheus-0.7.0/examples/example-app/prometheus-frontend-role.yaml
kube-prometheus-0.7.0/examples/example-app/prometheus-frontend-service-account.yaml
kube-prometheus-0.7.0/examples/example-app/prometheus-frontend-svc.yaml
kube-prometheus-0.7.0/examples/example-app/prometheus-frontend.yaml
kube-prometheus-0.7.0/examples/example-app/servicemonitor-frontend.yaml
kube-prometheus-0.7.0/examples/example-grafana-dashboard.json
kube-prometheus-0.7.0/examples/existingrule.json
kube-prometheus-0.7.0/examples/existingrule.yaml
kube-prometheus-0.7.0/examples/grafana-additional-jsonnet-dashboard-example.jsonnet
kube-prometheus-0.7.0/examples/grafana-additional-rendered-dashboard-example-2.jsonnet
kube-prometheus-0.7.0/examples/grafana-additional-rendered-dashboard-example.jsonnet
kube-prometheus-0.7.0/examples/ingress.jsonnet
kube-prometheus-0.7.0/examples/internal-registry.jsonnet
kube-prometheus-0.7.0/examples/jsonnet-build-snippet/
kube-prometheus-0.7.0/examples/jsonnet-build-snippet/build-snippet.jsonnet
kube-prometheus-0.7.0/examples/jsonnet-snippets/
kube-prometheus-0.7.0/examples/jsonnet-snippets/bootkube.jsonnet
kube-prometheus-0.7.0/examples/jsonnet-snippets/kops-coredns.jsonnet
kube-prometheus-0.7.0/examples/jsonnet-snippets/kops.jsonnet
kube-prometheus-0.7.0/examples/jsonnet-snippets/kube-aws.jsonnet
kube-prometheus-0.7.0/examples/jsonnet-snippets/kubeadm.jsonnet
kube-prometheus-0.7.0/examples/jsonnet-snippets/kubespray.jsonnet
kube-prometheus-0.7.0/examples/jsonnet-snippets/node-ports.jsonnet
kube-prometheus-0.7.0/examples/ksonnet-example.jsonnet
kube-prometheus-0.7.0/examples/kustomize.jsonnet
kube-prometheus-0.7.0/examples/minikube.jsonnet
kube-prometheus-0.7.0/examples/prometheus-additional-alert-rule-example.jsonnet
kube-prometheus-0.7.0/examples/prometheus-additional-recording-rule-example.jsonnet
kube-prometheus-0.7.0/examples/prometheus-additional-rendered-rule-example.jsonnet
kube-prometheus-0.7.0/examples/prometheus-name-override.jsonnet
kube-prometheus-0.7.0/examples/prometheus-pvc.jsonnet
kube-prometheus-0.7.0/examples/strip-limits.jsonnet
kube-prometheus-0.7.0/examples/tolerations.libsonnet
kube-prometheus-0.7.0/examples/weave-net-example.jsonnet
kube-prometheus-0.7.0/experimental/
kube-prometheus-0.7.0/experimental/metrics-server/
kube-prometheus-0.7.0/experimental/metrics-server/auth-delegator.yaml
kube-prometheus-0.7.0/experimental/metrics-server/auth-reader.yaml
kube-prometheus-0.7.0/experimental/metrics-server/metrics-apiservice.yaml
kube-prometheus-0.7.0/experimental/metrics-server/metrics-server-cluster-role-binding.yaml
kube-prometheus-0.7.0/experimental/metrics-server/metrics-server-cluster-role.yaml
kube-prometheus-0.7.0/experimental/metrics-server/metrics-server-deployment.yaml
kube-prometheus-0.7.0/experimental/metrics-server/metrics-server-service-account.yaml
kube-prometheus-0.7.0/experimental/metrics-server/metrics-server-service.yaml
kube-prometheus-0.7.0/go.mod
kube-prometheus-0.7.0/go.sum
kube-prometheus-0.7.0/hack/
kube-prometheus-0.7.0/hack/example-service-monitoring/
kube-prometheus-0.7.0/hack/example-service-monitoring/deploy
kube-prometheus-0.7.0/hack/example-service-monitoring/teardown
kube-prometheus-0.7.0/hack/jsonnet-docker-image
kube-prometheus-0.7.0/jsonnet/
kube-prometheus-0.7.0/jsonnet/kube-prometheus/
kube-prometheus-0.7.0/jsonnet/kube-prometheus/.gitignore
kube-prometheus-0.7.0/jsonnet/kube-prometheus/alertmanager/
kube-prometheus-0.7.0/jsonnet/kube-prometheus/alertmanager/alertmanager.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/alerts/
kube-prometheus-0.7.0/jsonnet/kube-prometheus/alerts/alerts.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/alerts/general.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/alerts/node.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/alerts/tests.yaml
kube-prometheus-0.7.0/jsonnet/kube-prometheus/dropping-deprecated-metrics-relabelings.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/grafana-weave-net-cluster.json
kube-prometheus-0.7.0/jsonnet/kube-prometheus/grafana-weave-net.json
kube-prometheus-0.7.0/jsonnet/kube-prometheus/jsonnetfile.json
kube-prometheus-0.7.0/jsonnet/kube-prometheus/ksm-autoscaler/
kube-prometheus-0.7.0/jsonnet/kube-prometheus/ksm-autoscaler/ksm-autoscaler.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-all-namespaces.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-anti-affinity.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-bootkube.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-config-mixins.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-custom-metrics.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-eks.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-external-metrics.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-gke.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-insecure-kubelet.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-kops-coredns.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-kops.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-ksonnet.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-kube-aws.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-kubeadm.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-kubespray.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-managed-cluster.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-node-ports.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-static-etcd.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-strip-limits.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-thanos-sidecar.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus-weave-net.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-prometheus.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-rbac-proxy/
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-rbac-proxy/container.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-state-metrics/
kube-prometheus-0.7.0/jsonnet/kube-prometheus/kube-state-metrics/kube-state-metrics.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/lib/
kube-prometheus-0.7.0/jsonnet/kube-prometheus/lib/image.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/lib/lib.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/node-exporter/
kube-prometheus-0.7.0/jsonnet/kube-prometheus/node-exporter/node-exporter.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/prometheus-adapter/
kube-prometheus-0.7.0/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/prometheus/
kube-prometheus-0.7.0/jsonnet/kube-prometheus/prometheus/prometheus.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/rules/
kube-prometheus-0.7.0/jsonnet/kube-prometheus/rules/general.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/rules/node-rules.libsonnet
kube-prometheus-0.7.0/jsonnet/kube-prometheus/rules/rules.libsonnet
kube-prometheus-0.7.0/jsonnetfile.json
kube-prometheus-0.7.0/jsonnetfile.lock.json
kube-prometheus-0.7.0/kustomization.yaml
kube-prometheus-0.7.0/manifests/
kube-prometheus-0.7.0/manifests/alertmanager-alertmanager.yaml
kube-prometheus-0.7.0/manifests/alertmanager-secret.yaml
kube-prometheus-0.7.0/manifests/alertmanager-service.yaml
kube-prometheus-0.7.0/manifests/alertmanager-serviceAccount.yaml
kube-prometheus-0.7.0/manifests/alertmanager-serviceMonitor.yaml
kube-prometheus-0.7.0/manifests/grafana-dashboardDatasources.yaml
kube-prometheus-0.7.0/manifests/grafana-dashboardDefinitions.yaml
kube-prometheus-0.7.0/manifests/grafana-dashboardSources.yaml
kube-prometheus-0.7.0/manifests/grafana-deployment.yaml
kube-prometheus-0.7.0/manifests/grafana-service.yaml
kube-prometheus-0.7.0/manifests/grafana-serviceAccount.yaml
kube-prometheus-0.7.0/manifests/grafana-serviceMonitor.yaml
kube-prometheus-0.7.0/manifests/kube-state-metrics-clusterRole.yaml
kube-prometheus-0.7.0/manifests/kube-state-metrics-clusterRoleBinding.yaml
kube-prometheus-0.7.0/manifests/kube-state-metrics-deployment.yaml
kube-prometheus-0.7.0/manifests/kube-state-metrics-service.yaml
kube-prometheus-0.7.0/manifests/kube-state-metrics-serviceAccount.yaml
kube-prometheus-0.7.0/manifests/kube-state-metrics-serviceMonitor.yaml
kube-prometheus-0.7.0/manifests/node-exporter-clusterRole.yaml
kube-prometheus-0.7.0/manifests/node-exporter-clusterRoleBinding.yaml
kube-prometheus-0.7.0/manifests/node-exporter-daemonset.yaml
kube-prometheus-0.7.0/manifests/node-exporter-service.yaml
kube-prometheus-0.7.0/manifests/node-exporter-serviceAccount.yaml
kube-prometheus-0.7.0/manifests/node-exporter-serviceMonitor.yaml
kube-prometheus-0.7.0/manifests/prometheus-adapter-apiService.yaml
kube-prometheus-0.7.0/manifests/prometheus-adapter-clusterRole.yaml
kube-prometheus-0.7.0/manifests/prometheus-adapter-clusterRoleAggregatedMetricsReader.yaml
kube-prometheus-0.7.0/manifests/prometheus-adapter-clusterRoleBinding.yaml
kube-prometheus-0.7.0/manifests/prometheus-adapter-clusterRoleBindingDelegator.yaml
kube-prometheus-0.7.0/manifests/prometheus-adapter-clusterRoleServerResources.yaml
kube-prometheus-0.7.0/manifests/prometheus-adapter-configMap.yaml
kube-prometheus-0.7.0/manifests/prometheus-adapter-deployment.yaml
kube-prometheus-0.7.0/manifests/prometheus-adapter-roleBindingAuthReader.yaml
kube-prometheus-0.7.0/manifests/prometheus-adapter-service.yaml
kube-prometheus-0.7.0/manifests/prometheus-adapter-serviceAccount.yaml
kube-prometheus-0.7.0/manifests/prometheus-adapter-serviceMonitor.yaml
kube-prometheus-0.7.0/manifests/prometheus-clusterRole.yaml
kube-prometheus-0.7.0/manifests/prometheus-clusterRoleBinding.yaml
kube-prometheus-0.7.0/manifests/prometheus-operator-serviceMonitor.yaml
kube-prometheus-0.7.0/manifests/prometheus-prometheus.yaml
kube-prometheus-0.7.0/manifests/prometheus-roleBindingConfig.yaml
kube-prometheus-0.7.0/manifests/prometheus-roleBindingSpecificNamespaces.yaml
kube-prometheus-0.7.0/manifests/prometheus-roleConfig.yaml
kube-prometheus-0.7.0/manifests/prometheus-roleSpecificNamespaces.yaml
kube-prometheus-0.7.0/manifests/prometheus-rules.yaml
kube-prometheus-0.7.0/manifests/prometheus-service.yaml
kube-prometheus-0.7.0/manifests/prometheus-serviceAccount.yaml
kube-prometheus-0.7.0/manifests/prometheus-serviceMonitor.yaml
kube-prometheus-0.7.0/manifests/prometheus-serviceMonitorApiserver.yaml
kube-prometheus-0.7.0/manifests/prometheus-serviceMonitorCoreDNS.yaml
kube-prometheus-0.7.0/manifests/prometheus-serviceMonitorKubeControllerManager.yaml
kube-prometheus-0.7.0/manifests/prometheus-serviceMonitorKubeScheduler.yaml
kube-prometheus-0.7.0/manifests/prometheus-serviceMonitorKubelet.yaml
kube-prometheus-0.7.0/manifests/setup/
kube-prometheus-0.7.0/manifests/setup/0namespace-namespace.yaml
kube-prometheus-0.7.0/manifests/setup/prometheus-operator-0alertmanagerConfigCustomResourceDefinition.yaml
kube-prometheus-0.7.0/manifests/setup/prometheus-operator-0alertmanagerCustomResourceDefinition.yaml
kube-prometheus-0.7.0/manifests/setup/prometheus-operator-0podmonitorCustomResourceDefinition.yaml
kube-prometheus-0.7.0/manifests/setup/prometheus-operator-0probeCustomResourceDefinition.yaml
kube-prometheus-0.7.0/manifests/setup/prometheus-operator-0prometheusCustomResourceDefinition.yaml
kube-prometheus-0.7.0/manifests/setup/prometheus-operator-0prometheusruleCustomResourceDefinition.yaml
kube-prometheus-0.7.0/manifests/setup/prometheus-operator-0servicemonitorCustomResourceDefinition.yaml
kube-prometheus-0.7.0/manifests/setup/prometheus-operator-0thanosrulerCustomResourceDefinition.yaml
kube-prometheus-0.7.0/manifests/setup/prometheus-operator-clusterRole.yaml
kube-prometheus-0.7.0/manifests/setup/prometheus-operator-clusterRoleBinding.yaml
kube-prometheus-0.7.0/manifests/setup/prometheus-operator-deployment.yaml
kube-prometheus-0.7.0/manifests/setup/prometheus-operator-service.yaml
kube-prometheus-0.7.0/manifests/setup/prometheus-operator-serviceAccount.yaml
kube-prometheus-0.7.0/scripts/
kube-prometheus-0.7.0/scripts/go.mod
kube-prometheus-0.7.0/scripts/go.sum
kube-prometheus-0.7.0/scripts/minikube-start-kvm.sh
kube-prometheus-0.7.0/scripts/minikube-start.sh
kube-prometheus-0.7.0/scripts/monitoring-deploy.sh
kube-prometheus-0.7.0/scripts/tools.go
kube-prometheus-0.7.0/sync-to-internal-registry.jsonnet
kube-prometheus-0.7.0/test.sh
kube-prometheus-0.7.0/tests/
kube-prometheus-0.7.0/tests/e2e/
kube-prometheus-0.7.0/tests/e2e/main_test.go
kube-prometheus-0.7.0/tests/e2e/prometheus_client.go
Enabling Prometheus
namespace/monitoring created
customresourcedefinition.apiextensions.k8s.io/alertmanagerconfigs.monitoring.coreos.com created
customresourcedefinition.apiextensions.k8s.io/alertmanagers.monitoring.coreos.com created
customresourcedefinition.apiextensions.k8s.io/podmonitors.monitoring.coreos.com created
customresourcedefinition.apiextensions.k8s.io/probes.monitoring.coreos.com created
customresourcedefinition.apiextensions.k8s.io/prometheuses.monitoring.coreos.com created
customresourcedefinition.apiextensions.k8s.io/prometheusrules.monitoring.coreos.com created
customresourcedefinition.apiextensions.k8s.io/servicemonitors.monitoring.coreos.com created
customresourcedefinition.apiextensions.k8s.io/thanosrulers.monitoring.coreos.com created
clusterrole.rbac.authorization.k8s.io/prometheus-operator created
clusterrolebinding.rbac.authorization.k8s.io/prometheus-operator created
deployment.apps/prometheus-operator created
service/prometheus-operator created
serviceaccount/prometheus-operator created
alertmanager.monitoring.coreos.com/main created
secret/alertmanager-main created
service/alertmanager-main created
serviceaccount/alertmanager-main created
servicemonitor.monitoring.coreos.com/alertmanager created
secret/grafana-datasources created
configmap/grafana-dashboard-apiserver created
configmap/grafana-dashboard-cluster-total created
configmap/grafana-dashboard-controller-manager created
configmap/grafana-dashboard-k8s-resources-cluster created
configmap/grafana-dashboard-k8s-resources-namespace created
configmap/grafana-dashboard-k8s-resources-node created
configmap/grafana-dashboard-k8s-resources-pod created
configmap/grafana-dashboard-k8s-resources-workload created
configmap/grafana-dashboard-k8s-resources-workloads-namespace created
configmap/grafana-dashboard-kubelet created
configmap/grafana-dashboard-namespace-by-pod created
configmap/grafana-dashboard-namespace-by-workload created
configmap/grafana-dashboard-node-cluster-rsrc-use created
configmap/grafana-dashboard-node-rsrc-use created
configmap/grafana-dashboard-nodes created
configmap/grafana-dashboard-persistentvolumesusage created
configmap/grafana-dashboard-pod-total created
configmap/grafana-dashboard-prometheus-remote-write created
configmap/grafana-dashboard-prometheus created
configmap/grafana-dashboard-proxy created
configmap/grafana-dashboard-scheduler created
configmap/grafana-dashboard-statefulset created
configmap/grafana-dashboard-workload-total created
configmap/grafana-dashboards created
deployment.apps/grafana created
service/grafana created
serviceaccount/grafana created
servicemonitor.monitoring.coreos.com/grafana created
clusterrole.rbac.authorization.k8s.io/kube-state-metrics created
clusterrolebinding.rbac.authorization.k8s.io/kube-state-metrics created
deployment.apps/kube-state-metrics created
service/kube-state-metrics created
serviceaccount/kube-state-metrics created
servicemonitor.monitoring.coreos.com/kube-state-metrics created
clusterrole.rbac.authorization.k8s.io/node-exporter created
clusterrolebinding.rbac.authorization.k8s.io/node-exporter created
daemonset.apps/node-exporter created
service/node-exporter created
serviceaccount/node-exporter created
servicemonitor.monitoring.coreos.com/node-exporter created
apiservice.apiregistration.k8s.io/v1beta1.metrics.k8s.io created
clusterrole.rbac.authorization.k8s.io/prometheus-adapter created
clusterrole.rbac.authorization.k8s.io/system:aggregated-metrics-reader created
clusterrolebinding.rbac.authorization.k8s.io/prometheus-adapter created
clusterrolebinding.rbac.authorization.k8s.io/resource-metrics:system:auth-delegator created
clusterrole.rbac.authorization.k8s.io/resource-metrics-server-resources created
configmap/adapter-config created
deployment.apps/prometheus-adapter created
rolebinding.rbac.authorization.k8s.io/resource-metrics-auth-reader created
service/prometheus-adapter created
serviceaccount/prometheus-adapter created
servicemonitor.monitoring.coreos.com/prometheus-adapter created
clusterrole.rbac.authorization.k8s.io/prometheus-k8s created
clusterrolebinding.rbac.authorization.k8s.io/prometheus-k8s created
servicemonitor.monitoring.coreos.com/prometheus-operator created
prometheus.monitoring.coreos.com/k8s created
rolebinding.rbac.authorization.k8s.io/prometheus-k8s-config created
rolebinding.rbac.authorization.k8s.io/prometheus-k8s created
rolebinding.rbac.authorization.k8s.io/prometheus-k8s created
rolebinding.rbac.authorization.k8s.io/prometheus-k8s created
role.rbac.authorization.k8s.io/prometheus-k8s-config created
role.rbac.authorization.k8s.io/prometheus-k8s created
role.rbac.authorization.k8s.io/prometheus-k8s created
role.rbac.authorization.k8s.io/prometheus-k8s created
prometheusrule.monitoring.coreos.com/prometheus-k8s-rules created
service/prometheus-k8s created
serviceaccount/prometheus-k8s created
servicemonitor.monitoring.coreos.com/prometheus created
servicemonitor.monitoring.coreos.com/kube-apiserver created
servicemonitor.monitoring.coreos.com/coredns created
servicemonitor.monitoring.coreos.com/kube-controller-manager created
servicemonitor.monitoring.coreos.com/kube-scheduler created
servicemonitor.monitoring.coreos.com/kubelet created
The Prometheus operator is enabled (user/pass: admin/admin)
alfred@pc1:~$

Das führt zu folgenden Pods und Services:

alfred@pc1:~$ k get all -n monitoring
NAME                                       READY   STATUS    RESTARTS   AGE
pod/node-exporter-2qznc                    2/2     Running   0          4m25s
pod/node-exporter-vhb79                    2/2     Running   0          4m24s
pod/prometheus-operator-7649c7454f-wz9nh   2/2     Running   0          4m24s
pod/node-exporter-28ltl                    2/2     Running   0          4m23s
pod/node-exporter-6rcqs                    2/2     Running   0          4m24s
pod/node-exporter-twdl6                    2/2     Running   0          4m23s
pod/kube-state-metrics-78dc55b74b-k6bhw    3/3     Running   0          4m24s
pod/prometheus-adapter-69b8496df6-m4hsq    1/1     Running   0          4m24s
pod/alertmanager-main-0                    2/2     Running   0          4m10s
pod/grafana-6b8df57c5b-mj5bc               1/1     Running   0          4m24s
pod/prometheus-k8s-0                       2/2     Running   1          4m4s

NAME                            TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                      AGE
service/prometheus-operator     ClusterIP   None             <none>        8443/TCP                     4m48s
service/alertmanager-main       ClusterIP   10.152.183.153   <none>        9093/TCP                     4m40s
service/grafana                 ClusterIP   10.152.183.80    <none>        3000/TCP                     4m34s
service/kube-state-metrics      ClusterIP   None             <none>        8443/TCP,9443/TCP            4m33s
service/node-exporter           ClusterIP   None             <none>        9100/TCP                     4m33s
service/prometheus-adapter      ClusterIP   10.152.183.190   <none>        443/TCP                      4m32s
service/prometheus-k8s          ClusterIP   10.152.183.112   <none>        9090/TCP                     4m31s
service/alertmanager-operated   ClusterIP   None             <none>        9093/TCP,9094/TCP,9094/UDP   4m12s
service/prometheus-operated     ClusterIP   None             <none>        9090/TCP                     4m8s

NAME                           DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR            AGE
daemonset.apps/node-exporter   5         5         5       5            5           kubernetes.io/os=linux   4m33s

NAME                                  READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/prometheus-operator   1/1     1            1           4m49s
deployment.apps/kube-state-metrics    1/1     1            1           4m33s
deployment.apps/prometheus-adapter    1/1     1            1           4m32s
deployment.apps/grafana               1/1     1            1           4m34s

NAME                                             DESIRED   CURRENT   READY   AGE
replicaset.apps/prometheus-operator-7649c7454f   1         1         1       4m25s
replicaset.apps/kube-state-metrics-78dc55b74b    1         1         1       4m25s
replicaset.apps/prometheus-adapter-69b8496df6    1         1         1       4m25s
replicaset.apps/grafana-6b8df57c5b               1         1         1       4m25s

NAME                                 READY   AGE
statefulset.apps/alertmanager-main   1/1     4m10s
statefulset.apps/prometheus-k8s      1/1     4m8s
alfred@pc1:~$ alfred@pc1:~$

Wir ändern die Services auf LoadBalancer.

service/grafana                 LoadBalancer   10.152.183.80    192.168.0.212   3000:32172/TCP
service/prometheus-k8s          LoadBalancer   10.152.183.112   192.168.0.213   9090:30939/TCP               





Im Prometheus-Fenster sind bereits sehr viele Metriken vorhanden, die man unmittelbar auswerten kann.


In Prometheus können auch individuelle Metriken definiert werden. Prinzipiell kann jede Applikation metriken anbieten, die dann von Prometheus abgefragt werden.