Skip to content

How sources connect

A source is connected in up to two directions:

  • Alerts in. The tool sends its alerts to AVACOM, by webhook or because AVACOM pulls them. Alerts become incidents.
  • Evidence out. When an incident is analyzed, AVACOM asks the source what it recorded about the incident’s hosts, services and users in a time window. Today seven sources answer such questions: MSN, Elastic, Splunk, Prometheus (its metrics), Grafana (its Prometheus and Loki datasources), Dynatrace (its metrics, events and logs) and Snowflake (its login and query history).

The monitoring modules (SolarWinds, OpManager, Dynatrace, AppDynamics, ATM monitoring, server agents) send their logs to MSN, and MSN answers for them. Their alerts come in directly or through MSN.

Source Alerts in Logs and evidence
MSN hub MSN forwards critical events and tamper alarms Answers evidence queries (verified records)
SolarWinds SolarWinds provider (pull, or an alert action) Its logs go into MSN
ManageEngine OpManager OpManager provider (pull, or a notification profile) Its syslog and traps can go into MSN
ATM monitoring ATM monitoring provider (webhook) SNMP traps and syslog go into MSN
Dynatrace Dynatrace provider (webhook or pull) Answers evidence queries (metrics, events, logs); or its logs go into MSN
AppDynamics AppDynamics provider (webhook) Its logs go into MSN
Elastic, Splunk Splunk by webhook Answer evidence queries from the bank’s SIEM
Prometheus Pulled, or pushed by Alertmanager Answers evidence queries with its metrics
Grafana Grafana provider (webhook or pull) Answers evidence queries from its Prometheus and Loki datasources
Snowflake Its alerts, pulled from ALERT_HISTORY Answers evidence queries from its login and query history
Any tool, by webhook POST /alerts/event –
Network discovery (SNMP) – (it maps the network: devices and links in the topology) –

Most connections are providers, set up by an administrator on the Providers page (bottom of the menu). It lists Installed Providers and Available Providers. To add one:

  1. Click it under Available Providers.
  2. Give it a Provider Name and fill in its fields (address, user, API token…). They are stored in the secret store: files under /state by default, or HashiCorp Vault, AWS, GCP or Kubernetes secrets (SECRET_MANAGER_TYPE).
  3. If the tool can send alerts and AVACOM is reachable from it, tick Install Webhook: AVACOM then configures the tool to send its alerts here. For tools AVACOM can poll, turn on Pulling Enabled: the server then pulls them on a schedule, whether or not anyone has a page open (see Pulling).
  4. Press Connect. AVACOM checks the permissions it needs right away; a missing one is reported as “scopes are invalid”, with the permission’s name.

The Providers page: installed providers at the top and the catalogue of available providers

The Providers page.

Every API worker pulls the providers that have Pulling Enabled on a schedule: their alerts, and their incidents and service topology where they have them.

Provider Every
Prometheus, Grafana minute
Dynatrace 2 minutes
Any other provider that can be pulled 5 minutes
  • Change the schedule. AVACOM_PULL_INTERVAL (minutes) sets one interval for every provider. AVACOM_PULL_DATA_ENABLED=false turns all pulling off.
  • Without the schedule. AVACOM_SCHEDULED_PULL=false turns the schedule off, as on Vercel, where nothing runs between requests. Opening an alerts page then pulls a provider at most once per AVACOM_PULL_INTERVAL, a week by default, as before. With the schedule on, opening a page pulls nothing more.
  • One pull at a time. A worker leases the provider in the database before pulling, for the pull’s deadline (5 minutes by default) plus a minute. However many workers or servers run, a provider is pulled by one of them at a time. While a pull runs, the provider page says so.
  • Deadline. A pull still running after its deadline is logged and frees its place, so the others go on. AVACOM_PULL_WORKERS (4) sets how many pulls a worker runs at once.
  • Less writing. A pulled alert that has not changed (the same status, severity and name) is stored again only every AVACOM_PULL_REFRESH_MINUTES (60), so its last received time moves on that schedule. The service topology is rewritten only where it changed, and a service stays in the applications you put it in.

The evidence query uses the hosts, services and users the incident’s alerts name. AVACOM looks for them in these fields, on the alert or in its labels:

Entity Fields
Host host, hostname, host_name, hostName, instance, node, server
Service service, service_name, app, application
User user, username, user_name, account

If an incident’s alerts name none of them, no source is asked and the RCA has no evidence (“The incident’s alerts name no host, service or user, so no source was asked.”). When a tool’s alerts carry the host or service under another name, add an Extraction or Mapping rule (under Noise reduction) that copies it into host or service.

The names must also match what the modules write into MSN: an alert about db-core-01 finds the records MSN holds for host db-core-01.