mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 10:26:32 +00:00
Add RED metrics
- this PR adds metrics via Prometheus for instrumentation and to move towards using HPAv2 / custom metrics in Kubernetes. Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
@ -243,3 +243,16 @@ func TestRead_ExecTimeoutConfig(t *testing.T) {
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
||||
func TestRead_MetricsPort(t *testing.T) {
|
||||
defaults := NewEnvBucket()
|
||||
|
||||
readConfig := ReadConfig{}
|
||||
config := readConfig.Read(defaults)
|
||||
|
||||
want := 8081
|
||||
if config.metricsPort != want {
|
||||
t.Logf("metricsPort incorrect, got: %d - want: %d\n", config.metricsPort, want)
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user