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

Feature: alert metrics #21

Merged
merged 15 commits into from
Mar 20, 2020
Merged

Conversation

stefanotorresi
Copy link
Collaborator

@stefanotorresi stefanotorresi commented Mar 19, 2020

This PR adds an alert collector that implements the following metrics:

  • sap_alert_ha_check
  • sap_alert_ha_failover_active

It also enriches the boilerplate of the collector package by adding a new RecordConcurrently function that helps dealing with multiple concurrent metric recording functions within the same colleciton cycle, which was needed to avoid hitting SAPControl sequentially and slowing down too much a single scrape.

Some refactoring was also applied in the process of adding new webservice structures.

collector/alert/alert.go Outdated Show resolved Hide resolved
Copy link
Contributor

@MalloZup MalloZup left a comment

Choose a reason for hiding this comment

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

I will check more tomorrow

Copy link
Contributor

@MalloZup MalloZup left a comment

Choose a reason for hiding this comment

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

looks good. thx

@stefanotorresi stefanotorresi merged commit 9eeb51e into SUSE:master Mar 20, 2020
@stefanotorresi stefanotorresi deleted the feature/alerts branch March 20, 2020 11:26
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.

2 participants