1
0
mirror of https://github.com/Unleash/unleash.git synced 2026-01-05 20:06:22 +01:00

chore: rename gauge to new name

This commit is contained in:
Nuno Góis 2025-12-18 12:45:40 +00:00
parent 7dfff36450
commit 36950c2daf
No known key found for this signature in database
GPG Key ID: 71ECC689F1091765
2 changed files with 5 additions and 6 deletions

View File

@ -365,9 +365,8 @@ test('should collect licensed_users metrics', async () => {
expect(recordedMetric).toMatch(/licensed_users 0/);
});
test('should collect users_read_only_total metrics', async () => {
const recordedMetric = await prometheusRegister.getSingleMetricAsString(
'users_read_only_total',
);
expect(recordedMetric).toMatch(/users_read_only_total 0/);
test('should collect read_only_users metrics', async () => {
const recordedMetric =
await prometheusRegister.getSingleMetricAsString('read_only_users');
expect(recordedMetric).toMatch(/read_only_users 0/);
});

View File

@ -776,7 +776,7 @@ export function registerPrometheusMetrics(
});
dbMetrics.registerGaugeDbMetric({
name: 'users_read_only_total',
name: 'read_only_users',
help: 'Number of read-only users (viewers with no permissions or write events).',
query: () => {
if (flagResolver.isEnabled('readOnlyUsers')) {