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

feat(kube-eagle-helm-chart): Add pod labels to metrics #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ helm install --name=kube-eagle kube-eagle/kube-eagle
| `serviceMonitor.additionalLabels` | Additional labels to add to the ServiceMonitor | |
| `metricsNamespace` | Prefix of exposed prometheus metrics | `eagle` |
| `logLevel` | Logger's log granularity (debug, info, warn, error, fatal, panic) | `info` |
| `enableLabels` | Add label information for each pod-related metrics | `false` |
| `ingress.enabled` | Enables Ingress | `false` |
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.hosts` | Ingress accepted hostnames | `[]` |
Expand Down
2 changes: 2 additions & 0 deletions kube-eagle/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ spec:
value: {{ .Values.metricsNamespace | quote }}
- name: LOG_LEVEL
value: {{ .Values.logLevel | quote }}
- name: ENABLE_LABELS
value: {{ .Values.enableLabels | quote }}
{{- if .Values.env }}
{{- with .Values.env }}
{{- toYaml . | nindent 12 }}
Expand Down
4 changes: 3 additions & 1 deletion kube-eagle/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ metricsNamespace: eagle

logLevel: info

enableLabels: false

podSecurityContext:
runAsUser: 99
fsGroup: 99
Expand All @@ -93,4 +95,4 @@ env: {}
# fieldRef:
# fieldPath: status.podIP
# - name: SERVICE_8000_NAME
# value: metrics-server-exporter
# value: metrics-server-exporter