-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.md
85 lines (68 loc) · 2.06 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Monitoring
The monitoring stack is deployed as [Flux Kustomization](https://github.com/weaveworks/weave-gitops-quickstart/tree/add-monitoring) that includes:
- Prometheus
- Grafana
- Kubernetes Dashboards
- Flux Dashboards
- Weave Gitops Grafana dashboards
## Requirements
- You have [Weave GitOps Enterprise](https://www.weave.works/product/gitops-enterprise/) installed on a cluster.
## Getting Started
A simple process to get started, that you could adapt to your context, follows.
1. Install [Kube Prometheus Stack](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack) on your cluster.
```yaml
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: weave-gitops-quickstart
namespace: flux-system
spec:
interval: 10m0s
ref:
branch: main
url: https://github.com/weaveworks/weave-gitops-quickstart
---
apiVersion: v1
kind: Namespace
metadata:
name: monitoring
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: kube-prometheus-stack
namespace: flux-system
spec:
interval: 10m0s
sourceRef:
kind: GitRepository
name: weave-gitops-quickstart
path: ./monitoring/kube-prometheus-stack
prune: true
targetNamespace: monitoring
wait: true
```
![kube-prometheus-stack-installed.png](imgs/kube-prometheus-stack-installed.png)
2. Deploy Kustomization having the monitoring config.
```yaml
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: monitoring-config
namespace: flux-system
spec:
interval: 10m0s
sourceRef:
kind: GitRepository
name: weave-gitops-quickstart
path: ./monitoring/weave-gitops
dependsOn:
- name: kube-prometheus-stack
prune: true
targetNamespace: monitoring
```
![weave-gitops-monitoring-config-installed.png](imgs/weave-gitops-monitoring-config-installed.png)
3. See the dashboards available in Grafana.
![weave-gitops-monitoring-dashboard-list.png](imgs/weave-gitops-monitoring-dashboard-list.png)
## Contributing
Just use this repo to open issues and contribute code via pull requests.