-
-
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 k8sattributes processor to otel collector * Fix monitoring part of kubernetes internals * Fix adding k8s metadata to observability * Add k8s metadata to telemetry * fix collector affinity * WIP relabel prometheus metrics * Align metadata naming * Fix linking traces to logs * Monitor jupyter kernels directly - auto-instrumentation does not work * Add dashboards * Add dashboards (broken due to GitHub auth and branch) --------- Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
- Loading branch information
1 parent
a924b4d
commit 664f10c
Showing
10 changed files
with
6,609 additions
and
110 deletions.
There are no files selected for viewing
1,183 changes: 1,183 additions & 0 deletions
1,183
charts/datalayer-observer/dashboards/datalayer-service.json
Large diffs are not rendered by default.
Oops, something went wrong.
2,796 changes: 2,796 additions & 0 deletions
2,796
charts/datalayer-observer/dashboards/remote-kernels-details.json
Large diffs are not rendered by default.
Oops, something went wrong.
2,317 changes: 2,317 additions & 0 deletions
2,317
charts/datalayer-observer/dashboards/remote-kernels-overview.json
Large diffs are not rendered by default.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
charts/datalayer-observer/templates/collector-servicemonitor.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,44 @@ | ||
{{- if .Values.collector.serviceMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ default .Values.observer.namespace .Release.Namespace }}-opentelemetry-collector | ||
namespace: {{ default .Values.observer.namespace .Release.Namespace }} | ||
labels: | ||
app: opentelemetry-collector | ||
monitoring.datalayer.io/enabled: "true" | ||
monitoring.datalayer.io/instance: "observer" | ||
{{- with .Values.collector.serviceMonitor.additionalLabels }} | ||
{{ toYaml . | indent 4 }} | ||
{{- end }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: opentelemetry-collector | ||
app.kubernetes.io/name: datalayer-collector-collector | ||
endpoints: | ||
# Collector metrics monitoring | ||
- port: metrics | ||
{{- if .Values.collector.serviceMonitor.interval }} | ||
interval: {{ .Values.collector.serviceMonitor.interval }} | ||
{{- end }} | ||
# Scraping of collected metrics | ||
- port: prometheus | ||
{{- if .Values.collector.serviceMonitor.interval }} | ||
interval: {{ .Values.collector.serviceMonitor.interval }} | ||
{{- end }} | ||
relabelings: | ||
- regex: (container|endpoint|namespace|pod|service) | ||
action: labeldrop | ||
metricRelabelings: | ||
- regex: (job|instance) | ||
action: labeldrop | ||
# Restore original label (hide the collector proxy) | ||
- regex: "exported_(.*)" | ||
action: "labelmap" | ||
- regex: "exported_(.*)" | ||
action: "labeldrop" | ||
namespaceSelector: | ||
matchNames: | ||
- {{ default .Values.observer.namespace .Release.Namespace }} | ||
{{- 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
16 changes: 0 additions & 16 deletions
16
charts/datalayer-observer/templates/kernels-instrumentation.yaml
This file was deleted.
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
29 changes: 29 additions & 0 deletions
29
charts/datalayer-observer/templates/logs-collector-cluster-role.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,29 @@ | ||
{{- if index .Values "opentelemetry-operator" "enabled" }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: datalayer-logs-collector | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["pods"] | ||
verbs: ["get", "watch", "list"] | ||
- apiGroups: ["apps"] | ||
resources: ["replicasets"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["extensions"] | ||
resources: ["replicasets"] | ||
verbs: ["get", "list", "watch"] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: datalayer-logs-collector | ||
subjects: | ||
- kind: ServiceAccount | ||
name: datalayer-logs-collector-collector | ||
namespace: {{ default .Values.observer.namespace .Release.Namespace }} | ||
roleRef: | ||
kind: ClusterRole | ||
name: datalayer-logs-collector | ||
apiGroup: rbac.authorization.k8s.io | ||
{{- end }} |
Oops, something went wrong.