Skip to content

Commit a4edc15

Browse files
authored
Merge pull request #10 from bserrato7900/graphana
graphana
2 parents 8479d3c + 9c90294 commit a4edc15

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.bashrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
alias graf="bash metrics/kubernetes-grafana/create.sh && \
3+
bash metrics/kubernetes-node-exporter/create.sh && \
4+
bash metrics/kubernetes-prometheus/create.sh"
5+
alias metrics="kubectl port-forward grafana-6648db4b8b-cr5xx 3000:3000 -n monitoring"

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@
3232
- `bash .namespace.sh namespace scale-namespace`
3333
- make sure you can curl and get an output
3434
- `curl localhost:8080`
35+
- run create script in each metrics sub directory
36+
- alias for this in .bashrc
37+
- portforward grafana
38+
- ```kubectl port-forward grafana-6648db4b8b-cr5xx 3000:3000 -n monitoring```
39+
- alias for this in .bashrc
40+
- grapha needs to be initialzed with prometheus at start
41+
3542

3643
## Test
3744
- test with hey tool

k8s-files/scale-namespace.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@ apiVersion: v1
22
kind: Namespace
33
metadata:
44
name: scale-namespace
5+
6+
---
7+
8+
apiVersion: v1
9+
kind: Namespace
10+
metadata:
11+
name: monitoring

0 commit comments

Comments
 (0)