-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more components to monitoring stack
- Loading branch information
1 parent
310db11
commit 5c15ce0
Showing
7 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
clusters/dqs.dd.soeren.cloud/monitoring/blackbox-exporter/config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
modules: | ||
dns_soerenschneider: | ||
dns: | ||
query_name: router.ez.soeren.cloud | ||
query_type: A | ||
validate_answer_rrs: | ||
fail_if_not_matches_regexp: | ||
- "router.ez.soeren.cloud.\t.*\tIN\tA\t.*192\\.168\\.2\\.3" | ||
prober: dns | ||
http: | ||
http: | ||
tls_config: | ||
cert_file: /certs/tls.crt | ||
key_file: /certs/tls.key | ||
valid_status_codes: | ||
- 200 | ||
- 204 | ||
- 301 | ||
- 302 | ||
- 403 | ||
- 404 | ||
prober: http | ||
timeout: 5s | ||
http_2xx: | ||
prober: http | ||
timeout: 5s | ||
icmp: | ||
icmp: | ||
preferred_ip_protocol: ip4 | ||
prober: icmp | ||
timeout: 2s | ||
tcp_cert: | ||
prober: tcp | ||
tcp: | ||
tls: true | ||
timeout: 2s | ||
tcp_connect: | ||
prober: tcp | ||
timeout: 2s |
14 changes: 14 additions & 0 deletions
14
clusters/dqs.dd.soeren.cloud/monitoring/blackbox-exporter/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: monitoring | ||
resources: | ||
- ../../../../apps/monitoring/blackbox_exporter | ||
components: | ||
- ../../../../apps/monitoring/blackbox_exporter/components/custom-config | ||
- ../../../../apps/monitoring/blackbox_exporter/components/reverse-proxy | ||
- ../../../../apps/monitoring/blackbox_exporter/components/tls-client-cert | ||
configMapGenerator: | ||
- name: blackbox-exporter-config | ||
files: | ||
- config.yaml |
8 changes: 8 additions & 0 deletions
8
clusters/dqs.dd.soeren.cloud/monitoring/kube-state-metrics/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: monitoring | ||
resources: | ||
- ../../../../apps/monitoring/kube-state-metrics | ||
components: | ||
- ../../../../apps/monitoring/kube-state-metrics/components/rbac |
33 changes: 33 additions & 0 deletions
33
clusters/dqs.dd.soeren.cloud/monitoring/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: monitoring | ||
resources: | ||
- namespace.yaml | ||
- alertmanager | ||
- blackbox-exporter | ||
- karma | ||
- kube-state-metrics | ||
- prometheus | ||
- pushgateway | ||
- vmalert | ||
components: | ||
- ../../../apps/monitoring/components/tls-client-cert | ||
- ../../../apps/monitoring/components/reverse-proxy | ||
- ../../../apps/monitoring/components/reverse-proxy-istio | ||
patches: | ||
- target: | ||
kind: VirtualService | ||
name: monitoring-reverse-proxy | ||
patch: |- | ||
- op: "replace" | ||
path: "/spec/hosts" | ||
value: | ||
- "monitoring.dqs.dd.soeren.cloud" | ||
- target: | ||
kind: Issuer | ||
name: vault-issuer | ||
patch: |- | ||
- op: "replace" | ||
path: "/spec/vault/auth/kubernetes/mountPath" | ||
value: "/v1/auth/dqs.dd.soeren.cloud" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
kind: Namespace | ||
apiVersion: v1 | ||
metadata: | ||
name: monitoring | ||
labels: | ||
name: monitoring |
8 changes: 8 additions & 0 deletions
8
clusters/dqs.dd.soeren.cloud/monitoring/pushgateway/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: monitoring | ||
resources: | ||
- ../../../../apps/monitoring/pushgateway | ||
components: | ||
- ../../../../apps/monitoring/pushgateway/components/reverse-proxy |
20 changes: 20 additions & 0 deletions
20
clusters/dqs.dd.soeren.cloud/monitoring/vmalert/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: monitoring | ||
resources: | ||
- ../../../../apps/monitoring/vmalert | ||
components: | ||
- ../../../../apps/monitoring/vmalert/components/tls-client-cert | ||
- ../../../../apps/monitoring/vmalert/components/initcontainer-seed-rules | ||
patches: | ||
- target: | ||
kind: Deployment | ||
name: vmalert | ||
patch: | | ||
- op: add | ||
path: "/spec/template/spec/containers/0/args" | ||
value: | ||
- "-notifier.url=http://alertmanager" | ||
- "-datasource.url=http://prometheus" | ||
- "-rule=/rules/*.rules" |