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

Metrics investigation for CSI driver and dashboard creation on Grafana #274

Merged
merged 36 commits into from
Oct 9, 2024

Conversation

prajwalvathreya
Copy link
Contributor

@prajwalvathreya prajwalvathreya commented Oct 1, 2024

General: This PR investigates the metrics provided by the side cars of the csi driver and uses prometheus to scrape them. It also includes implementation of make targets to automate the creation of a grafana dashboard for a user to inspect the metrics.

  • Have you removed all sensitive information, including but not limited to access keys and passwords?
  • Have you checked to ensure there aren't other open or closed Pull Requests for the same bug/feature/question?

Pull Request Guidelines:

  1. Does your submission pass tests?
  2. Have you added tests?
  3. Are you addressing a single feature in this PR?
  4. Are your commits atomic, addressing one change per commit?
  5. Are you following the conventions of the language?
  6. Have you saved your large formatting changes for a different PR, so we can focus on your work?
  7. Have you explained your rationale for why this feature is needed?
  8. Have you linked your PR to an [open issue](https://blog.github.com/2013-05-14-closing-issues-via-pull-requests/

@prajwalvathreya prajwalvathreya requested review from a team as code owners October 1, 2024 17:20
@prajwalvathreya prajwalvathreya changed the title Metrics investation for csi driver and dashboard creation on grafana Metrics investigation for CSI driver and dashboard creation on Grafana Oct 1, 2024
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.32%. Comparing base (0297748) to head (62e806d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #274   +/-   ##
=======================================
  Coverage   76.32%   76.32%           
=======================================
  Files          21       21           
  Lines        1622     1622           
=======================================
  Hits         1238     1238           
  Misses        286      286           
  Partials       98       98           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Makefile Outdated Show resolved Hide resolved
docs/dashboard.json Outdated Show resolved Hide resolved
docs/observability.md Show resolved Hide resolved
docs/observability.md Outdated Show resolved Hide resolved
hack/install-monitoring-tools.sh Outdated Show resolved Hide resolved
hack/install-monitoring-tools.sh Outdated Show resolved Hide resolved
…period, port

- updated observability.md to find the PID incase a user doesn't have access to script output
- moved dashboard.json to observability dir
@@ -44,6 +44,11 @@ spec:
- "--volume-name-uuid-length=16"
- "--csi-address=$(ADDRESS)"
- "--v=2"
- "--metrics-address=0.0.0.0:10248"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we potentially move all of the metrics related yaml updates to the helm chart on an opt in basis instead of here by default?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with Evan. If we can do this, that would be a better approach.

@@ -365,7 +365,7 @@ spec:
secretKeyRef:
key: token
name: linode
image: linode/linode-blockstorage-csi-driver:latest
image: linode/linode-blockstorage-csi-driver:metrics-endpoint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to rever this to latest

apiVersion: v1
kind: Service
metadata:
name: csi-linode-controller-metrics-10248
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we rename these services to represent what they are going to(attacher/provisoiner/resizer)

@@ -0,0 +1,62 @@
apiVersion: v1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be moved into the helm chart templates and conditionally created if the related metrics endpoints are enabled?

docs/observability.md Show resolved Hide resolved
docs/observability.md Show resolved Hide resolved
docs/observability.md Show resolved Hide resolved
docs/observability.md Show resolved Hide resolved
observability/metrics/loadBalancer.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@komer3 komer3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@prajwalvathreya prajwalvathreya merged commit 1748a1b into main Oct 9, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

5 participants