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

examples: Update lease to export metrics #214

Merged
merged 1 commit into from
Dec 10, 2023
Merged

examples: Update lease to export metrics #214

merged 1 commit into from
Dec 10, 2023

Conversation

olix0r
Copy link
Owner

@olix0r olix0r commented Dec 10, 2023

The lease example now exports the lease state as a metric:

# HELP kubert_lease_claimed Indicates whether this instance is owns the lease.
# TYPE kubert_lease_claimed gauge
kubert_lease_claimed 1
# HELP kubert_lease_claim_changes Counts changes of this process's claim of the lease.
# TYPE kubert_lease_claim_changes counter
kubert_lease_claim_changes_total 1

# HELP kubert_lease_claimed Indicates whether this instance is owns the lease.
# TYPE kubert_lease_claimed gauge
kubert_lease_claimed 0
# HELP kubert_lease_claim_changes Counts changes of this process's claim of the lease.
# TYPE kubert_lease_claim_changes counter
kubert_lease_claim_changes_total 2

The lease example now exports the lease state as a metric:

    # HELP kubert_lease_claimed Indicates whether this instance is owns the lease.
    # TYPE kubert_lease_claimed gauge
    kubert_lease_claimed 1
    # HELP kubert_lease_claim_changes Counts changes of this process's claim of the lease.
    # TYPE kubert_lease_claim_changes counter
    kubert_lease_claim_changes_total 1

    # HELP kubert_lease_claimed Indicates whether this instance is owns the lease.
    # TYPE kubert_lease_claimed gauge
    kubert_lease_claimed 0
    # HELP kubert_lease_claim_changes Counts changes of this process's claim of the lease.
    # TYPE kubert_lease_claim_changes counter
    kubert_lease_claim_changes_total 2
@olix0r olix0r merged commit f741924 into main Dec 10, 2023
36 checks passed
@olix0r olix0r deleted the ver/eg-lease-prom branch December 10, 2023 17:01
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.

1 participant