famous-florist-7218
11/18/2022, 8:49 AM{{- if and .Values.serviceMonitor.create .Values.global.datahub.monitoring.enablePrometheus -}}
apiVersion: <http://monitoring.coreos.com/v1|monitoring.coreos.com/v1>
kind: ServiceMonitor
metadata:
name: {{ printf "%s-%s" .Release.Name "datahub-gms" }}
labels:
{{- include "datahub-gms.labels" . | nindent 4 }}
{{- with .Values.serviceMonitor.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
endpoints:
- port: jmx
relabelings:
- separator: /
sourceLabels:
- namespace
- pod
targetLabel: instance
selector:
matchLabels:
<http://app.kubernetes.io/managed-by|app.kubernetes.io/managed-by>: Helm
<http://app.kubernetes.io/name|app.kubernetes.io/name>: datahub-gms
{{- end -}}bulky-electrician-72362
11/18/2022, 1:12 PMgmsbulky-electrician-72362
11/18/2022, 1:13 PMbulky-electrician-72362
11/18/2022, 1:13 PMfamous-florist-7218
11/21/2022, 3:04 AMfamous-florist-7218
12/02/2022, 12:55 PMrelease: prometheus-operator in ServiceMonitor. How do I correct it?bulky-electrician-72362
12/02/2022, 1:37 PM.datahub-gms.serviceMonitor.annotationsfamous-florist-7218
12/14/2022, 10:03 AMserviceMonitor:
create: true
annotations:
release: prometheus-operator
Error log:
client.go:521: [debug] Patch Deployment "cdg-acryl-datahub-actions" in namespace data
client.go:521: [debug] Patch Deployment "cdg-datahub-frontend" in namespace data
client.go:521: [debug] Patch Deployment "cdg-datahub-gms" in namespace data
client.go:512: [debug] Looks like there are no changes for Ingress "cdg-datahub-frontend"
client.go:512: [debug] Looks like there are no changes for Ingress "cdg-datahub-gms"
client.go:250: [debug] Created a new ServiceMonitor called "cdg-datahub-frontend" in data
client.go:512: [debug] Looks like there are no changes for ServiceMonitor "cdg-datahub-gms"
upgrade.go:434: [debug] warning: Upgrade "cdg" failed: cannot patch "cdg-datahub-frontend" with kind Service: Service "cdg-datahub-frontend" is invalid: spec.ports[2].name: Duplicate value: "jmx"
Error: UPGRADE FAILED: cannot patch "cdg-datahub-frontend" with kind Service: Service "cdg-datahub-frontend" is invalid: spec.ports[2].name: Duplicate value: "jmx"
helm.go:84: [debug] cannot patch "cdg-datahub-frontend" with kind Service: Service "cdg-datahub-frontend" is invalid: spec.ports[2].name: Duplicate value: "jmx"bulky-electrician-72362
12/14/2022, 10:05 AMfamous-florist-7218
12/14/2022, 10:10 AMdatahub-frontend:
enabled: true
image:
repository: linkedin/datahub-frontend-react
tag: "v0.9.3"
labels:
release: prometheus-operator
serviceMonitor:
create: true
annotations:
release: prometheus-operator
# Set up ingress to expose react front-end
ingress:
enabled: true
className: "gateway-internal"
enabled: true
annotations:
{}
# <http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>: nginx
# <http://kubernetes.io/tls-acme|kubernetes.io/tls-acme>: "true"
hosts:
- host: <http://xxxxxx.com|xxxxxx.com>
# redirectPaths:
# - path: /*
# name: ssl-redirect
# port: use-annotation
paths:
- /
# OIDC auth based on <https://datahubproject.io/docs/authentication/guides/sso/configure-oidc-react>
oidcAuthentication:
enabled: true
provider: google
clientId: xxxxxx
clientSecret: xxxxxx
# only needed if you would like to store the client secret in secret
# clientSecretRef:
# secretRef: auth-oidc-secret
# secretKey: auth-oidc-client-secret
extraEnvs:
- name: AUTH_OIDC_EXTRACT_GROUPS_ENABLED
value: "true"
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
cpu: 1.0
memory: 2G
requests:
cpu: 0.5
memory: 1G
nodeSelector:
cloud-managed/team: cloud-data
cloud-managed/capacitytype: on-demand
cloud-managed/nodetype: high-memfamous-florist-7218
12/14/2022, 10:13 AMbulky-electrician-72362
12/14/2022, 10:20 AMfamous-florist-7218
12/14/2022, 10:21 AMbulky-electrician-72362
12/14/2022, 10:21 AM.Values.global.datahub.monitoring.enablePrometheus is enabled right?famous-florist-7218
12/14/2022, 10:21 AMbulky-electrician-72362
12/14/2022, 10:22 AMkubectl get -o yaml svc cdg-datahub-frontend -n <namespace> to check the list of ports there?bulky-electrician-72362
12/14/2022, 10:23 AMfamous-florist-7218
12/14/2022, 10:25 AMports:
- name: http
nodePort: 32288
port: 9002
protocol: TCP
targetPort: http
- name: jmx
nodePort: 32631
port: 9100
protocol: TCP
targetPort: jmxfamous-florist-7218
12/14/2022, 10:32 AM❯ k get <http://servicemonitors.monitoring.coreos.com|servicemonitors.monitoring.coreos.com> -n data
NAME AGE
cdg-datahub-frontend 32m
cdg-datahub-gms 36mbulky-electrician-72362
12/14/2022, 10:54 AMfamous-florist-7218
12/14/2022, 11:09 AMfamous-florist-7218
12/14/2022, 11:42 AMDataHub dashboard? Since JVM Dashboard is totally OK, the DataHub dashboard couldn’t get data.famous-florist-7218
12/14/2022, 11:44 AMbulky-electrician-72362
12/14/2022, 11:48 AM