Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
display metrics for ignored published events in grafana [resource]
- Loading branch information
Showing
12 changed files
with
385 additions
and
1 deletion.
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
9 changes: 9 additions & 0 deletions
9
resources/event-bus/charts/publish-knative/templates/destination-rule.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,9 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: DestinationRule | ||
metadata: | ||
name: 'event-bus-publish-knative-metrics-destination-rule' | ||
spec: | ||
host: event-bus-publish-knative-metrics-service.event-bus.svc.cluster.local | ||
trafficPolicy: | ||
tls: | ||
mode: DISABLE |
17 changes: 17 additions & 0 deletions
17
resources/event-bus/charts/publish-knative/templates/metrics-service.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,17 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: '{{ template "publish-knative.fullname" . }}-metrics-service' | ||
labels: | ||
app: {{ template "publish-knative.fullname" . }} | ||
heritage: {{ .Release.Service | quote }} | ||
release: {{ .Release.Name | quote }} | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
spec: | ||
type: {{ .Values.service.type }} | ||
ports: | ||
- name: metrics-port | ||
port: {{ .Values.monitoring.port }} | ||
selector: | ||
app: {{ template "publish-knative.fullname" . }} | ||
release: {{ .Release.Name }} |
21 changes: 21 additions & 0 deletions
21
resources/event-bus/charts/publish-knative/templates/service-monitor.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,21 @@ | ||
--- | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
namespace: kyma-system | ||
name: '{{ template "publish-knative.fullname" . }}-service-monitor' | ||
labels: | ||
prometheus: monitoring | ||
app: {{ template "publish-knative.fullname" . }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: {{ template "publish-knative.fullname" . }} | ||
endpoints: | ||
- port: metrics-port | ||
interval: {{ .Values.monitoring.interval }} | ||
namespaceSelector: | ||
any: true |
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 |
---|---|---|
|
@@ -13,3 +13,5 @@ trace: | |
monitoring: | ||
grafana: enabled | ||
alerts: enabled | ||
port: 9090 | ||
interval: 30s |
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
9 changes: 9 additions & 0 deletions
9
resources/event-bus/charts/subscription-controller-knative/templates/destination-rule.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,9 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: DestinationRule | ||
metadata: | ||
name: {{ template "subscription-controller-knative-metrics-destination-rule.name" . }} | ||
spec: | ||
host: {{ template "subscription-controller-knative-metrics-service.name" . }}.{{ .Release.Namespace }}.svc.cluster.local | ||
trafficPolicy: | ||
tls: | ||
mode: DISABLE |
14 changes: 14 additions & 0 deletions
14
resources/event-bus/charts/subscription-controller-knative/templates/metrics-service.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: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "subscription-controller-knative-metrics-service.name" . }} | ||
labels: | ||
{{ include "subscription-controller-knative.labels.standard" . | indent 4 }} | ||
spec: | ||
type: {{ .Values.service.type }} | ||
ports: | ||
- name: metrics-port | ||
port: {{ .Values.monitoring.port }} | ||
selector: | ||
app: {{ template "subscription-controller-knative.fullname" . }} | ||
release: {{ .Release.Name }} |
20 changes: 20 additions & 0 deletions
20
resources/event-bus/charts/subscription-controller-knative/templates/service-monitor.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: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
namespace: kyma-system | ||
name: {{ template "subscription-controller-knative-metrics-service-monitor.name" . }} | ||
labels: | ||
prometheus: monitoring | ||
app: {{ template "subscription-controller-knative.fullname" . }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: {{ template "subscription-controller-knative.name" . }} | ||
endpoints: | ||
- port: metrics-port | ||
interval: {{ .Values.monitoring.interval }} | ||
namespaceSelector: | ||
any: true |
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 |
---|---|---|
|
@@ -8,5 +8,7 @@ image: | |
monitoring: | ||
grafana: enabled | ||
alerts: enabled | ||
port: 9090 | ||
interval: 30s | ||
service: | ||
type: ClusterIP |
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
Oops, something went wrong.