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

Add ServiceMonitor for device-LocalPV and fixes localpv workload dashboard #52

Merged
merged 2 commits into from
Jul 29, 2021

Conversation

rajaSahil
Copy link
Member

@rajaSahil rajaSahil commented Jul 25, 2021

What this PR does?

  • Adds serviceMonitor for device-LocalPV
  • Update the configuration for node-exporter to fetch Linux device(/dev/sdb1 /dev/sdb2 ...) metrics
  • Fixes localPV workload dashboard.

Fixes:

Issue:

  • Filesystem dashboard panel were showing all the data if there were no PVCs present for a workload.
    image (1)

Fix:

  • This happened due to an error in regex expression. All the mount points ending with /mount were getting selected.

…xporter

Signed-off-by: Sahil Raja <sahilraja242@gmail.com>
Signed-off-by: Sahil Raja <sahilraja242@gmail.com>

Dashboard refresh fix

Signed-off-by: Sahil Raja <sahilraja242@gmail.com>
@rajaSahil rajaSahil force-pushed the Add-ServiceMonitor-DeviceLocalPV branch from 56b532c to 0a8feb3 Compare July 25, 2021 20:03
@rajaSahil rajaSahil self-assigned this Jul 25, 2021
@@ -141,6 +141,11 @@ helm install openebs-monitoring openebs-monitoring/monitoring --namespace openeb
| `serviceMonitors.lvm-LocalPV.endpoints.path` | HTTP path to scrape for metrics from lvm localPV node | `"/metrics"` |
| `serviceMonitors.lvm-LocalPV.selector` | Selector to select endpoints objects | `{matchLabels: {name: openebs-lvm-node}}` |
| `serviceMonitors.lvm-LocalPV.namespaceSelector` | Selector to select which namespaces the endpoints objects are discovered from | `[any: true]` |
| `serviceMonitors.device-LocalPV.enabled` | Enables monitoring of device localPV | `true` |
| `serviceMonitors.device-LocalPV.endpoints.ports` | Name of the service port device localPV node endpoint refers to | `"metrics"` |
Copy link
Member

@avishnu avishnu Jul 27, 2021

Choose a reason for hiding this comment

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

Why not the number?

Copy link
Member

Choose a reason for hiding this comment

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

Ok, seems we have used the same standard for other cas types as well.

Copy link
Member

@avishnu avishnu left a comment

Choose a reason for hiding this comment

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

lgtm

@avishnu avishnu merged commit 44a8857 into openebs:develop Jul 29, 2021
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