Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
wobble: Removed wobble prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
zeisss committed Mar 23, 2017
1 parent 8cb4cec commit 54fa7e9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions WobbleApi/handlers/api_metrics.php
Expand Up @@ -13,9 +13,9 @@
function wobble_metrics($params) {
$counter_stats = [
## Notifications
['name' => 'wobble_notification_connection_aborted', 'type' => 'counter',
['name' => 'notification_connection_aborted', 'type' => 'counter',
'help' => 'Number of time notification fetching has aborted due to an aborted connection.'],
['name' => 'wobble_notification_oot', 'type' => 'counter',
['name' => 'notification_oot', 'type' => 'counter',
'help' => 'Number of notification fetched that have reached the out-of-time limit.'],
['name' => 'notification_pushed_user', 'type' => 'counter'],
['name' => 'notification_pushed_session', 'type' => 'counter'],
Expand Down Expand Up @@ -116,21 +116,21 @@ function wobble_metrics($params) {

$result[] = array(
'type' => 'gauge',
'name' => 'wobble_stats_last_gc_seconds',
'name' => 'stats_last_gc_seconds',
'help' => 'Time of the last GC since unix epoch in seconds.',
'values' => Stats::getValue('wobble_stats_last_gc_seconds'),
);

### Topics
$result[] = array(
'type' => 'gauge',
'name' => 'wobble_topics_count',
'name' => 'topics_count',
'help' => 'Number of topics',
'values' => sizeof(TopicRepository::listTopics()),
);
$result[] = array(
'type' => 'gauge',
'name' => 'wobble_topics_orphaned_count',
'name' => 'topics_orphaned_count',
'help' => 'Number of topics',
'values' => TopicRepository::getOrphanedTopicCount(),
);
Expand All @@ -139,19 +139,19 @@ function wobble_metrics($params) {
### Posts
$result[] = array(
'type' => 'gauge',
'name' => 'wobble_posts_count',
'name' => 'posts_count',
'help' => 'Number of posts in all topics',
'values' => PostRepository::getPostCount(),
);
$result[] = array(
'type' => 'gauge',
'name' => 'wobble_posts_orphaned_count',
'name' => 'posts_orphaned_count',
'help' => 'Number of posts in all topics',
'values' => PostRepository::getOrphanedPostCount(),
);
$result[] = array(
'type' => 'gauge',
'name' => 'wobble_posts_last_gc_seconds',
'name' => 'posts_last_gc_seconds',
'help' => 'Time of the last GC since unix epoch in seconds.',
'values' => Stats::getValue('wobble_posts_last_gc_seconds'),
);
Expand Down

0 comments on commit 54fa7e9

Please sign in to comment.