mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
Use default namespace in metrics exporter
Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
This commit is contained in:
@ -33,7 +33,7 @@ func readGauge(g prometheus.Metric) metricResult {
|
||||
|
||||
func Test_Describe_DescribesThePrometheusMetrics(t *testing.T) {
|
||||
metricsOptions := BuildMetricsOptions()
|
||||
exporter := NewExporter(metricsOptions, nil)
|
||||
exporter := NewExporter(metricsOptions, nil, "openfaas-fn")
|
||||
|
||||
ch := make(chan *prometheus.Desc)
|
||||
// defer close(ch)
|
||||
@ -65,7 +65,7 @@ func Test_Describe_DescribesThePrometheusMetrics(t *testing.T) {
|
||||
|
||||
func Test_Collect_CollectsTheNumberOfReplicasOfAService(t *testing.T) {
|
||||
metricsOptions := BuildMetricsOptions()
|
||||
exporter := NewExporter(metricsOptions, nil)
|
||||
exporter := NewExporter(metricsOptions, nil, "openfaas-fn")
|
||||
|
||||
expectedService := types.FunctionStatus{
|
||||
Name: "function_with_two_replica",
|
||||
|
Reference in New Issue
Block a user