FAQ
What components are included in the INFRA module?
The current infra role directly manages these components:
- Nginx: Exposes Grafana, VictoriaMetrics (VMUI), Alertmanager, and other WebUIs, and hosts local YUM/APT repositories.
- DNSMasq: Provides DNS registration and resolution.
- VictoriaMetrics suite: VictoriaMetrics, VMAlert, VictoriaLogs, and VictoriaTraces.
- Alertmanager, Blackbox Exporter, and Grafana: Alert dispatch, blackbox probing, and visualization.
infra.yml also runs the CA, repository, NODE, HAProxy, and node-monitoring roles. These configure supporting services such as the self-signed CA, Chronyd, Node Exporter, and Vector on Infra nodes.
ETCD, PostgreSQL, and Docker are separate modules. The infra.yml playbook does not deploy them. Use etcd.yml, pgsql.yml, and docker.yml, respectively.
How to re-register monitoring targets to VictoriaMetrics?
VictoriaMetrics uses static service discovery through the /infra/targets/<job>/*.yml directory. If target files are accidentally deleted, use the following commands to re-register:
Other modules (such as pg_monitor.yml and mysql.yml) also provide corresponding *_register tags that can be executed as needed.
How to re-register PostgreSQL datasources to Grafana?
PGSQL databases defined in pg_databases are registered as Grafana datasources by default (for use by PGCAT applications).
If you accidentally delete postgres datasources registered in Grafana, you can register them again using the following command:
How to re-register node HAProxy admin pages to Nginx?
If you accidentally delete the registered haproxy proxy settings in /etc/nginx/conf.d/haproxy, you can restore them using the following command:
How to restore DNS registration records in DNSMASQ?
PGSQL cluster/instance domains are registered by default to /etc/dnsmasq.d/pigsty/<name> on infra nodes. You can restore them using the following command:
How to expose new upstream services via Nginx?
You can access services directly through IP:Port. However, we recommend domain names and the Nginx proxy for WebUI access. This centralizes access, reduces exposed ports, and simplifies access control and auditing.
If you want to expose new WebUI services through the Nginx portal, you can add service definitions to the infra_portal parameter.
For example, here’s the Infra portal configuration used by Pigsty’s official demo, exposing several additional services:
After completing the Nginx upstream service definition, use the following configuration and commands to register new services to Nginx.
For HTTPS, delete files/pki/csr/pigsty.csr and files/pki/nginx/pigsty.{key,crt} to force Nginx SSL/TLS certificate regeneration. The new certificates include the new upstream domains.
To use certificates from an authoritative CA instead of the Pigsty self-signed CA, put them in /etc/nginx/conf.d/cert/. Update the corresponding /etc/nginx/conf.d/<name>.conf configuration.
How to manually add upstream repo files to nodes?
Pigsty has a built-in wrapper script bin/repo-add that calls the ansible playbook node.yml to add repo files to corresponding nodes.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)