Editing Helm install prometheus example outputs

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  
  [[helm install prometheus]]
+
<pre>
 +
Get the PushGateway URL by running these commands in the same shel1:
 +
export POD NAME=$ (kubectl get pods --namespace default -1ta.name]")"appeprometheus, component-pushgater
 +
  kubectl --namespace default port-forward $POD NAME 9091
 +
 
 +
For more information on running Prometheus, visit:
 +
https://prometheus.io/
 +
[root@ip-10-0-2-112 -]# ^C
 +
[root@ip-10-0-2-112 -]# k get svc
 +
 
 +
NAME                                    TYPE            CLUSTER-IP            EXTERNAL-IP.          PORT (S)            AGE     
 +
kBs-dashboard-kubernetes-dashboard      ClusterIP        172.20.58.151          <none>                443/TCP              25h
 +
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>                0/TCP                7m20s
 +
 
 +
</pre>
 +
 
  
== Example 2023 ==
 
  
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 ==
 
 
  [[helm install]] myprometheus prometheus-community/prometheus
 
  [[helm install]] myprometheus prometheus-community/prometheus
 
  NAME: myprometheus
 
  NAME: myprometheus
Line 61: Line 35:
 
  NOTES:
 
  NOTES:
 
  The Prometheus server can be accessed via port 80 on the following DNS name from within your cluster:
 
  The Prometheus server can be accessed via port 80 on the following DNS name from within your cluster:
  myprometheus-server.[[default.svc.cluster.local]]
+
  myprometheus-server.default.svc.cluster.local
 
    
 
    
 
   
 
   
  [[Get the Prometheus server URL by running these commands in the same shell]]:
+
  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}")
 
   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]]
+
   kubectl --namespace default port-forward $POD_NAME [[9090]]
 
    
 
    
 
   
 
   
Line 75: Line 49:
 
  Get the Alertmanager URL by running these commands in the same shell:
 
  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}")
 
   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]]
+
   kubectl --namespace default port-forward $POD_NAME 9093
 
  #################################################################################
 
  #################################################################################
 
  ######  WARNING: Pod Security Policy has been moved to a global property.  #####
 
  ######  WARNING: Pod Security Policy has been moved to a global property.  #####
Line 94: Line 68:
 
  For more information on running Prometheus, visit:
 
  For more information on running Prometheus, visit:
 
  https://prometheus.io/
 
  https://prometheus.io/
 
== After installation ==
 
[[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 ==
 
== Related ==
 
* <code>[[kubectl get svc]]</code>
 
* <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 ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: