Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #47 from cabify/upgrade-prometheus
Browse files Browse the repository at this point in the history
Upgrade prometheus to 2.5.0 and add parameter to set log-level
  • Loading branch information
dgonzalezruiz authored Dec 13, 2018
2 parents 6dd8e99 + 66dfd55 commit e908c33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions apps/prometheus/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ variable "external_url" {
type = "string"
}

variable "log_level" {
description = "Log level for the instance. Defaults to info."
type = "string"
default = "info"
}

variable "prometheus_io_scrape" {
description = "Set it to your desired value to get prometheus scraped. By default it will be true"
type = "string"
Expand Down
3 changes: 2 additions & 1 deletion apps/prometheus/replication-controller.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ resource "kubernetes_replication_controller" "prometheus" {
}

container {
image = "prom/prometheus:v2.3.2"
image = "prom/prometheus:v2.5.0"
name = "prometheus"

port {
Expand Down Expand Up @@ -132,6 +132,7 @@ resource "kubernetes_replication_controller" "prometheus" {
"--storage.tsdb.path=/prometheus/",
"--web.enable-lifecycle",
"--web.external-url=${var.external_url}",
"--log.level=${var.log_level}",
]

liveness_probe {
Expand Down

0 comments on commit e908c33

Please sign in to comment.