feat: victorica-metrics & prometheus - remote write

This commit is contained in:
Ryan Yin
2024-08-19 15:45:07 +08:00
parent b3a7da8301
commit 7e402ed9c8
2 changed files with 18 additions and 1 deletions
@@ -12,7 +12,11 @@
port = 9090;
webExternalUrl = "http://prometheus.writefor.fun";
extraFlags = ["--storage.tsdb.retention.time=45d"];
extraFlags = [
"--storage.tsdb.retention.time=45d"
# https://prometheus.io/docs/prometheus/latest/storage/#remote-storage-integrations
"--web.enable-remote-write-receiver"
];
# Directory below /var/lib to store Prometheus metrics data.
stateDir = "prometheus2";