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

pkg/services: add ver & sha params to HealthChecker #265

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

jmank88
Copy link
Collaborator

@jmank88 jmank88 commented Nov 30, 2023

https://smartcontract-it.atlassian.net/browse/BCF-2824

Accept ver & sha params in NewHealthChecker. Only fall back to build info if empty.

Supports:

@@ -85,7 +85,7 @@ func (s *Server) start() error {
return fmt.Errorf("error starting prometheus server: %w", err)
}

s.checker = services.NewChecker()
s.checker = services.NewChecker("", "")
Copy link
Contributor

Choose a reason for hiding this comment

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

Where would we expect NewChecker to be called with non-empty string values for ver and sha?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, my bad - didn't see smartcontractkit/chainlink#11432

@jmank88 jmank88 merged commit 32b4198 into main Nov 30, 2023
5 of 8 checks passed
@jmank88 jmank88 deleted the BCF-2824-metrics-version branch November 30, 2023 18:47
nolag added a commit that referenced this pull request Dec 7, 2023
* Logger extraction (#253)

Co-authored-by: Jordan Krage <jmank88@gmail.com>

* pkg/services/servicetest: add Run and RunHealthy helpers (#251)

* pkg/services/servicetest: remove debug fmt.Println (#259)

* Bump MaxAllowedBlocks from 5 to 10 (#260)

* pkg/services: add ver & sha params to HealthChecker (#265)

* Utils extraction from chainlink repo (#256)

* Adjust price scaling factor from 1e8 => 1e18 (#266)

* Adjust price scaling factor from 1e8 => 1e18

* Adjust price scaling from 1e8 => 1e18

- Reference: MERC-1771

* Add mathutil (#267)

Co-authored-by: Jordan Krage <jmank88@gmail.com>
Co-authored-by: Dmytro Haidashenko <34754799+dhaidashenko@users.noreply.github.com>

* pkg/reportingplugins: remove; move mercury to chainlink-data-streams (#240)

* Add minimal ChainReader interface & types (#196)

Co-authored-by: Jordan Krage <jmank88@gmail.com>
Co-authored-by: Ryan Tinianov <tinianov@live.com>
Co-authored-by: ilija42 <57732589+ilija42@users.noreply.github.com>

* Bump action to get relay renamed to common changes (#272)

* .

---------

Co-authored-by: Dimitris Grigoriou <dimitris.grigoriou@smartcontract.com>
Co-authored-by: Jordan Krage <jmank88@gmail.com>
Co-authored-by: Sam <samsondav@protonmail.com>
Co-authored-by: Dmytro Haidashenko <34754799+dhaidashenko@users.noreply.github.com>
Co-authored-by: Domino Valdano <2644901+reductionista@users.noreply.github.com>
Co-authored-by: ilija42 <57732589+ilija42@users.noreply.github.com>
Co-authored-by: Tate <tate.exon@smartcontract.com>
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