Configuring WMA

How to configure the Webscale Monitoring Agent

The Webscale Monitoring Agent (WMA) is a multipurpose program that can be installed on a VM host to facilitate communication with Webscale. It consists of three independent processes—metric monitoring, log collection , and SSH connectivity —which you can enable or disable in the configuration file.

Configuration reference

Configure the Webscale Monitoring Agent using the file /etc/webscale/wma-config.json. The Webscale control plane automatically supplies some configuration values for VMs it creates. The file is in JSON format with the following fields.

FieldTypeDescriptionDefaultExample
access_tokenStringAuthentication token for accessing the upload endpoint.
autoupdateStringFrequency at which WMA checks for updates. A unit suffix (e.g., ’s’, ’m’, ‘h’) is required."300s", "24h"
debugBooleanEnables verbose logging for troubleshooting.falsetrue
log_configObjectSettings for managing logging streams. See table below.
resource_labelsArray of StringsLabels used when registering an SSH/resource host.["staging"]
ssh_configObjectSettings for SSH connectivity. See table below.

log_config Object

FieldTypeDescriptionDefaultExample
disabledBooleanEnables log capture when set to false.truefalse
log_streamsArray of ObjectsArray of objects, where each object defines a single logging stream. See table below.

log_streams Object

FieldTypeDescriptionDefaultExample
application_idStringRequired. An application identifier to associate logs with that application."a1yz47n4q15s"
file_patternsArray of StringsRequired. List of file path patterns of logs to collect. The pattern may contain wildcards (*) to match zero or more characters.["/home/test/custom.log"]
nameStringRequired. A name used to identify the log stream."my-app"
filtersArray of StringsIf configured, when any of the values are found in a log line, then the log line will be captured. If not configured, then all log lines are captured, subject to filter_regex.["CRIT"]
filter_regexStringA regular expression. When configured, any matching log lines are captured. If not configured, then all log lines are captured, subject to filters."CRIT|EMERG|ALERT"

ssh_config

FieldTypeDescriptionDefaultExample
addressStringUsed when registering an SSH host. Typically, this should not be set manually."1.2.3.4"
viaStringUsed when registering an SSH host. Typically, this should not be set manually."ssh-hosts/xyz"
disabledBooleanEnables SSH connectivity when set to false.truefalse

Sample configuration file:

{
  "autoupdate": "24h",
  "ssh_config": {
    "disabled": false,
  },
  "log_config": {
    "disabled": false,
    "log_streams": [
      {
        "name": "StreamName",
        "file_patterns": [
          "/home/test/custom.log"
        ],
        "application_id": "a1yz47n4q15s"
      }
    ]
  }
}

Metadata configuration

WMA typically runs on servers managed by the Webscale Control Plane. For servers created in a Webscale Cluster, the metadata file (/var/lib/webscale/metadata.json) contains values that WMA uses unless they are overwritten by the local configuration file. These metadata values include:

[
	{
		"key":"WEBSCALE_API_HOST",
		"value":"api.webscale.com"
	},
	{
		"key":"WEBSCALE_ACCESS_TOKEN",
		"value":"xyz"
	},
	{
		"key":"WEBSCALE_SERVER_ID",
		"value":"abcd"
	}
]
Have questions not answered here? Contact Support to get more help.

Last modified on June 3, 2026