Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shalb/cluster.dev-monitoring
Monitoring stack for cluster.dev
https://github.com/shalb/cluster.dev-monitoring
Last synced: about 1 month ago
JSON representation
Monitoring stack for cluster.dev
- Host: GitHub
- URL: https://github.com/shalb/cluster.dev-monitoring
- Owner: shalb
- License: apache-2.0
- Created: 2020-07-23T12:53:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-28T14:43:01.000Z (almost 4 years ago)
- Last Synced: 2023-06-13T23:18:08.384Z (over 1 year ago)
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Info
Monitoring stack based on [chart](https://github.com/helm/charts/tree/master/stable/prometheus-operator)
# Example app
## Generic example
kubernetes/apps/monitoring/monitoring.yaml
```
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: monitoring
namespace: argocd
spec:
destination:
namespace: monitoring
server: 'https://kubernetes.default.svc'
source:
path: ./
repoURL: 'https://github.com/shalb/cluster.dev-monitoring'
targetRevision: master
helm:
values: |
prometheus-operator:
prometheus:
prometheusSpec:
externalLabels:
cluster_name: cluster-dev-test
server_env: test
project: test
externalUrl: "https://prometheus.local.lan"
project: default
syncPolicy:
automated:
prune: true
selfHeal: true
```kubernetes/apps/monitoring/namespace.yaml
```
apiVersion: v1
kind: Namespace
metadata:
name: monitoring
labels:
app: prometheus-operator
```## Azure example
kubernetes/apps/monitoring/monitoring.yaml
```
...
values: |
prometheus-operator:
prometheusOperator:
admissionWebhooks:
failurePolicy: Fail
enabled: false
tlsProxy:
enabled: false
grafana:
adminUser: admin
adminPassword: prom-operator
ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
path: /
hosts:
- grafana.dev.azure.com
tls:
- hosts:
- grafana.dev.azure.com
secretName: grafana-tls-secret
...
```# Access
## Grafana
Create a proxy connection to your machine
Default credentials:
User: `admin`
Password: `prom-operator````
export POD_NAME=$(kubectl get pods -n monitoring -l "app=prometheus" -o jsonpath="{.items[0].metadata.name}")
kubectl -n monitoring port-forward --address 127.0.0.1 $POD_NAME 19090:9090
```Access it via http://127.0.0.1:13000/
# Prometheus
Create a proxy connection to your machine
```
POD_NAME=$(kubectl get pods -n monitoring -l "app.kubernetes.io/name=grafana" -o jsonpath="{.items[0].metadata.name}")
kubectl -n monitoring port-forward --address 127.0.0.1 $POD_NAME 13000:3000
```Access it via http://127.0.0.1:19090/