forked from TrueCloudLab/frostfs-http-gw
[#77] Add metrics for HTTP endpoint status
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
This commit is contained in:
parent
7d47e88e36
commit
dbc6804d27
3 changed files with 74 additions and 11 deletions
|
@ -66,6 +66,16 @@ var appMetricsDesc = map[string]map[string]Description{
|
|||
VariableLabels: []string{"version"},
|
||||
},
|
||||
},
|
||||
serverSubsystem: {
|
||||
healthMetric: Description{
|
||||
Type: dto.MetricType_GAUGE,
|
||||
Namespace: namespace,
|
||||
Subsystem: serverSubsystem,
|
||||
Name: healthMetric,
|
||||
Help: "HTTP Server endpoint health",
|
||||
VariableLabels: []string{"endpoint"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
type Description struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue