metrics.go 1.4 KB

12345678910111213141516171819202122232425262728293031
  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_SignUpStarted = NewComboCounterRef("api.user.signup_started")
  12. M_Api_User_SignUpCompleted = NewComboCounterRef("api.user.signup_completed")
  13. M_Api_User_SignUpInvite = NewComboCounterRef("api.user.signup_invite")
  14. M_Api_Dashboard_Get = NewComboCounterRef("api.dashboard.get")
  15. M_Api_Dashboard_Post = NewComboCounterRef("api.dashboard.post")
  16. M_Api_Admin_User_Create = NewComboCounterRef("api.admin.user_create")
  17. M_Api_Login_Post = NewComboCounterRef("api.login.post")
  18. M_Api_Login_OAuth = NewComboCounterRef("api.login.oauth")
  19. M_Api_Org_Create = NewComboCounterRef("api.org.create")
  20. M_Api_Dashboard_Snapshot_Create = NewComboCounterRef("api.dashboard_snapshot.create")
  21. M_Api_Dashboard_Snapshot_External = NewComboCounterRef("api.dashboard_snapshot.external")
  22. M_Api_Dashboard_Snapshot_Get = NewComboCounterRef("api.dashboard_snapshot.get")
  23. M_Models_Dashboard_Insert = NewComboCounterRef("models.dashboard.insert")
  24. )