Skip to content

Latest commit

 

History

History
32 lines (30 loc) · 774 Bytes

File metadata and controls

32 lines (30 loc) · 774 Bytes

Add the Prometheus charts repository to your helm configuration:

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
helm repo update

Install Prometheus:

helm install prometheus prometheus-community/prometheus --create-namespace --namespace prometheus

Prometheus web interface ingress file:

---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx
  name: prometheus
  namespace: prometheus
spec:
  rules:
  - host: metrics.monlog.ir
    http:
      paths:
      - backend:
          serviceName: prometheus-server
          servicePort: 80
        path: /