Skip to content
Snippets Groups Projects
Commit 564d08b6 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

Merge branch 'cardinality-fix' into 'main'

Cardinality fix

See merge request danet/csbi!6
parents ef357293 34c4d516
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ func buildImage(d Deployment, dockerClient *client.Client) error { ...@@ -36,7 +36,7 @@ func buildImage(d Deployment, dockerClient *client.Client) error {
labels := prometheus.Labels{"type": spb.Type_CONTAINERISED.String()} labels := prometheus.Labels{"type": spb.Type_CONTAINERISED.String()}
start := promStartHook(labels, buildsTotal) start := promStartHook(labels, buildsTotal)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*120) ctx, cancel := context.WithTimeout(context.Background(), time.Second*300)
defer cancel() defer cancel()
p := filepath.Join(d.ID.String(), "/") p := filepath.Join(d.ID.String(), "/")
......
...@@ -46,4 +46,4 @@ volumes: ...@@ -46,4 +46,4 @@ volumes:
grafana-data: grafana-data:
networks: networks:
csbi-dev-net: csbi-dev-net:
\ No newline at end of file
...@@ -98,7 +98,7 @@ var ( ...@@ -98,7 +98,7 @@ var (
Name: "orchestrator_creations_total", Name: "orchestrator_creations_total",
Help: "Total number of created deployments", Help: "Total number of created deployments",
}, },
[]string{"type", "name"}, []string{"type"},
) )
orchestratorDestructionsTotal = promauto.NewCounterVec( orchestratorDestructionsTotal = promauto.NewCounterVec(
...@@ -106,7 +106,7 @@ var ( ...@@ -106,7 +106,7 @@ var (
Name: "orchestrator_destructions_total", Name: "orchestrator_destructions_total",
Help: "Total number of destroyed deployments", Help: "Total number of destroyed deployments",
}, },
[]string{"type", "name"}, []string{"type"},
) )
orchestratorErrorsTotal = promauto.NewCounterVec( orchestratorErrorsTotal = promauto.NewCounterVec(
...@@ -114,7 +114,7 @@ var ( ...@@ -114,7 +114,7 @@ var (
Name: "orchestrator_errors_total", Name: "orchestrator_errors_total",
Help: "Total number of orchestrator errors", Help: "Total number of orchestrator errors",
}, },
[]string{"type", "name", "error"}, []string{"type", "error"},
) )
orchestratorCreateDurationSeconds = promauto.NewHistogramVec( orchestratorCreateDurationSeconds = promauto.NewHistogramVec(
...@@ -122,7 +122,7 @@ var ( ...@@ -122,7 +122,7 @@ var (
Name: "orchestrator_create_duration_seconds", Name: "orchestrator_create_duration_seconds",
Help: "Histogram of create operation duration", Help: "Histogram of create operation duration",
}, },
[]string{"type", "name"}, []string{"type"},
) )
orchestratorCreateDurationSecondsTotal = promauto.NewCounterVec( orchestratorCreateDurationSecondsTotal = promauto.NewCounterVec(
...@@ -130,7 +130,7 @@ var ( ...@@ -130,7 +130,7 @@ var (
Name: "orchestrator_create_duration_seconds_total", Name: "orchestrator_create_duration_seconds_total",
Help: "Total time required for create operations", Help: "Total time required for create operations",
}, },
[]string{"type", "name"}, []string{"type"},
) )
orchestratorDestroyDurationSeconds = promauto.NewHistogramVec( orchestratorDestroyDurationSeconds = promauto.NewHistogramVec(
...@@ -138,7 +138,7 @@ var ( ...@@ -138,7 +138,7 @@ var (
Name: "orchestrator_destroy_duration_seconds", Name: "orchestrator_destroy_duration_seconds",
Help: "Histogram of destroy operation duration", Help: "Histogram of destroy operation duration",
}, },
[]string{"type", "name"}, []string{"type"},
) )
orchestratorDestroyDurationSecondsTotal = promauto.NewCounterVec( orchestratorDestroyDurationSecondsTotal = promauto.NewCounterVec(
...@@ -146,7 +146,7 @@ var ( ...@@ -146,7 +146,7 @@ var (
Name: "orchestrator_destroy_duration_seconds_total", Name: "orchestrator_destroy_duration_seconds_total",
Help: "Total time required for destroy operations", Help: "Total time required for destroy operations",
}, },
[]string{"type", "name"}, []string{"type"},
) )
codeGenerationErrorsTotal = promauto.NewCounterVec( codeGenerationErrorsTotal = promauto.NewCounterVec(
......
global: global:
scrape_interval: 5s scrape_interval: 5s
scrape_timeout: 10s scrape_timeout: 3s
rule_files: rule_files:
- alert.yml - alert.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment