This repository has been archived by the owner on Jul 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grafana dashboard for system broker (#1839)
* introduce metrics collector * create path to instrumentation mapping * instrument handlers * add policy and service-monitor * fix path to instrumentation mapping * add metrics config * add custom buckets to catalog endpoint request duration histogram * fix instrumentation * add metrics server * register metrics collector * add dashboard configmap * make imports * adjust component PR reference * handle error * make imports * fix typo
- Loading branch information
1 parent
fdff31b
commit efa436a
Showing
15 changed files
with
2,157 additions
and
76 deletions.
There are no files selected for viewing
1,729 changes: 1,729 additions & 0 deletions
1,729
chart/compass/charts/system-broker/templates/dashboard-configmap.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Required because Prometheus Operator doesn't have Istio Sidecar | ||
apiVersion: security.istio.io/v1beta1 | ||
kind: PeerAuthentication | ||
metadata: | ||
name: {{ template "fullname" . }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: {{ .Chart.Name }} | ||
portLevelMtls: | ||
{{ .Values.metrics.port }}: | ||
mode: "PERMISSIVE" |
26 changes: 26 additions & 0 deletions
26
chart/compass/charts/system-broker/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,26 @@ | ||
{{- if eq .Values.global.metrics.enabled true -}} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ template "fullname" . }} | ||
labels: | ||
prometheus: monitoring | ||
app: {{ .Chart.Name }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
spec: | ||
endpoints: | ||
- port: metrics | ||
path: /metrics | ||
metricRelabelings: | ||
- sourceLabels: [ __name__ ] | ||
regex: ^(go_gc_duration_seconds|go_goroutines|go_memstats_alloc_bytes|go_memstats_heap_alloc_bytes|go_memstats_heap_inuse_bytes|go_memstats_heap_sys_bytes|go_memstats_stack_inuse_bytes|go_threads|http_requests_total|process_cpu_seconds_total|process_max_fds|process_open_fds|process_resident_memory_bytes|process_start_time_seconds|process_virtual_memory_bytes|go_sql_stats_connections_in_use|go_sql_stats_connections_idle|go_sql_stats_connections_max_open|compass_system_broker_catalog_request_duration_seconds_bucket|compass_system_broker_catalog_request_duration_seconds_count|compass_system_broker_catalog_request_duration_seconds_sum|compass_system_broker_catalog_response_size_bucket|compass_system_broker_catalog_response_size_count|compass_system_broker_catalog_response_size_sum|compass_system_broker_catalog_request_total|compass_system_broker_provision_request_duration_seconds_bucket|compass_system_broker_provision_request_duration_seconds_count|compass_system_broker_provision_request_duration_seconds_sum|compass_system_broker_provision_response_size_bucket|compass_system_broker_provision_response_size_count|compass_system_broker_provision_response_size_sum|compass_system_broker_provision_request_total|compass_system_broker_deprovision_request_duration_seconds_bucket|compass_system_broker_deprovision_request_duration_seconds_count|compass_system_broker_deprovision_request_duration_seconds_sum|compass_system_broker_deprovision_response_size_bucket|compass_system_broker_deprovision_response_size_count|compass_system_broker_deprovision_response_size_sum|compass_system_broker_deprovision_request_total|compass_system_broker_bind_request_duration_seconds_bucket|compass_system_broker_bind_request_duration_seconds_count|compass_system_broker_bind_request_duration_seconds_sum|compass_system_broker_bind_response_size_bucket|compass_system_broker_bind_response_size_count|compass_system_broker_bind_response_size_sum|compass_system_broker_bind_request_total|compass_system_broker_unbind_request_duration_seconds_bucket|compass_system_broker_unbind_request_duration_seconds_count|compass_system_broker_unbind_request_duration_seconds_sum|compass_system_broker_unbind_response_size_bucket|compass_system_broker_unbind_response_size_count|compass_system_broker_unbind_response_size_sum|compass_system_broker_unbind_request_total)$ | ||
action: keep | ||
namespaceSelector: | ||
matchNames: | ||
- "{{ .Release.Namespace }}" | ||
selector: | ||
matchLabels: | ||
app: {{ .Chart.Name }} | ||
{{- end }} |
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
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.