Kubescape-Prometheus Integration
Most of the end-users either use prometheus-community/kube-prometheus-stack
or prometheus-community/prometheus
to install Prometheus for monitoring. Based on your choice of Prometheus, you can follow either of the below methods to enable kubescape monitoring with Prometheus.
Prometheus operator (kube-prometheus-stack) helm chart
-
Install the
kube-prometheus-stack
Helm Charthelm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo update kubectl create namespace prometheus helm install -n prometheus kube-prometheus-stack prometheus-community/kube-prometheus-stack --set prometheus.prometheusSpec.podMonitorSelectorNilUsesHelmValues=false,prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues=false
-
Install the
kubescape-operator
Helm Chart withcapabilities.prometheusExporter
enabled
helm repo add kubescape https://kubescape.github.io/helm-charts/
helm repo update
helm upgrade --install <...> --set capabilities.prometheusExporter=enable
Prometheus community helm chart
-
Install the
prometheus-community
Helm Chart -
Install the
kubescape-operator
Helm Chart withcapabilities.prometheusExporter
andconfigurations.prometheusAnnotations
enabled
helm repo add kubescape https://kubescape.github.io/helm-charts/
helm repo update
helm upgrade --install <...> --set capabilities.prometheusExporter=enable --set configurations.prometheusAnnotations=enable
Component Diagram
graph TB
subgraph Cluster
pr(Prometheus)
ks(Kubescape)
k8sApi(Kubernetes API)
end
pr -->|Start Scan| ks
ks -->|Collect Cluster Info|k8sApi
ks -->|Scan results| pr
classDef k8s fill:#326ce5,stroke:#fff,stroke-width:1px,color:#fff;
classDef plain fill:#ddd,stroke:#fff,stroke-width:1px,color:#000
class k8sApi k8s
class pr plain