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

Status label on cluster_status metric disappears #66

Closed
hashi825 opened this issue May 26, 2021 · 4 comments · Fixed by #67
Closed

Status label on cluster_status metric disappears #66

hashi825 opened this issue May 26, 2021 · 4 comments · Fixed by #67
Assignees
Labels
bug Something isn't working priority/P1 status/done

Comments

@hashi825
Copy link

Describe the bug
Status label on cluster_status metric disappears roughly after 15mins of starting Harvest

Environment
Provide accurate information about the environment to help us reproduce the issue.

  • Harvest version: harvest version 21.05.1-1 (commit 2211c00) (build date 2021-05-21T01:28:12+0530) linux/amd64
  • Command line arguments used: [e.g. bin/harvest start --config=foo.yml --collectors Zapi]
  • OS: RHEL 7.9
  • Install method: yum
  • ONTAP Version: 9.7
  • Other:

To Reproduce
curl -s localhost:12990/metrics | grep cluster_status

Expected behavior
Should report cluster_status metric as
cluster_status{cluster="clustername",datacenter="dc",status="ok"} 1

Actual behavior
Initially reports correct metric then after 15minutes roughly the metric turns into
cluster_status{cluster="clustername",datacenter="dc"} 1

Possible solution, workaround, fix
None

@vgratian
Copy link
Contributor

thanks, I will take a look

@sridevimm
Copy link
Contributor

Tested with harvest-21.06.0300-nightly.x86_64.rpm

status="ok" displays. However, is the zero expected at the end? Should't it be 1 for "ok" status as per this issue description?

[root@scspa2385980003 harvest]# curl -s localhost:12990/metrics | grep cluster_status
cluster_status{datacenter="umeng_aff300",cluster="umeng-aff300-05-06",status="ok"} 0

@vgratian
Copy link
Contributor

vgratian commented Jun 7, 2021

Tested with harvest-21.06.0300-nightly.x86_64.rpm

status="ok" displays. However, is the zero expected at the end? Should't it be 1 for "ok" status as per this issue description?

[root@scspa2385980003 harvest]# curl -s localhost:12990/metrics | grep cluster_status
cluster_status{datacenter="umeng_aff300",cluster="umeng-aff300-05-06",status="ok"} 0

no, this is fine, 0 is the unix standard for OK.

@sridevimm
Copy link
Contributor

Thanks Vachagan. With that, Validation is complete for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority/P1 status/done
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants