diff options
author | msquare <msquare@notrademark.de> | 2019-08-21 15:46:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-21 15:46:26 +0200 |
commit | 1a6c7599d68cb73f4ce8d1aebec894b10fc7aab1 (patch) | |
tree | fd96fcd0f460a180e2399a7de2174cee86faaf00 /src/Controllers/Metrics/Controller.php | |
parent | 4d4fb81cd3dbe276f684feecd03c8fc49c700df0 (diff) | |
parent | efaf29e5ef020694849039713afa0027f92f6bbe (diff) |
Merge pull request #642 from MyIgel/db-stats
Metrics: Add database access time
Diffstat (limited to 'src/Controllers/Metrics/Controller.php')
-rw-r--r-- | src/Controllers/Metrics/Controller.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Controllers/Metrics/Controller.php b/src/Controllers/Metrics/Controller.php index ffb2a41b..99b71335 100644 --- a/src/Controllers/Metrics/Controller.php +++ b/src/Controllers/Metrics/Controller.php @@ -131,6 +131,11 @@ class Controller extends BaseController 'messages' => ['type' => 'gauge', $this->stats->messages()], 'password_resets' => ['type' => 'gauge', $this->stats->passwordResets()], 'registration_enabled' => ['type' => 'gauge', $this->config->get('registration_enabled')], + 'database' => [ + 'type' => 'gauge', + ['labels' => ['type' => 'read'], 'value' => $this->stats->databaseRead()], + ['labels' => ['type' => 'write'], 'value' => $this->stats->databaseWrite()], + ], 'sessions' => ['type' => 'gauge', $this->stats->sessions()], 'log_entries' => [ 'type' => 'counter', |