Difference between revisions of "Helm install prometheus example outputs"

From wikieduonline
Jump to navigation Jump to search
(Created page with "<pre> helm install myprometheus prometheus-community/prometheus NAME: myprometheus LAST DEPLOYED: Wed May 25 19:52:07 2022 NAMESPACE: default STATUS: deployed REVISION: 1 TES...")
 
 
(50 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<pre>
+
{{lc}}
helm install myprometheus  prometheus-community/prometheus
 
NAME: myprometheus
 
LAST DEPLOYED: Wed May 25 19:52:07 2022
 
NAMESPACE: default
 
STATUS: deployed
 
REVISION: 1
 
TEST SUITE: None
 
NOTES:
 
The Prometheus server can be accessed via port 80 on the following DNS name from within your cluster:
 
myprometheus-server.default.svc.cluster.local
 
  
 +
[[helm install prometheus]]
  
Get the Prometheus server URL by running these commands in the same shell:
+
== Example 2023 ==
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}")
 
  kubectl --namespace default port-forward $POD_NAME 9090
 
  
 +
NAME: myprometheus
 +
LAST DEPLOYED: Wed Mar  1 20:03:52 2023
 +
NAMESPACE: default
 +
STATUS: deployed
 +
REVISION: 1
 +
NOTES:
 +
The Prometheus server can be accessed via port 80 on the following DNS name from within your
 +
cluster:
 +
myprometheus-server.default.svc.cluster.local
 +
 
 +
 +
Get the Prometheus server URL by running these commands in the same shell:
 +
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=server" -o
 +
jsonpath="{.items[0].metadata.name}")
 +
  kubectl --namespace default port-forward $POD_NAME 9090
 +
 
 +
 +
The Prometheus alertmanager can be accessed via port  on the following DNS name from within your
 +
cluster:
 +
myprometheus-%!s(<nil>).default.svc.cluster.local
 +
 
 +
 +
Get the Alertmanager URL by running these commands in the same shell:
 +
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=" -o jsonpath="{.items[0].metadata.name}")
 +
  kubectl --namespace default port-forward $POD_NAME 9093
 +
#################################################################################
 +
######  WARNING: [[Pod Security Policy]] has been disabled by default since    #####
 +
######            it deprecated after k8s [[1.25]]+. use                        #####
 +
######            (index .Values "prometheus-node-exporter" "rbac"          #####
 +
###### .          "pspEnabled") with (index .Values                        #####
 +
######            "prometheus-node-exporter" "rbac" "pspAnnotations")      #####
 +
######            in case you still need it.                                #####
 +
#################################################################################
 +
 
  
The Prometheus alertmanager can be accessed via port 80 on the following DNS name from within your cluster:
+
The Prometheus PushGateway can be accessed via port 9091 on the following DNS name from within your cluster:
myprometheus-alertmanager.default.svc.cluster.local
+
myprometheus-prometheus-pushgateway.default.svc.cluster.local
 +
 
 +
 +
Get the PushGateway URL by running these commands in the same shell:
 +
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus-pushgateway,component=pushgateway" -o jsonpath="{.items[0].metadata.name}")
 +
  kubectl --namespace default port-forward $POD_NAME 9091
 +
 +
For more information on running Prometheus, visit:
 +
https://prometheus.io/
  
 +
== Example 2022 ==
 +
[[helm install]] myprometheus prometheus-community/prometheus
 +
NAME: myprometheus
 +
LAST DEPLOYED: Wed May 25 19:52:07 2022
 +
NAMESPACE: default
 +
STATUS: deployed
 +
REVISION: 1
 +
TEST SUITE: None
 +
NOTES:
 +
The Prometheus server can be accessed via port 80 on the following DNS name from within your cluster:
 +
myprometheus-server.[[default.svc.cluster.local]]
 +
 
 +
 +
[[Get the Prometheus server URL by running these commands in the same shell]]:
 +
  export POD_NAME=$([[kubectl get pods]] --namespace default -l "app=prometheus,component=server" -o [[jsonpath]]="{.items[0].metadata.name}")
 +
  [[kubectl --namespace default port-forward]] $POD_NAME [[9090]]
 +
 
 +
 +
The [[Prometheus alertmanager]] can be accessed via port 80 on the following DNS name from within your cluster:
 +
myprometheus-alertmanager.default.svc.cluster.local
 +
 
 +
 +
Get the Alertmanager URL by running these commands in the same shell:
 +
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=alertmanager" -o jsonpath="{.items[0].metadata.name}")
 +
  kubectl --namespace default port-forward $POD_NAME [[9093]]
 +
#################################################################################
 +
######  WARNING: Pod Security Policy has been moved to a global property.  #####
 +
######            use .Values.podSecurityPolicy.enabled with pod-based      #####
 +
######            annotations                                              #####
 +
######            (e.g. .Values.nodeExporter.podSecurityPolicy.annotations) #####
 +
#################################################################################
 +
 
 +
 +
The [[Prometheus PushGateway]] can be accessed via port 9091 on the following DNS name from within your cluster:
 +
myprometheus-pushgateway.default.svc.cluster.local
 +
 +
 +
Get the PushGateway URL by running these commands in the same shell:
 +
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=pushgateway" -o jsonpath="{.items[0].metadata.name}")
 +
  kubectl --namespace default port-forward $POD_NAME 9091
 +
 +
For more information on running Prometheus, visit:
 +
https://prometheus.io/
  
Get the Alertmanager URL by running these commands in the same shell:
+
== After installation ==
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=alertmanager" -o jsonpath="{.items[0].metadata.name}")
+
[[kubectl get svc]]
  kubectl --namespace default port-forward $POD_NAME 9093
+
#################################################################################
+
NAME                                    TYPE            CLUSTER-IP            EXTERNAL-IP.          PORT (S)            AGE     
######  WARNING: Pod Security Policy has been moved to a global property. #####
+
  kubernetes                              [[ClusterIP]]        172.20.0.1            <none>                443/TCP              5d1 6h
######            use .Values.podSecurityPolicy.enabled with pod-based      #####
+
myprometheus-[[alertmanager]]                ClusterIP        172.20.84.207          <none>                [[80]]/TCP              7m20s
######            annotations                                              #####
+
myprometheus-[[kube-state-metrics]]          ClusterIP        172.20.65.0            <none>                [[8080]]/TCP            7m20s
######            (e.g. .Values.nodeExporter.podSecurityPolicy.annotations) #####
+
myprometheus-[[node-exporter]]              ClusterIP        172.20.140.35          <none>                [[9100]]/TCP            7m20s
#################################################################################
+
myprometheus-[[pushgateway]]                ClusterIP        172.20.36.147          <none>                [[9091]]/TCP            7m20s
 
+
myprometheus-server                      ClusterIP        172.20.47.251          <none>                80/TCP                7m20s
 
 
The Prometheus PushGateway can be accessed via port 9091 on the following DNS name from within your cluster:
 
myprometheus-pushgateway.default.svc.cluster.local
 
 
 
 
 
Get the PushGateway URL by running these commands in the same shell:
 
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=pushgateway" -o jsonpath="{.items[0].metadata.name}")
 
  kubectl --namespace default port-forward $POD_NAME 9091
 
 
 
For more information on running Prometheus, visit:
 
https://prometheus.io/
 
</pre>
 
  
 +
== Related ==
 +
* <code>[[kubectl get svc]]</code>
 +
* <code>[[running PreBind plugin "VolumeBinding": binding volumes: timed out waiting for the condition]]</code>
 +
* <code>[[helm upgrade --install]]</code>
 +
* <code>[[helm install prometheus]]</code>
 +
* <code>[[aws-ebs-csi-driver]], [[ebs.csi.aws.com]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 10:51, 30 November 2023

helm install prometheus

Example 2023[edit]

NAME: myprometheus
LAST DEPLOYED: Wed Mar  1 20:03:52 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:
The Prometheus server can be accessed via port 80 on the following DNS name from within your 
cluster:
myprometheus-server.default.svc.cluster.local
 

Get the Prometheus server URL by running these commands in the same shell:
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=server" -o 
jsonpath="{.items[0].metadata.name}")
  kubectl --namespace default port-forward $POD_NAME 9090
 

The Prometheus alertmanager can be accessed via port  on the following DNS name from within your 
cluster:
myprometheus-%!s(<nil>).default.svc.cluster.local
 

Get the Alertmanager URL by running these commands in the same shell:
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=" -o jsonpath="{.items[0].metadata.name}")
  kubectl --namespace default port-forward $POD_NAME 9093
#################################################################################
######   WARNING: Pod Security Policy has been disabled by default since    #####
######            it deprecated after k8s 1.25+. use                        #####
######            (index .Values "prometheus-node-exporter" "rbac"          #####
###### .          "pspEnabled") with (index .Values                         #####
######            "prometheus-node-exporter" "rbac" "pspAnnotations")       #####
######            in case you still need it.                                #####
################################################################################# 
 
The Prometheus PushGateway can be accessed via port 9091 on the following DNS name from within your cluster:
myprometheus-prometheus-pushgateway.default.svc.cluster.local
 

Get the PushGateway URL by running these commands in the same shell:
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus-pushgateway,component=pushgateway" -o jsonpath="{.items[0].metadata.name}")
  kubectl --namespace default port-forward $POD_NAME 9091

For more information on running Prometheus, visit:
https://prometheus.io/

Example 2022[edit]

helm install myprometheus prometheus-community/prometheus
NAME: myprometheus
LAST DEPLOYED: Wed May 25 19:52:07 2022
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
The Prometheus server can be accessed via port 80 on the following DNS name from within your cluster:
myprometheus-server.default.svc.cluster.local
  

Get the Prometheus server URL by running these commands in the same shell:
 export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}")
 kubectl --namespace default port-forward $POD_NAME 9090
 

The Prometheus alertmanager can be accessed via port 80 on the following DNS name from within your cluster:
myprometheus-alertmanager.default.svc.cluster.local
 

Get the Alertmanager URL by running these commands in the same shell:
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=alertmanager" -o jsonpath="{.items[0].metadata.name}")
  kubectl --namespace default port-forward $POD_NAME 9093
#################################################################################
######   WARNING: Pod Security Policy has been moved to a global property.  #####
######            use .Values.podSecurityPolicy.enabled with pod-based      #####
######            annotations                                               #####
######            (e.g. .Values.nodeExporter.podSecurityPolicy.annotations) #####
#################################################################################
 

The Prometheus PushGateway can be accessed via port 9091 on the following DNS name from within your cluster:
myprometheus-pushgateway.default.svc.cluster.local


Get the PushGateway URL by running these commands in the same shell:
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=pushgateway" -o jsonpath="{.items[0].metadata.name}")
  kubectl --namespace default port-forward $POD_NAME 9091

For more information on running Prometheus, visit:
https://prometheus.io/

After installation[edit]

kubectl get svc

NAME                                     TYPE             CLUSTER-IP             EXTERNAL-IP.           PORT (S)             AGE      
kubernetes                               ClusterIP        172.20.0.1             <none>                 443/TCP              5d1 6h
myprometheus-alertmanager                ClusterIP        172.20.84.207          <none>                 80/TCP               7m20s
myprometheus-kube-state-metrics          ClusterIP        172.20.65.0            <none>                 8080/TCP             7m20s
myprometheus-node-exporter               ClusterIP        172.20.140.35          <none>                 9100/TCP             7m20s
myprometheus-pushgateway                 ClusterIP        172.20.36.147          <none>                 9091/TCP             7m20s
myprometheus-server                      ClusterIP        172.20.47.251          <none>                 80/TCP                7m20s

Related[edit]

See also[edit]

Advertising: