-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Nairn <[email protected]>
- Loading branch information
Showing
12 changed files
with
117 additions
and
4 deletions.
There are no files selected for viewing
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,2 @@ | ||
resources: | ||
- github.com/metallb/metallb/config/native?ref=v0.13.7 |
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,12 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: Prometheus | ||
metadata: | ||
name: k8s | ||
namespace: monitoring | ||
spec: | ||
remoteWrite: | ||
- url: http://thanos-receive-router:19291/api/v1/receive | ||
writeRelabelConfigs: | ||
- action: replace | ||
replacement: cluster1 | ||
targetLabel: cluster_id |
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,16 @@ | ||
resources: | ||
- github.com/kuadrant/kuadrant-operator/config/observability?ref=main | ||
- ./thanos | ||
- github.com/kuadrant/kuadrant-operator/examples/dashboards?ref=main | ||
- github.com/kuadrant/kuadrant-operator/examples/alerts?ref=main | ||
|
||
patches: | ||
- target: | ||
kind: ServiceMonitor | ||
patch: | | ||
$patch: delete | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: ANY | ||
- path: k8s_prometheus_patch.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,10 @@ | ||
resources: | ||
- github.com/kuadrant/kuadrant-operator/config/thanos?ref=main | ||
|
||
patches: | ||
- patch: |- | ||
$patch: delete | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: monitoring |
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 |
---|---|---|
@@ -1,5 +1,28 @@ | ||
|
||
Create a kind cluster with prometheus/thanos installed and configured | ||
```shell | ||
make kube-burner | ||
./bin/kube-burner init -c config.yaml | ||
``` | ||
make local-setup | ||
kubectl apply --server-side -k config/observability | ||
kubectl apply --server-side -k config/observability # Run twice if it fails the first time | ||
``` | ||
|
||
Forward port for prometheus | ||
```shell | ||
kubectl -n monitoring port-forward service/thanos-query 9090:9090 | ||
``` | ||
|
||
Forward port for graphana (Optional) | ||
```shell | ||
kubectl -n monitoring port-forward service/grafana 3000:3000 | ||
``` | ||
Access dashboards http://127.0.0.1:3000 | ||
|
||
Tail all operator logs (Optional) | ||
```shell | ||
kubectl stern -l control-plane=dns-operator-controller-manager -A | ||
``` | ||
|
||
Run default scale test(1 iteration using the inmemory provider) | ||
```shell | ||
PROMETHEUS_URL=http://127.0.0.1:9090 PROMETHEUS_TOKEN="" make test-scale | ||
``` |
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
resources: | ||
- ../../../config/manager | ||
- ../../../config/default | ||
|
||
patches: | ||
- patch: |- | ||
|
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,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
control-plane: dns-operator-controller-manager | ||
name: dns-operator-controller-manager-metrics-service | ||
spec: | ||
ports: | ||
- name: metrics | ||
port: 8080 | ||
targetPort: metrics | ||
selector: | ||
control-plane: dns-operator-controller-manager |
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: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
labels: | ||
control-plane: controller-manager | ||
name: dns-operator-metrics-monitor | ||
spec: | ||
endpoints: | ||
- path: /metrics | ||
port: metrics | ||
scheme: http | ||
selector: | ||
matchLabels: | ||
control-plane: dns-operator-controller-manager |
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,2 @@ | ||
- query: sum(rate(container_cpu_usage_seconds_total{container="",namespace=~"kuadrant-system|kuadrant-dns-operator-*|scale-test-.*"}[5m])) by(namespace) | ||
metricName: namespaceCPU |
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,2 @@ | ||
* | ||
!.gitignore |