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 metric to monitor all licenses in a HA setup #153

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

MMichel
Copy link
Contributor

@MMichel MMichel commented Dec 18, 2024

When Artifactory is deployed in a high availability (HA) setup, each replica consumes one license. These multiple licenses might have varying expiration dates and monitoring these is important to know when to renew each.

Currently, Artifactory exporter monitors the /license endpoint, which always returns a single license, even in a HA setup.

This pull request adds the functionality to monitor the /licenses endpoint as well with an additional metric.

This new metric is called licenses and has the following fields based on the API response: "type", "valid_through", "licensed_to", "node_url", "license_hash", "expires", "node_id".

@MMichel MMichel requested a review from peimanja as a code owner December 18, 2024 09:23
@peimanja
Copy link
Owner

please try the canary tag and report back if there was any issues

@peimanja peimanja merged commit 1f6df27 into peimanja:master Dec 18, 2024
2 checks passed
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