munin_core.module 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. // $Id$
  3. /**
  4. * @file
  5. * Core Drupal instrumentation for Munin
  6. */
  7. /**
  8. * Implements hook_munin_api_info().
  9. *
  10. * @return
  11. * An array of Munin probes informations, index by probe name.
  12. */
  13. function munin_core_munin_api_info() {
  14. $ret = array(
  15. 'munin_core' => array(
  16. '#title' => t('Drupal core'),
  17. '#description' => t('Collect core information from a Drupal instance'),
  18. 'user_current' => array(
  19. '#title' => t('Currently logged-in users'),
  20. '#type' => MUNIN_API_GAUGE,
  21. ),
  22. 'user_count' => array(
  23. '#title' => t('Number of users'),
  24. '#type' => MUNIN_API_COUNTER,
  25. ),
  26. 'user_active_count' => array(
  27. '#title' => t('Number of active users'),
  28. '#type' => MUNIN_API_COUNTER,
  29. ),
  30. 'user_blocked_count' => array(
  31. '#title' => t('Number of blocked users'),
  32. '#type' => MUNIN_API_COUNTER,
  33. ),
  34. 'node_count' => array(
  35. '#title' => t('Number of nodes.'),
  36. '#type' => MUNIN_API_COUNTER,
  37. ),
  38. 'comment_count' => array(
  39. '#title' => t('Number of comments.'),
  40. '#type' => MUNIN_API_COUNTER,
  41. ),
  42. ),
  43. );
  44. return $ret;
  45. }