Skip to content

fix(yaml): 3P Prom Retina win changes #1485

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

Closed
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
- name: config
mountPath: /retina/config
containers:
- name: {{ include "retina.name" . }}
- name: {{ include "retina.name" . }}
readinessProbe:
httpGet:
path: /metrics
Expand Down Expand Up @@ -138,10 +138,10 @@ spec:
{{- end }}
{{- if fromYamlArray .Values.enabledPlugin_linux | has "infiniband" }}
- name: sysclassnet
hostPath:
hostPath:
path: /sys/class/net
- name: sysclassinfiniband
hostPath:
hostPath:
path: /sys/class/infiniband
{{- end }}
{{- if .Values.affinity }}
Expand All @@ -167,10 +167,6 @@ metadata:
k8s-app: {{ include "retina.name" . }}
name: {{ .Values.agent_win.name }}
namespace: {{ .Values.namespace }}
annotations:
prometheus.io/port: "{{ .Values.retinaPort }}"
prometheus.io/scrape: "true"
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
spec:
selector:
matchLabels:
Expand All @@ -184,6 +180,10 @@ spec:
k8s-app: {{ include "retina.name" . }}
name: {{ include "retina.name" . }}
namespace: {{ .Values.namespace }}
annotations:
prometheus.io/port: "{{ .Values.retinaPort }}"
prometheus.io/scrape: "true"
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
spec:
serviceAccountName: {{ .Values.serviceAccount.name }}
{{- if .Values.priorityClassName }}
Expand Down
22 changes: 22 additions & 0 deletions deploy/standard/prometheus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,25 @@ prometheus:
- source_labels: [__name__]
action: keep
regex: (.*)

- job_name: "retina-win-pods"
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels: [__meta_kubernetes_pod_container_name]
action: keep
regex: retinawin
- source_labels:
[__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
separator: ":"
regex: ([^:]+)(?::\d+)?
target_label: __address__
replacement: ${1}:${2}
action: replace
- source_labels: [__meta_kubernetes_pod_node_name]
action: replace
target_label: instance
metric_relabel_configs:
- source_labels: [__name__]
action: keep
regex: (.*)
1 change: 1 addition & 0 deletions site/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const config = {
{ name: "og:site_name", content: "Retina" },
{ name: "og:image:width", content: "1200" },
{ name: "og:image:height", content: "600" },
{ name: "og:description", content: "Retina is a cloud-agnostic, open-source eBPF-based Kubernetes network observability platform that provides a centralized hub for monitoring application health, network health, and security." },
],
navbar: {
logo: {
Expand Down
Loading