Prometheus and Grafana Helm Templates
Prometheus and Grafana Helm Templates
helm install prometheus prometheus-community/prometheus
--namespace prometheus
--set alertmanager.persistentVolume.storageClass="gp2"
--set server.persistentVolume.storageClass="gp2"
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
The Prometheus PushGateway can be accessed via port 9091 on the following DNS name from within your cluster: prometheus-pushgateway.prometheus.svc.cluster.local
prometheus-kube-state-metrics ClusterIP 10.100.114.196 <none> 8080/TCP 3m27s
prometheus-alertmanager ClusterIP 10.100.118.150 <none> 80/TCP 3m27s prometheus-kube-state-metrics ClusterIP 10.100.114.196 <none> 8080/TCP 3m27s prometheus-node-exporter ClusterIP None <none> 9100/TCP 3m27s prometheus-pushgateway ClusterIP 10.100.18.49 <none> 9091/TCP 3m27s prometheus-server ClusterIP 10.100.55.90 <none> 80/TCP 3m27s
cat << EoF > /tmp/grafana.yaml datasources: datasources.yaml: apiVersion: 1 datasources: - name: Prometheus type: prometheus url: http://prometheus-server.prometheus.svc.cluster.local access: proxy isDefault: true EoF
helm install grafana grafana/grafana
--namespace grafana
--set persistence.storageClassName="gp2"
--set persistence.enabled=true
--set adminPassword='EKS!sAWSome'
--values /tmp/grafana.yaml
--set service.type=NodePort
apiVersion: extensions/v1beta1 kind: Ingress metadata: name: grafana-ingress namespace: grafana annotations: kubernetes.io/ingress.class: 'nginx' spec: rules: - host: grafana.ovvio.co http: paths: - path: backend: serviceName: grafana servicePort: 3000
Created on 9/24/2021