From 314f9bbaf49ad17cb6d418e4b7577a03c6024de6 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 9 Nov 2024 19:51:32 +0100 Subject: prometheus --- terraform/hash-prometheus/prometheus.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'terraform/hash-prometheus/prometheus.tf') diff --git a/terraform/hash-prometheus/prometheus.tf b/terraform/hash-prometheus/prometheus.tf index 4c77ce8..09df3ee 100644 --- a/terraform/hash-prometheus/prometheus.tf +++ b/terraform/hash-prometheus/prometheus.tf @@ -19,6 +19,15 @@ resource "docker_container" "prometheus" { env = [ ] + command = [ +#"/bin/prometheus", + "--config.file=/etc/prometheus/prometheus.yml", + "--storage.tsdb.path=/prometheus", + "--web.console.libraries=/usr/share/prometheus/console_libraries", + "--web.console.templates=/usr/share/prometheus/consoles", + "--storage.tsdb.retention.time=100y", + ] + networks_advanced { name = data.docker_network.dn42.name } @@ -45,6 +54,7 @@ resource "docker_container" "prometheus" { source = local.path target = "/etc/prometheus" type = "bind" + read_only = false } volumes { -- cgit v1.2.3