Skip to main content
Prerequisites
  • You used the VM setup script to set up the xorlab VMs. If for any reason that was not the case, follow the Hostname changes there manually for the XCC: Setup Script.
  1. Open the Expert Editor.
  2. Navigate to /monitoring/prometheus/prometheus.yml.
  3. In the scrape_configs section, find the mta scrape job, and replace example-mta1/2 with the hostnames of your MTA VMs. If you have more MTAs, add more targets with correct hostnames.
    prometheus.yml
  4. Click Publish. The monitoring configuration becomes active within about one minute; after a few minutes you should start to see data in the monitoring dashboards.

Set up more than two MTAs

This part is only required when you plan to use more than the default of two MTA VMs.
  1. Navigate to /monitored_mta/prometheus/.
  2. Duplicate an existing prometheus.yml.vmx.N file once for each additional MTA.
  3. For every additional prometheus.yml.vmx.N: Change external_labels.host to the name of the respective MTA, e.g. mta3.
    prometheus.yml.vmx.N
    Note: Setting the host label in monitored_mta/prometheus/prometheus.yml.vmx.N as opposed to setting them centrally in the XCC Prometheus config, i.e. monitoring/prometheus/prometheus.yml, allows alerts generated on the MTAs to display their own hostname by using {{ $labels.host }} in the alert template.
  4. Navigate to /monitored_mta/promtail/.
  5. Duplicate an existing config.yml.vmx.N file once for each additional MTA.
  6. For every additional config.yml.vmx.N: Update the hosts label to match the MTA:
    config.yml.vmx.N
  7. Click Publish. The monitoring configuration becomes active within about one minute.

Set up Sandbox monitoring

This part is only required and applicable if you run your own Sandbox appliances (DANA) on-premises.
  1. Open monitoring/prometheus/prometheus.yml.
  2. In the scrape_configs section, add the following dana job to the end. Set a unique <HOSTX> value for each target.
    prometheus.yml
  3. In the same file, scroll up and add dana_alerts.yml to rule_files to activate alert rules for the Sandbox:
    prometheus.yml
    Sandbox AlertsSandbox alerts will trigger on the XCC. As a consequence, if XCC is down, no Sandbox alerts will be created (in contrast to the MTA alerts that are triggered on the MTAs).
    Enabling the Sandbox rule file
  4. Navigate to monitoring/grafana/provisioning/dashboards/ and open custom.yml
  5. Uncomment the DANA Dashboards: Enabling the Sandbox provider
  6. Click Publish. The monitoring configuration becomes active within about one minute.