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

Grafana Dashboard #35

Closed
liyongxian opened this issue Feb 16, 2022 · 7 comments
Closed

Grafana Dashboard #35

liyongxian opened this issue Feb 16, 2022 · 7 comments

Comments

@liyongxian
Copy link

Doc has no Json of Grafana Dashboard For kubenurse

@eli-halych
Copy link
Contributor

I was also looking for it and couldn't find it in the repo.

@eli-halych
Copy link
Contributor

@djboris9 can you help us with that, please?

@djboris9
Copy link
Collaborator

djboris9 commented Mar 29, 2022

Sorry @liyongxian and @eli-halych I'm currently busy and had missed the issues.

Can you please try out this dashboard: https://github.com/djboris9/kubenurse/blob/d6b2d260ce150d69c5e39240dd3d4ea3e0e61232/doc/grafana-kubenurse.json

If it works, I will merge it into this repository and probably add it to helm too.

@ywllongge
Copy link

Thanks@[djboris9]

@eli-halych
Copy link
Contributor

eli-halych commented May 12, 2022

@djboris9
It worked! I had to change a few things in the helm chart though. I added ServiceMonitor:

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: {{ include "name" . | quote }}
  namespace: {{ .Values.namespace }}
  labels:
    release: {{ .Values.release }}
    k8s-app: {{ include "name" . | quote }}
{{ include "common-labels" . | indent 4 }}
spec:
  jobLabel: k8s-app
  endpoints:
  - port: {{ .Values.service.name }}
    interval: 30s
    scheme: http
  selector:
    matchLabels:
     app: {{ include "name" . | quote }}
  namespaceSelector:
    matchNames:
    - {{ .Values.namespace }}

and add release: prometheus label to ServiceMonitor and DaemonSet resounces. (release: {{ .Values.release }} in this case and the value itself is placed in values.yaml)

Source: https://programmer.ink/think/cluster-network-monitoring-using-kubenurse.html

@djboris9
Copy link
Collaborator

djboris9 commented May 18, 2022

Hi @eli-halych

Thanks for the feedback! I just merged the dashboard into the master branch with #40 .

I will open a new issue to incorporate and test the ServiceMonitor into the helm chart as you've written and close this issue.

Is this ok for you?

/cc @liyongxian

@djboris9
Copy link
Collaborator

djboris9 commented Jun 3, 2022

PR #42 implements the ServiceMonitor. Therefore I will close this issue. Feel free to provide feedback or reopen it.

@djboris9 djboris9 closed this as completed Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants