You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What would be the proper way to fix homepage and get prometheus to talk to alertmanager if changing endpoint ports in infra_portal and reloading nginx is not enough?
When configuring endpoints for prometheus and alertmanager in pigsty.yml: all: children: vars: infra_portal I initially used ports 9090 for prometheus and 9093 for alertmanager (from the earlier config). After successfull installation all INFRA and PGSQL dashboards were working fine. Later I noticed that URLs at my pigsty's homepage lead nowhere. Except for the homepage and grafana - those were fine. But prometheus and alertmanager pages didn't open.
I did some digging: sudo systemctl status prometheus
and found out that prometheus Web UI listens on the other port - 9058 /usr/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --web.listen-address=:9058 "--web.page-title=Pigsty Metrics" --storage.tsdb.path=/data/prometheus/data --storage.tsdb.retention.time=15d
And it also has some troubles with alertmanager
So I went and changed endpoint ports to those 9058 ad 9093 respectively in pigsty.yml and ran ./infra.yml -t nginx to reload nginx. URLs on homepage came alive, but all grafana dashboards went blank.
I've struggled with rolling back, until I reran:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Pigsty v3.7.0 on Rocky Linux 9.7
What would be the proper way to fix homepage and get prometheus to talk to alertmanager if changing
endpointports ininfra_portaland reloading nginx is not enough?When configuring endpoints for prometheus and alertmanager in
pigsty.yml: all: children: vars: infra_portalI initially used ports 9090 for prometheus and 9093 for alertmanager (from the earlier config). After successfull installation all INFRA and PGSQL dashboards were working fine. Later I noticed that URLs at my pigsty's homepage lead nowhere. Except for the homepage and grafana - those were fine. But prometheus and alertmanager pages didn't open.I did some digging:
sudo systemctl status prometheusand found out that prometheus Web UI listens on the other port - 9058
/usr/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --web.listen-address=:9058 "--web.page-title=Pigsty Metrics" --storage.tsdb.path=/data/prometheus/data --storage.tsdb.retention.time=15dAnd it also has some troubles with alertmanager
So I went and changed endpoint ports to those 9058 ad 9093 respectively in
pigsty.ymland ran./infra.yml -t nginxto reload nginx. URLs on homepage came alive, but all grafana dashboards went blank.I've struggled with rolling back, until I reran:
And I've got prometheus and grafana back online! Except for the prometheus error when sending alerts to alertmanager and half-dead homepage.
Please advice how to get everything in order.
Beta Was this translation helpful? Give feedback.
All reactions