aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/monitoring/alerts/Makefile
blob: c599ee60fb1ef8515457a9f523eb13a53713cc54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
.PHONY: alerts alertmanager

all: alerts alertmanager

# Upload the alerting rules to the Kubernetes cluster
alerts:
	kubectl create configmap -n monitoring prometheus-alert-rules --from-file=alerts.d/ -o yaml --dry-run=client | kubectl apply -f -

# Upload the alertmanager configuration to the Kubernetes cluster
alertmanager:
	kubectl create configmap -n monitoring alertmanager-config --from-file=alertmanager.yaml=alertmanager.yaml -o yaml --dry-run=client | kubectl apply -f -