Repo to test monitoring practies on Kubernetes cluster
- Have
kubectl
installed and pointing to the correct cluster. - Also requires
helm
,curl
, andenvsubst
onlocal systems
. - The
cluster
must also havetiller
anddocker
installed.- These are all installed into the
'default' namespace
, - though this can be changed with a simple
'ctrl + H'
to - whichever namespace you prefer.
- These are all installed into the
-
Create metrics agent configmap.
grafana-agent_configmap.sh
-
Create Agent StatefulSet
grafana-stateful_set.sh
-
Deploy kubernetes state metrics.
grafana-kubernetes-state-metrics.sh
-
Deploy logging agent's configmap.
grafana-logs_Agent_configMap.sh
-
This finally installs the Grafana agent to the cluster and configures the RBAC permissions.
grafana-agent_daemonset.sh
All done! You've just deployed monitoring to your Grafana Cloud!
Jenkins Integration: