metrics-server add externalURL to prometheus
This commit is contained in:
parent
068593c82c
commit
595f1f92d5
1 changed files with 2 additions and 1 deletions
|
@ -130,6 +130,7 @@ in {
|
|||
# main prometheus service
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
webExternalUrl = "http://${containerIp}:9001";
|
||||
port = 9001;
|
||||
alertmanagers = [
|
||||
{
|
||||
|
@ -229,7 +230,7 @@ in {
|
|||
};
|
||||
};
|
||||
services.prometheus.alertmanager = {
|
||||
webExternalUrl = containerIp;
|
||||
webExternalUrl = "http://${containerIp}:9093";
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
port = 9093;
|
||||
|
|
Loading…
Add table
Reference in a new issue