mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 09:14:48 +08:00
DEV: Support env var for prometheus port in cache_critical_dns
This commit is contained in:
@ -58,7 +58,7 @@ end
|
|||||||
|
|
||||||
def send_counter(name, description, labels, value)
|
def send_counter(name, description, labels, value)
|
||||||
host = "localhost"
|
host = "localhost"
|
||||||
port = 9405
|
port = ENV.fetch("DISCOURSE_PROMETHEUS_COLLECTOR_PORT", 9405).to_i
|
||||||
|
|
||||||
if labels
|
if labels
|
||||||
labels = labels.map do |k, v|
|
labels = labels.map do |k, v|
|
||||||
|
Reference in New Issue
Block a user