MM-58303 Report client metrics to Prometheus in seconds (#27033)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
72fcedd23a
Коммит
b29c211ee2
@@ -1138,7 +1138,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Namespace: MetricsNamespace,
|
||||
Subsystem: MetricsSubsystemClientsWeb,
|
||||
Name: "time_to_first_byte",
|
||||
Help: "Duration from when a browser starts to request a page from a server until when it starts to receive data in response (milliseconds)",
|
||||
Help: "Duration from when a browser starts to request a page from a server until when it starts to receive data in response (seconds)",
|
||||
},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
@@ -1149,7 +1149,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Namespace: MetricsNamespace,
|
||||
Subsystem: MetricsSubsystemClientsWeb,
|
||||
Name: "first_contentful_paint",
|
||||
Help: "Duration of how long it takes for any content to be displayed on screen to a user (milliseconds)",
|
||||
Help: "Duration of how long it takes for any content to be displayed on screen to a user (seconds)",
|
||||
},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
@@ -1160,7 +1160,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Namespace: MetricsNamespace,
|
||||
Subsystem: MetricsSubsystemClientsWeb,
|
||||
Name: "largest_contentful_paint",
|
||||
Help: "Duration of how long it takes for large content to be displayed on screen to a user (milliseconds)",
|
||||
Help: "Duration of how long it takes for large content to be displayed on screen to a user (seconds)",
|
||||
},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
@@ -1171,7 +1171,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Namespace: MetricsNamespace,
|
||||
Subsystem: MetricsSubsystemClientsWeb,
|
||||
Name: "interaction_to_next_paint",
|
||||
Help: "Measure of how long it takes for a user to see the effects of clicking with a mouse, tapping with a touchscreen, or pressing a key on the keyboard (milliseconds)",
|
||||
Help: "Measure of how long it takes for a user to see the effects of clicking with a mouse, tapping with a touchscreen, or pressing a key on the keyboard (seconds)",
|
||||
},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
@@ -1204,7 +1204,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Namespace: MetricsNamespace,
|
||||
Subsystem: MetricsSubsystemClientsWeb,
|
||||
Name: "channel_switch",
|
||||
Help: "Duration of the time taken from when a user clicks on a channel in the LHS to when posts in that channel become visible (milliseconds)",
|
||||
Help: "Duration of the time taken from when a user clicks on a channel in the LHS to when posts in that channel become visible (seconds)",
|
||||
},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
@@ -1215,7 +1215,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Namespace: MetricsNamespace,
|
||||
Subsystem: MetricsSubsystemClientsWeb,
|
||||
Name: "team_switch",
|
||||
Help: "Duration of the time taken from when a user clicks on a team in the LHS to when posts in that team become visible (milliseconds)",
|
||||
Help: "Duration of the time taken from when a user clicks on a team in the LHS to when posts in that team become visible (seconds)",
|
||||
},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
@@ -1226,7 +1226,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Namespace: MetricsNamespace,
|
||||
Subsystem: MetricsSubsystemClientsWeb,
|
||||
Name: "rhs_load",
|
||||
Help: "Duration of the time taken from when a user clicks to open a thread in the RHS until when posts in that thread become visible (milliseconds)",
|
||||
Help: "Duration of the time taken from when a user clicks to open a thread in the RHS until when posts in that thread become visible (seconds)",
|
||||
},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
|
||||
Ссылка в новой задаче
Block a user