Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gh 668 #693

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions PROJECT
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Code generated by tool. DO NOT EDIT.
# This file is used to track the info used to scaffold your project
# and allow the plugins properly work.
# More info: https://book.kubebuilder.io/reference/project-config.html
domain: kuadrant.io
layout:
- go.kubebuilder.io/v3
plugins:
grafana.kubebuilder.io/v1-alpha: {}
manifests.sdk.operatorframework.io/v2: {}
scorecard.sdk.operatorframework.io/v2: {}
projectName: kuadrant-operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,38 @@
- op: add
path: /spec/template/spec/volumes/-
value:
name: grafana-appdeveloper
name: grafana-app-developer
configMap:
defaultMode: 420
name: grafana-appdeveloper
name: grafana-app-developer
- op: add
path: /spec/template/spec/volumes/-
value:
name: grafana-platformengineer
name: grafana-platform-engineer
configMap:
defaultMode: 420
name: grafana-platformengineer
name: grafana-platform-engineer
- op: add
path: /spec/template/spec/volumes/-
value:
name: grafana-businessuser
name: grafana-business-user
configMap:
defaultMode: 420
name: grafana-businessuser
name: grafana-business-user
- op: add
path: /spec/template/spec/volumes/-
value:
name: grafana-controller-resources
configMap:
defaultMode: 420
name: grafana-controller-resources
- op: add
path: /spec/template/spec/volumes/-
value:
name: grafana-controller-runtime
configMap:
defaultMode: 420
name: grafana-controller-runtime
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
Expand Down Expand Up @@ -97,7 +111,7 @@
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: grafana-tcproutes
mountPath: /grafana-dashboard-definitions/0/grafana-tcpcroutes
mountPath: /grafana-dashboard-definitions/0/grafana-tcproutes
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
Expand All @@ -106,15 +120,25 @@
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: grafana-appdeveloper
mountPath: /grafana-dashboard-definitions/0/grafana-appdeveloper
name: grafana-app-developer
mountPath: /grafana-dashboard-definitions/0/grafana-app-developer
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: grafana-business-user
mountPath: /grafana-dashboard-definitions/0/grafana-business-user
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: grafana-platform-engineer
mountPath: /grafana-dashboard-definitions/0/grafana-platform-engineer
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: grafana-businessuser
mountPath: /grafana-dashboard-definitions/0/grafana-businessuser
name: grafana-controller-runtime
mountPath: /grafana-dashboard-definitions/0/grafana-controller-runtime
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: grafana-platformengineer
mountPath: /grafana-dashboard-definitions/0/grafana-platformengineer
name: grafana-controller-resources
mountPath: /grafana-dashboard-definitions/0/grafana-controller-resources
24 changes: 14 additions & 10 deletions config/observability/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ resources:
- github.com/Kuadrant/gateway-api-state-metrics/config/examples/dashboards?ref=main
# To scrape istio metrics, 3 configurations are required:
# 1. Envoy metrics directly from the istio ingress gateway pod
- podmonitor-envoy.yaml
- prometheus/monitors/pod-monitor-envoy.yaml
# 2. Istiod metrics via the istiod service
- servicemonitor-istiod.yaml
- prometheus/monitors/service-monitor-istiod.yaml
# 3. Istio metrics exposed via envoy on 15020 in each application.
# We're using the additionalScrapeConfigs field of the Prometheus CR
# here to read existing prometheus scrape annotations on pods.
Expand All @@ -18,12 +18,17 @@ resources:
# exposed or named, so we need to drop to raw custom prometheus
# scrape config.
# See https://github.com/prometheus-operator/prometheus-operator/issues/3071#issuecomment-763746836
- additional-scrape-configs.yaml
- prometheus/additional-scrape-configs.yaml
#https://istio.io/latest/docs/reference/config/telemetry/#MetricSelector-IstioMetric
- telemetry.yaml
- prometheus/monitors/service-monitor-limitador-operator.yaml
- prometheus/monitors/service-monitor-kuadrant-operator.yaml
- prometheus/monitors/service-monitor-authorino-operator.yaml
- prometheus/monitors/service-monitor-dns-operator.yaml

- prometheus/telemetry.yaml

patchesStrategicMerge:
- cluster_role.yaml
- rbac/cluster_role.yaml

patches:
- target:
Expand Down Expand Up @@ -71,19 +76,19 @@ patchesJson6902:
version: v1
kind: Deployment
name: kube-state-metrics
path: ksm_deployment_patch.yaml
path: openshift/ksm_deployment_patch.yaml
- target:
group: rbac.authorization.k8s.io
version: v1
kind: ClusterRole
name: kube-state-metrics
path: ksm_clusterrole_patch.yaml
path: rbac/ksm_clusterrole_patch.yaml
- target:
group: apps
version: v1
kind: Deployment
name: grafana
path: grafana_deployment_patch.yaml
path: grafana/grafana_deployment_patch.yaml

generatorOptions:
disableNameSuffixHash: true
Expand All @@ -93,5 +98,4 @@ secretGenerator:
namespace: monitoring
behavior: replace
files:
- grafana_datasources.yaml

- grafana/grafana_datasources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

# Prometheus Monitor Service (Metrics)
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
control-plane: controller-manager
name: authorino-operator-metrics
namespace: kuadrant-system
spec:
endpoints:
- path: /metrics
port: metrics
scheme: http
selector:
matchLabels:
control-plane: authorino-operator


Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
control-plane: controller-manager
app.kubernetes.io/name: servicemonitor
app.kubernetes.io/instance: controller-manager-metrics-monitor
app.kubernetes.io/component: metrics
app.kubernetes.io/created-by: dns-operator
app.kubernetes.io/part-of: dns-operator
app.kubernetes.io/managed-by: kustomize
name: dns-operator-metrics-monitor
namespace: kuadrant-system
spec:
endpoints:
- path: /metrics
port: metrics
scheme: http
selector:
matchLabels:
control-plane: dns-operator-controller-manager

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

# Prometheus Monitor Service (Metrics)
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
control-plane: controller-manager
name: kuadrant-operator-metrics
namespace: kuadrant-system
spec:
endpoints:
- path: /metrics
port: metrics
scheme: http
selector:
matchLabels:
control-plane: controller-manager
app: kuadrant

Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ kind: ServiceMonitor
metadata:
labels:
control-plane: controller-manager
name: controller-manager-metrics-monitor
namespace: system
name: limitador-operator-metrics
namespace: kuadrant-system
spec:
endpoints:
- path: /metrics
Expand All @@ -15,3 +15,4 @@ spec:
selector:
matchLabels:
control-plane: controller-manager

2 changes: 0 additions & 2 deletions config/prometheus/kustomization.yaml

This file was deleted.

Loading
Loading