Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi,
I’m seeing an error in applying the file generated. Could you please check and suggest?
[root@cdc-centos-172 doks-monitoring]# kubectl apply -f “${APP_INSTANCE_NAME}_manifest.yaml” --namespace “${NAMESPACE}” serviceaccount/alertmanager unchanged configmap/sammy-cluster-monitoring-alertmanager-config created service/sammy-cluster-monitoring-alertmanager-operated created service/sammy-cluster-monitoring-alertmanager created configmap/sammy-cluster-monitoring-dashboards created serviceaccount/grafana unchanged configmap/sammy-cluster-monitoring-grafana-ini created configmap/sammy-cluster-monitoring-grafana-datasources created configmap/sammy-cluster-monitoring-grafana-dashboardproviders created secret/sammy-cluster-monitoring-grafana created service/sammy-cluster-monitoring-grafana created serviceaccount/kube-state-metrics unchanged clusterrole.rbac.authorization.k8s.io/kube-state-metrics unchanged clusterrolebinding.rbac.authorization.k8s.io/kube-state-metrics unchanged service/sammy-cluster-monitoring-kube-state-metrics created serviceaccount/node-exporter unchanged serviceaccount/prometheus unchanged clusterrole.rbac.authorization.k8s.io/prometheus unchanged clusterrolebinding.rbac.authorization.k8s.io/prometheus unchanged configmap/sammy-cluster-monitoring-prometheus-config created service/sammy-cluster-monitoring-prometheus created unable to recognize “sammy-cluster-monitoring_manifest.yaml”: no matches for kind “StatefulSet” in version “apps/v1beta2” unable to recognize “sammy-cluster-monitoring_manifest.yaml”: no matches for kind “StatefulSet” in version “apps/v1beta2” unable to recognize “sammy-cluster-monitoring_manifest.yaml”: no matches for kind “Deployment” in version “apps/v1beta2” unable to recognize “sammy-cluster-monitoring_manifest.yaml”: no matches for kind “DaemonSet” in version “extensions/v1beta1” unable to recognize “sammy-cluster-monitoring_manifest.yaml”: no matches for kind “StatefulSet” in version “apps/v1beta2”
Hey, it was my api version which I updated in the yaml after which it is working. Thanks for the great document.
Strange…I get the following, is there a quick fix to get around this? (I am on kubectl version 1.16.3)
$ kubectl apply -f "${APP_INSTANCE_NAME}_manifest.yaml" --namespace "${NAMESPACE}"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ServiceAccount" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ConfigMap" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "Service" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "Service" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "StatefulSet" in version "apps/v1beta2"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ConfigMap" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ServiceAccount" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ConfigMap" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ConfigMap" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ConfigMap" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "Secret" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "Service" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "StatefulSet" in version "apps/v1beta2"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ServiceAccount" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "Deployment" in version "apps/v1beta2"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "Service" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ServiceAccount" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "DaemonSet" in version "extensions/v1beta1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ServiceAccount" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1beta1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1beta1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "ConfigMap" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "Service" in version "v1"
unable to recognize "sammy-cluster-monitoring_manifest.yaml": no matches for kind "StatefulSet" in version "apps/v1beta2"
I am getting ‘pod has unbound immediate PersistentVolumeClaims’ and ‘0/1 nodes are available: 1 Insufficient memory.’ (despite having a fresh droplet with 4GB), after applying the config on step 2. Any ideas on what am I missing?
nice tutorial. It was helpful to setup this solution onto our k8s version with some modifications to manifest files.
It is deployed on the cluster, I could see the metrics on the prometheus but when i go to grafana dashboard, i don’t see the values in the graphs.
Any pointers to troubleshoot it?
Hi,
Nice article. I set it up correctly following this but I do not see any container related metric in prometheus.
Due to that the dashboard are also showing No data points.
Is there something I am missing here. I am a beginner at this, any help will be appreciated.
I commend you for posting something that works (where other DO tutorials on this subject do not work) but what you get from this is something that is nearly impossible to maintain or configure. I have spent days trying to apply the simplest imaginable configuration change (literally two lines of configuration) to add a single pod target to the Prometheus configuration and am throwing in the towel as there is simply no way to troubleshoot dozens of lines of garbled YAML.
At the very least this tutorial should call out that this will get you an interesting setup, but that any meaningful modifications are likely to be difficult if not impossible.
Not sure if this is still current or bug-free - I got a lot of “No data points” as did other users… What I would really like is a simple setup for Prometheus only (not the full Grafana stack) that INTEGRATES with the kube-state-metrics advice that DO already gives here: https://www.digitalocean.com/docs/kubernetes/how-to/monitor-advanced/
I don’t want to run multiple kube-state-metrics if I can help it…