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

doc(metric): add volume read only metric #990

Merged

Conversation

ChanYiLin
Copy link
Contributor

ref: longhorn/longhorn#8508

Export the metrics in the following form

  • metric name: longhorn_volume_file_system_read_only
  • type: gauge
  • if the volume becomes read-only, it has metric value 1 with the corresponding labels
    • So you know which volume is in read-only mode now
    • You can sum up the metrics to see how many volumes are in read-only mode now
# HELP longhorn_volume_file_system_read_only Volume whose mount point is in read-only mode
# TYPE longhorn_volume_file_system_read_only gauge
longhorn_volume_file_system_read_only{node="kworker1",pvc="nginx",pvc_namespace="default",volume="pvc-3a7a208b-c8c9-46a9-b2ce-4c5f740c8673"} 1

Note:
If Longhorn remounts the mount point to read-write successfully, the metrics will be cleaned up.
The metric is either 1 or no record for each volume

ref: longhorn/longhorn 8508

Signed-off-by: Jack Lin <[email protected]>
Copy link

netlify bot commented Sep 19, 2024

Deploy Preview for longhornio ready!

Name Link
🔨 Latest commit 354201d
🔍 Latest deploy log https://app.netlify.com/sites/longhornio/deploys/66ebbdc83b1bff0008b1b5e3
😎 Deploy Preview https://deploy-preview-990--longhornio.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@jhkrug jhkrug left a comment

Choose a reason for hiding this comment

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

lgtm

@innobead innobead merged commit 125ff12 into longhorn:master Sep 20, 2024
7 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.

3 participants