feat(metrics): report each first-party owner's quota group #115

Öppen
supernaut vill sammanfoga 1 incheckning från feat/first-party-quota-gauge in i main
Ägare

What

Add bitborg_reconciler_first_party_quota_group_ok{owner,expected,actual}.

One series per exempt user or org that exists in Forgejo. 1 means the owner is in org-unlimited, 0 means it is not. actual lists the groups it is in, or none. Tenants emit no series.

How

After the writes the reconciler re-reads quota group membership, so the gauge shows Forgejo's state and not the plan. Owner names are matched with ownerKey. Exempt names with no Forgejo account are skipped, so a stale name does not read as a missing owner. Dry runs emit nothing. An aborted run keeps the last series.

The consumer is the FirstPartyQuotaGroupWrong alert in bitborg-infra.

No version bump or tag in this PR.

Refs bitborg/bitborg-infra#423

## What Add `bitborg_reconciler_first_party_quota_group_ok{owner,expected,actual}`. One series per exempt user or org that exists in Forgejo. 1 means the owner is in `org-unlimited`, 0 means it is not. `actual` lists the groups it is in, or `none`. Tenants emit no series. ## How After the writes the reconciler re-reads quota group membership, so the gauge shows Forgejo's state and not the plan. Owner names are matched with `ownerKey`. Exempt names with no Forgejo account are skipped, so a stale name does not read as a missing owner. Dry runs emit nothing. An aborted run keeps the last series. The consumer is the `FirstPartyQuotaGroupWrong` alert in bitborg-infra. No version bump or tag in this PR. Refs bitborg/bitborg-infra#423
supernaut lade till 1 incheckning 2026-11-30 09:05:59 +00:00
feat(metrics): report each first-party account's quota group
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m10s
54b51f60e2
Emit bitborg_reconciler_first_party_quota_group_ok{owner,expected,actual}
for every exempt user and org that exists in Forgejo. The value is read
back after the writes, so a refused move or a hand-deleted group shows as 0.
Tenants emit nothing. An aborted run keeps the last series.

Refs bitborg/bitborg-infra#423
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m10s
Obligatorisk
Detaljer
den här ändringsförfrågan är blockerad eftersom den är föråldrad.
Den här grenen är föråldrad gentemot basgrenen
Du är inte behörig att sammanfoga den här ändringsförfrågan.
Visa kommandoradsinstruktioner

Checka ut

Checka ut en ny gren från din projektkatalog och testa ändringarna.
git fetch -u origin 'feat/first-party-quota-gauge:feat/first-party-quota-gauge'
git switch 'feat/first-party-quota-gauge'
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-auth-reconciler!115
Ingen beskrivning angiven.