Add support for prometheus
[ric-plt/ric-dep.git] / helm / infrastructure / subcharts / prometheus / templates / NOTES.txt
1 {{- if .Values.server.enabled -}}
2 The Prometheus server can be accessed via port {{ .Values.server.service.servicePort }} on the following DNS name from within your cluster:
3 {{ template "prometheus.server.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
4
5 {{ if .Values.server.ingress.enabled -}}
6 From outside the cluster, the server URL(s) are:
7 {{- range .Values.server.ingress.hosts }}
8 http://{{ . }}
9 {{- end }}
10 {{- else }}
11 Get the Prometheus server URL by running these commands in the same shell:
12 {{- if contains "NodePort" .Values.server.service.type }}
13   export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "prometheus.server.fullname" . }})
14   export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
15   echo http://$NODE_IP:$NODE_PORT
16 {{- else if contains "LoadBalancer" .Values.server.service.type }}
17   NOTE: It may take a few minutes for the LoadBalancer IP to be available.
18         You can watch the status of by running 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "prometheus.server.fullname" . }}'
19
20   export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "prometheus.server.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
21   echo http://$SERVICE_IP:{{ .Values.server.service.servicePort }}
22 {{- else if contains "ClusterIP"  .Values.server.service.type }}
23   export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "prometheus.name" . }},component={{ .Values.server.name }}" -o jsonpath="{.items[0].metadata.name}")
24   kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 9090
25 {{- end }}
26 {{- end }}
27
28 {{- if .Values.server.persistentVolume.enabled }}
29 {{- else }}
30 #################################################################################
31 ######   WARNING: Persistence is disabled!!! You will lose your data when   #####
32 ######            the Server pod is terminated.                             #####
33 #################################################################################
34 {{- end }}
35 {{- end }}
36
37 {{ if .Values.alertmanager.enabled }}
38 The Prometheus alertmanager can be accessed via port {{ .Values.alertmanager.service.servicePort }} on the following DNS name from within your cluster:
39 {{ template "prometheus.alertmanager.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
40
41 {{ if .Values.alertmanager.ingress.enabled -}}
42 From outside the cluster, the alertmanager URL(s) are:
43 {{- range .Values.alertmanager.ingress.hosts }}
44 http://{{ . }}
45 {{- end }}
46 {{- else }}
47 Get the Alertmanager URL by running these commands in the same shell:
48 {{- if contains "NodePort" .Values.alertmanager.service.type }}
49   export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "prometheus.alertmanager.fullname" . }})
50   export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
51   echo http://$NODE_IP:$NODE_PORT
52 {{- else if contains "LoadBalancer" .Values.alertmanager.service.type }}
53   NOTE: It may take a few minutes for the LoadBalancer IP to be available.
54         You can watch the status of by running 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "prometheus.alertmanager.fullname" . }}'
55
56   export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "prometheus.alertmanager.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
57   echo http://$SERVICE_IP:{{ .Values.alertmanager.service.servicePort }}
58 {{- else if contains "ClusterIP"  .Values.alertmanager.service.type }}
59   export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "prometheus.name" . }},component={{ .Values.alertmanager.name }}" -o jsonpath="{.items[0].metadata.name}")
60   kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 9093
61 {{- end }}
62 {{- end }}
63
64 {{- if .Values.alertmanager.persistentVolume.enabled }}
65 {{- else }}
66 #################################################################################
67 ######   WARNING: Persistence is disabled!!! You will lose your data when   #####
68 ######            the AlertManager pod is terminated.                       #####
69 #################################################################################
70 {{- end }}
71 {{- end }}
72
73 {{- if .Values.nodeExporter.podSecurityPolicy.enabled }}
74 {{- else }}
75 #################################################################################
76 ######   WARNING: Pod Security Policy has been moved to a global property.  #####
77 ######            use .Values.podSecurityPolicy.enabled with pod-based      #####
78 ######            annotations                                               #####
79 ######            (e.g. .Values.nodeExporter.podSecurityPolicy.annotations) #####
80 #################################################################################
81 {{- end }}
82
83 {{ if .Values.pushgateway.enabled }}
84 The Prometheus PushGateway can be accessed via port {{ .Values.pushgateway.service.servicePort }} on the following DNS name from within your cluster:
85 {{ template "prometheus.pushgateway.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
86
87 {{ if .Values.pushgateway.ingress.enabled -}}
88 From outside the cluster, the pushgateway URL(s) are:
89 {{- range .Values.pushgateway.ingress.hosts }}
90 http://{{ . }}
91 {{- end }}
92 {{- else }}
93 Get the PushGateway URL by running these commands in the same shell:
94 {{- if contains "NodePort" .Values.pushgateway.service.type }}
95   export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "prometheus.pushgateway.fullname" . }})
96   export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
97   echo http://$NODE_IP:$NODE_PORT
98 {{- else if contains "LoadBalancer" .Values.pushgateway.service.type }}
99   NOTE: It may take a few minutes for the LoadBalancer IP to be available.
100         You can watch the status of by running 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "prometheus.pushgateway.fullname" . }}'
101
102   export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "prometheus.pushgateway.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
103   echo http://$SERVICE_IP:{{ .Values.pushgateway.service.servicePort }}
104 {{- else if contains "ClusterIP"  .Values.pushgateway.service.type }}
105   export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "prometheus.name" . }},component={{ .Values.pushgateway.name }}" -o jsonpath="{.items[0].metadata.name}")
106   kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 9091
107 {{- end }}
108 {{- end }}
109 {{- end }}
110
111 For more information on running Prometheus, visit:
112 https://prometheus.io/