Difference between revisions of "Helm install prometheus"

From wikieduonline
Jump to navigation Jump to search
 
(32 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
* https://github.com/prometheus-community/helm-charts
 +
* https://prometheus-community.[[github.io]]/helm-charts
 +
 +
 +
[[helm repo add prometheus-community https://prometheus-community.github.io/helm-charts]]
 +
 +
[[helm upgrade --install prometheus prometheus-community/prometheus --set ingress.enabled=true]]
 +
 +
[[helm upgrade --install prometheus prometheus-community/prometheus --set ingress.enabled=true --set ingress.ingresClassName=alb]]
 +
 +
[[helm upgrade --install prometheus prometheus-community/prometheus --set ingress.enabled=true --set ingress.ingresClassName=nginx]]
 +
 +
[[Prometheus values.yml|values.yml]]<ref> https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus/values.yaml</ref>
  
  
 
* <code>[[helm install myprometheus prometheus-community/prometheus]]</code>
 
* <code>[[helm install myprometheus prometheus-community/prometheus]]</code>
 +
 +
* <code>[[Prometheus values.yml]]</code>
  
  
== [[Grafana]] integration ==
+
== [[Grafana]] integration using [[kube-prometheus-stack]] ==
 
<ref>https://docs.stakewise.io/node-operator/stakewise-infra-package/usage</ref>
 
<ref>https://docs.stakewise.io/node-operator/stakewise-infra-package/usage</ref>
 
  [[helm upgrade --install kube-prometheus-stack prometheus-community/kube-prometheus-stack]] \
 
  [[helm upgrade --install kube-prometheus-stack prometheus-community/kube-prometheus-stack]] \
     [[--set]]='grafana.sidecar.dashboards.enabled=true' \
+
     [[--set]]='grafana.[[sidecar]].dashboards.enabled=true' \
 
     --set='grafana.sidecar.dashboards.searchNamespace=true' \
 
     --set='grafana.sidecar.dashboards.searchNamespace=true' \
 
     --set='prometheus.prometheusSpec.ruleSelectorNilUsesHelmValues=false' \
 
     --set='prometheus.prometheusSpec.ruleSelectorNilUsesHelmValues=false' \
Line 20: Line 35:
  
 
== [[GKE]]/[[EKS]] installations ==
 
== [[GKE]]/[[EKS]] installations ==
helm upgrade --install kube-prometheus-stack prometheus-community/kube-prometheus-stack \
 
    --set='[[kubeControllerManager]].enabled=false' \
 
    --set='[[kubeEtcd]].enabled=false' \
 
    --set='[[kubeScheduler]].enabled=false' \
 
    --set='[[kubeProxy]].enabled=false' \
 
    --set='[[defaultRules]].rules.[[etcd]]=false' \
 
    --set='defaultRules.rules.[[kubernetesSystem]]=false' \
 
    --set='defaultRules.rules.k[[ubeScheduler]]=false' \
 
    --set='grafana.[[sidecar]].dashboards.enabled=true' \
 
    --set='grafana.sidecar.dashboards.searchNamespace=true' \
 
    --set='prometheus.prometheusSpec.ruleSelectorNilUsesHelmValues=false' \
 
    --set='prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues=false' \
 
    --set='prometheus.prometheusSpec.podMonitorSelectorNilUsesHelmValues=false' \
 
    --set='prometheus.prometheusSpec.probeSelectorNilUsesHelmValues=false' \
 
    --create-namespace \
 
    --namespace monitoring \
 
    --version 39.5.0 \
 
    -f prom.yaml
 
  
 +
{{helm install kube-prometheus-stack for EKS/GKE}}
  
 
== Related ==
 
== Related ==
[[k get svc -A]]
+
* <code>[[aws-ebs-csi-driver Installation]]</code>
 +
* <code>[[k get svc -A]]</code>
  
  [[k get svc -A]] | grep monitoring
+
  [[kubectl get svc -n monitoring]]
monitoring    [[alertmanager-operated]]                           ClusterIP  None            <none>      
+
 
9093/TCP,9094/TCP,9094/UDP    11m
+
== Related ==
monitoring    [[kube-prometheus-stack-alertmanager]]               ClusterIP  10.104.155.239  <none>       9093/TCP                     
+
* <code>[[helm show values prometheus-community/prometheus]]</code>, <code>[[values.yaml]]</code>
12m
+
* <code>[[helm search repo prometheus-community]]</code>
monitoring    [[kube-prometheus-stack-grafana]]                   ClusterIP  10.111.201.244  <none>       80/TCP                       
+
* <code>[[helm install prometheus bitnami/kube-prometheus]]</code>
12m
+
* <code>[[prometheus.io]]</code>
monitoring    [[kube-prometheus-stack-kube-state-metrics]]        ClusterIP  10.105.69.252    <none>       8080/TCP                     
 
12m
 
monitoring    [[kube-prometheus-stack-operator]]                  ClusterIP  10.96.45.190    <none>        443/TCP                       
 
12m
 
monitoring    [[kube-prometheus-stack-prometheus]]                 ClusterIP  10.106.190.233  <none>       9090/TCP                     
 
12m
 
monitoring    [[kube-prometheus-stack-prometheus-node-exporter]]  ClusterIP  10.110.247.110  <none>       9100/TCP                     
 
12m
 
monitoring    [[prometheus-operated]]                             ClusterIP  None            <none>       9090/TCP                      11m
 
  
 
== See also ==
 
== See also ==
 +
* {{helm install prometheus}}
 
* {{Prometheus}}
 
* {{Prometheus}}
  
 
[[Category:Prometheus]]
 
[[Category:Prometheus]]

Latest revision as of 13:51, 23 July 2024


helm repo add prometheus-community https://prometheus-community.github.io/helm-charts

helm upgrade --install prometheus prometheus-community/prometheus --set ingress.enabled=true
helm upgrade --install prometheus prometheus-community/prometheus --set ingress.enabled=true --set ingress.ingresClassName=alb
helm upgrade --install prometheus prometheus-community/prometheus --set ingress.enabled=true --set ingress.ingresClassName=nginx
values.yml[1]



Grafana integration using kube-prometheus-stack[edit]

[2]

helm upgrade --install kube-prometheus-stack prometheus-community/kube-prometheus-stack \
   --set='grafana.sidecar.dashboards.enabled=true' \
   --set='grafana.sidecar.dashboards.searchNamespace=true' \
   --set='prometheus.prometheusSpec.ruleSelectorNilUsesHelmValues=false' \
   --set='prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues=false' \
   --set='prometheus.prometheusSpec.podMonitorSelectorNilUsesHelmValues=false' \
   --set='prometheus.prometheusSpec.probeSelectorNilUsesHelmValues=false' \
   --create-namespace \
   --namespace monitoring \
   --version 39.5.0 \
   -f prom.yaml

GKE/EKS installations[edit]

 helm upgrade --install kube-prometheus-stack prometheus-community/kube-prometheus-stack \
   --set='kubeControllerManager.enabled=false' \
   --set='kubeEtcd.enabled=false' \
   --set='kubeScheduler.enabled=false' \
   --set='kubeProxy.enabled=false' \
   --set='defaultRules.rules.etcd=false' \
   --set='defaultRules.rules.kubernetesSystem=false' \
   --set='defaultRules.rules.kubeScheduler=false' \
   --set='grafana.sidecar.dashboards.enabled=true' \
   --set='grafana.sidecar.dashboards.searchNamespace=true' \
   --set='prometheus.prometheusSpec.ruleSelectorNilUsesHelmValues=false' \
   --set='prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues=false' \
   --set='prometheus.prometheusSpec.podMonitorSelectorNilUsesHelmValues=false' \
   --set='prometheus.prometheusSpec.probeSelectorNilUsesHelmValues=false' \
   --create-namespace \
   --namespace monitoring \
   --version 39.5.0 \
   -f prom.yaml

Related[edit]

kubectl get svc -n monitoring

Related[edit]

See also[edit]

  • https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus/values.yaml
  • https://docs.stakewise.io/node-operator/stakewise-infra-package/usage
  • Advertising: