mirror of
https://github.com/openfaas/faas.git
synced 2025-06-20 13:06:40 +00:00
Export new metrics for OpenFaaS Pro scaling
* Add service target metric * Add service min replicas metric * Add scale type metric These combined allow new auto-scaling modes and parameters for OpenFaaS Pro customers. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
34735d61d0
commit
d85d5e7239
@ -83,7 +83,7 @@ func Test_FunctionsHandler_ReturnsJSONAndOneFunction(t *testing.T) {
|
||||
func makeFunctionsHandler() http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
functions := []types.FunctionStatus{
|
||||
types.FunctionStatus{
|
||||
{
|
||||
Name: "func_echoit",
|
||||
Replicas: 0,
|
||||
Namespace: "openfaas-fn",
|
||||
|
Reference in New Issue
Block a user