You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2021/11/15 07:29:17 UTC

[skywalking-showcase] branch main updated: Add kube-state-metrics for missing Kubernetes monitoring metrics

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-showcase.git


The following commit(s) were added to refs/heads/main by this push:
     new ce83c8b  Add kube-state-metrics for missing Kubernetes monitoring metrics
ce83c8b is described below

commit ce83c8b1b3c5cb47ed604532b50c821040cf5c94
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Mon Nov 15 15:29:02 2021 +0800

    Add kube-state-metrics for missing Kubernetes monitoring metrics
---
 .../kubernetes/feature-kubernetes-monitor/open-telemetry.yaml    | 2 --
 deploy/platform/kubernetes/features.mk                           | 9 +++++++++
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/deploy/platform/kubernetes/feature-kubernetes-monitor/open-telemetry.yaml b/deploy/platform/kubernetes/feature-kubernetes-monitor/open-telemetry.yaml
index 6c72e56..1a45e96 100644
--- a/deploy/platform/kubernetes/feature-kubernetes-monitor/open-telemetry.yaml
+++ b/deploy/platform/kubernetes/feature-kubernetes-monitor/open-telemetry.yaml
@@ -37,8 +37,6 @@ data:
         insecure: true
       logging:
         loglevel: debug
-      prometheus:
-        endpoint: "0.0.0.0:9090"
     receivers:
       prometheus:
         config:
diff --git a/deploy/platform/kubernetes/features.mk b/deploy/platform/kubernetes/features.mk
index f1e80b5..8bb59bd 100644
--- a/deploy/platform/kubernetes/features.mk
+++ b/deploy/platform/kubernetes/features.mk
@@ -60,3 +60,12 @@ deploy.feature-als: prerequisites
 undeploy.feature-als:
 	$(eval TAG := $(TAG)-agentless)
 	$(MAKE) undeploy FEATURE_FLAGS=agent TAG=$(TAG)-agentless NAMESPACE=$(NAMESPACE)-agentless AGENTLESS=true
+
+# @feature: kubernetes-monitor; extra resources to install for kubernetes monitoring, standard kube-state-metrics
+.PHONY: feature-kubernetes-monitor
+feature-kubernetes-monitor:
+	@kubectl apply -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/service-account.yaml
+	@kubectl apply -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/cluster-role.yaml
+	@kubectl apply -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/cluster-role-binding.yaml
+	@kubectl apply -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/service.yaml
+	@kubectl apply -f https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.2.4/examples/standard/deployment.yaml