Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Add block volume count to metrics #1516

Merged
merged 3 commits into from Feb 7, 2019
Merged

Add block volume count to metrics #1516

merged 3 commits into from Feb 7, 2019

Conversation

Madhu-1
Copy link
Contributor

@Madhu-1 Madhu-1 commented Feb 5, 2019

Add block volume count to metrics

What does this PR achieve? Why do we need it?

This PR adds the block volume count to the metrics

Does this PR fix issues?

Fixes: rhbz#1589012

Signed-off-by: Madhu Rajanna mrajanna@redhat.com

logs:

#HELP heketi_block_volumes_count Number of block volumes on cluster
# TYPE heketi_block_volumes_count gauge
heketi_block_volumes_count{cluster="812506b5c3063c72b3cfc467951100c6"} 3
# HELP heketi_volumes_count Number of volumes on cluster
# TYPE heketi_volumes_count gauge
heketi_volumes_count{cluster="812506b5c3063c72b3cfc467951100c6"} 4

@Madhu-1
Copy link
Contributor Author

Madhu-1 commented Feb 5, 2019

@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@phlogistonjohn
Copy link
Contributor

ok to test

Copy link
Contributor

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-merge-robot
Copy link

/retest

1 similar comment
@openshift-merge-robot
Copy link

/retest

Copy link
Contributor

@obnoxxx obnoxxx left a comment

Choose a reason for hiding this comment

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

This looks good, as far as the server code changes go, but I request the tests to be expanded to cover the gluster-block bits: certainly apps/glusterfs/app_topology_test.go. It seems that pkg/metrics/metrics_test.go only covers clusters, nodes, devices, and bricks so far, so we may expand that in a later PR.

Add block volume count to metrics

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
@Madhu-1
Copy link
Contributor Author

Madhu-1 commented Feb 7, 2019

@obnoxxx added test case of block volume PTAL

@openshift-ci-robot
Copy link
Collaborator

@Madhu-1: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/simple 9e8111f link /test simple

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Contributor

@obnoxxx obnoxxx left a comment

Choose a reason for hiding this comment

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

Thanks for adding the test, LGTM!

@obnoxxx obnoxxx merged commit e574c79 into heketi:master Feb 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants