Skip to content

Commit

Permalink
Update label for site id
Browse files Browse the repository at this point in the history
  • Loading branch information
t-wright committed Sep 20, 2023
1 parent cbfd985 commit 6370760
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prometheus-collectors/class-user-stats-collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function initialize( RegistryInterface $registry ): void {
'user',
'count',
'Number of users by role and 2FA status',
[ 'site_id', 'role', 'tfa_status' ]
[ 'network_site_id', 'role', 'tfa_status' ]
);
}

Expand All @@ -38,8 +38,8 @@ public function collect_metrics(): void {
}

foreach ( $metrics as $role => $counts ) {
foreach ( $counts as $status => $count ) {
$this->users_gauge->set( $count, [ $this->blog_id, $role, $status ] );
foreach ( $counts as $tfa_status => $count ) {
$this->users_gauge->set( $count, [ $this->blog_id, $role, $tfa_status ] );
}
}
}
Expand Down

0 comments on commit 6370760

Please sign in to comment.