metrics.go 1.2 KB

1234567891011121314151617181920212223242526272829
  1. package metrics
  2. var UsageStats = NewRegistry()
  3. var MetricStats = NewRegistry()
  4. var (
  5. M_Instance_Start = NewComboCounterRef("instance.start")
  6. M_Page_Status_200 = NewComboCounterRef("page.status.200")
  7. M_Page_Status_500 = NewComboCounterRef("page.status.500")
  8. M_Page_Status_404 = NewComboCounterRef("page.status.404")
  9. M_Api_Status_500 = NewComboCounterRef("api.status.500")
  10. M_Api_Status_404 = NewComboCounterRef("api.status.404")
  11. M_Api_User_SignUp = NewComboCounterRef("api.user.signup")
  12. M_Api_Dashboard_Get = NewComboCounterRef("api.dashboard.get")
  13. M_Api_Dashboard_Post = NewComboCounterRef("api.dashboard.post")
  14. M_Api_Admin_User_Create = NewComboCounterRef("api.admin.user_create")
  15. M_Api_Login_Post = NewComboCounterRef("api.login.post")
  16. M_Api_Login_OAuth = NewComboCounterRef("api.login.oauth")
  17. M_Api_Org_Create = NewComboCounterRef("api.org.create")
  18. M_Api_Dashboard_Snapshot_Create = NewComboCounterRef("api.dashboard_snapshot.create")
  19. M_Api_Dashboard_Snapshot_External = NewComboCounterRef("api.dashboard_snapshot.external")
  20. M_Api_Dashboard_Snapshot_Get = NewComboCounterRef("api.dashboard_snapshot.get")
  21. M_Models_Dashboard_Insert = NewComboCounterRef("models.dashboard.insert")
  22. )