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:
parent
7dfff36450
commit
36950c2daf
@ -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/);
|
||||
});
|
||||
|
||||
@ -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')) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user