This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Reference docs

Technical reference docs and general sources of information that might be useful.

References in this site

Config file format

A detailed description of all configuration options in the main config file is available here.

Available metrics

A complete list of all metrics provided by Butler SOS is found here.

Useuful references out there

Qlik Sense APIs

Qlik’s API documentation is found here.

InfluxDB

InfluxDB docs here.

Note that Butler SOS was developed with InfluxDB 1.x in mind. It is not currently compatible with InfluxDB 2.x.

Prometheus

Prometheus docs here.

Grafana

Grafana docs here.

MQTT

There are various MQTT brokers available, both commercial and open source.
Mosquitto is an open sourceMQTT broker with a solid track record and available as a Docker container.

There are also plenty of companies offering SaaS MQTT brokers, ranging from small specialised companies to the big cloud providers.

1 - Command line options

Description of Butler SOS’ command line options.

Command line options

When starting Butler SOS, you can pass command line options to customize its behavior.
Looks like this:

Usage: butler-sos [options]

Butler SenseOps Stats ("Butler-SOS") is a microservice publishing operational Qlik Sense metrics to InfluxDB, Prometheus and New Relic.
User events and log events can be forwarded from Sense to Butler SOS and then acted upon there. Events can be stored in InfluxDB and sent to New Relic.
Add Grafana for great looking dashboards and you get real-time monitoring of what happens inside a Qlik Sense environment.

Options:
  -V, --version                        output the version number
  -c, --configfile <file>              path to config file
  -l, --loglevel <level>               log level (choices: "error", "warn", "info", "verbose", "debug", "silly")
  --new-relic-account-name  <name...>  New Relic account name. Used within Butler SOS to differentiate between different target New Relic accounts
  --new-relic-api-key <key...>         insert API key to use with New Relic
  --new-relic-account-id <id...>       New Relic account ID
  --skip-config-verification           Disable config file verification (default: false)
  -h, --help                           display help for command

-V, –version

Output the version number of Butler SOS.

-c, –configfile

Specifies the configuration file to use.

Valid values: A path to a configuration file.

Default: Whatever is specified in the NODE_ENV environment variable, with a .yaml extension added. Butler SOS will look for that file in the ./config directory.

Example:

  • -c or --configfile are not specified. NODE_ENV is set to production. Butler SOS will try to read settings from ./config/production.yaml.

-l, –loglevel

Specifies the log level to use.
When set, this overrides the log level specified in the configuration file.

Valid values: ’error’, ‘warn’, ‘info’, ‘verbose’, ‘debug’, ‘silly’

Default: ‘info’

When using New Relic as backend for storing metrics, you can specify New Relic credentials in the config file - but that is not ideal from a security perspective.

To avoid that, you can specify the New Relic credentials on the command line using the following options.

–new-relic-account-name

List of New Relic account names. Used within Butler SOS to differentiate between different target New Relic accounts to which data can be sent. This name has nothing to do with the account name used in New Relic - it’s purely for Butler SOS’ internal use.
Specifically, it’s at multiple places in the config file where you can specificy to which New Relic account to send data.

Enclose account names in quotes if they contain spaces.
Separate multiple account names with a space.

Example: --new-relic-account-name "Account 1" "Account 2"

–new-relic-api-key

List of New Relic API keys. Used to authenticate with New Relic.

Enclose API keys in quotes if they contain spaces.
Separate multiple API keys with a space. Note that the order of the API keys must match the order of the account names, i.e. the first API key corresponds to the first account name, the second API key corresponds to the second account name, and so on.

Example: --new-relic-api-key "API key 1" "API key 2"

–new-relic-account-id

List of New Relic account IDs. Used to identify the New Relic account to which data should be sent.

Enclose account IDs in quotes if they contain spaces.
Separate multiple account IDs with a space. Note that the order of the account IDs must match the order of the account names, i.e. the first account ID corresponds to the first account name, the second account ID corresponds to the second account name, and so on.

–skip-config-verification

Disable config file verification.

By default, Butler SOS verifies the config file when it starts. If the config file is invalid, Butler SOS will log an error and exit.
Use this option to disable config file verification.

-h, –help

Display help for command.

2 - Config file format

Everything you ever wanted to know about the Butler SOS configuration file.

Tip

The config file uses YAML notation, with file extensions of .yaml or .yml.
The .yaml extension is recommended.

The config file is the heart of Butler SOS.
All setting must be defined in the config file - run time errors are likely to occur otherwise.

The sample config file looks like this:

Sample config file

A few things to keep in mind:

  • Topic names (e.g. “Butler-SOS.logdb”) are case sensitive.
  • First time Butler SOS is started, a new check is done if the specified InfluxDB database already exists. If it doesn’t exist it will be created together with a default InfluxDB retention policy. The retention policy is based on the time period set in the config file.

Top level

Parameter Description
logLevel The level of details in the logs. Possible values are silly, debug, verbose, info, warn, error (in order of decreasing level of detail).
fileLogging true/false to enable/disable logging to disk file
logDirectory Subdirectory where log files are stored
anonTelemetry Can Butler SOS share anonymous data about itself with the Butler SOS project? More info on whata data is collected here.

Butler-SOS.heartbeat

Heartbeats can be used to send “I’m alive” messages to some other tool, e.g. an infrastructure monitoring tool.
The concept is simple: The remoteURL will be called at the specified frequency. The receiving tool will then know that Butler SOS is alive.

Parameter Description
enable Should heartbeats be sent to some URL, indicating that Butler SOS is alive and well? true/false
remoteURL URL that will be called for heartbeats
frequency How often should heartbeats be sent? Format according to https://bunkat.github.io/later/parsers.html#text

Butler-SOS.dockerHealthCheck

Docker health checks are used when running Butler SOS as a Docker container.

The Docker engine will call the container’s health check REST endpoint with a set interval to determine whether the container is alive/well or not.
If you are not running Butler SOS in Docker you can disable this feature.

Parameter Description
enable Should a Docker healthcheck endpoint be created within Butler SOS? Set to false if not running Butler SOS under Docker. true/false
port Port the healthcheck should use. Usually 12398, but might need be changed if seveal Butler instances run on the same server

Butler-SOS.uptimeMonitor

Parameter Description
enable Should messages with Butler SOS uptime and memory usage be written to console and logs? true/false
frequency How often should uptime messages be written to console and/or logs? Format according to https://bunkat.github.io/later/parsers.html#text
logLevel Starting at what log level should uptime messages be used? Possible values are silly, debug, verbose, info, warn, error. For example, if you specify “verbose” here, uptime messages will appear if you set overall log level to silly, debug or verbose.
storeInInfluxdb.
butlerSOSMemoryUsage
Should data on Butler SOS’ own memory use be stored in Infludb? true/false
storeInInfluxdb.
instanceTag
Tag used to differentiate data from multiple Butler SOS instances. Useful if running different Butler SOS instances against (for example) DEV, TEST and PROD environments
storeNewRelic.
enable
Should uptime data be sent to New Relic? true/false
storeNewRelic.
destinationAccount
Array of New Relic account names to which uptime data will be sent
storeNewRelic.
metric.dynamic.
butlerMemoryUsage.enable
Should Butler SOS memory metrics be sent to New Relic? true/false
storeNewRelic.
metric.dynamic.
butlerUptime.enable
Should Butler uptime (days, hours, minutes since startup) be sent to New Relic? true/false
storeNewRelic.
attribute.static
Array of attributes which will be added to all uptime metrics sent to New Relic
storeNewRelic.
attribute.dynamic.
butlerVersion.enable
Should uptime metrics be tagged with Butler SOS version number? true/false

Butler-SOS.thirdPartyToolsCredentials

Parameter Description
newRelic Array of credentials for the New Relic accounts to which data should be sent. Each array item consists of severail items, see below.
newRelic[]
accountName
Name of New Relic account. This is a “friendly name” that’s used within Butler SOS to identify each NR account.
newRelic[]
insertApiKey
Insert API key associated with the NR account. Get this from the NR account’s settings page.
newRelic[]
accountId
New Relic account id. Get this from the NR account’s settings page.

Butler-SOS.userEvents

Track individual users opening/closing apps and starting/stopping sessions.
Requires log appender XML file(s) to be added to Sense server(s).

Parameter Description
enable Should Butler SOS track detailed user events (i.e. session start/stop, connection open/close)? true/false
excludeUser Array of users (=directory/userId pairs) that should be disregarded when user events arrive from Sense. Remove sample users before deploying Butler SOS.
udpServerConfig.
serverHost
IP/host where the user event UDP server should listen for incoming connections. Usually the same IP/host as where Butler SOS is running. Using 0.0.0.0 will cause Butler SOS to listen on all available IPs.
udpServerConfig.
portUserActivityEvents
Port on which the user event UDP server will listen. Should match the port specified in the log appender.
tags Array of tags (tagName/tagValue pairs) that should be added to each user event before sending it to InfluxDB. Remove sample tags before deploying Butler SOS.
sendToMQTT.enable Should user events be sent to MQTT? true/false
sendToMQTT.postTo.
everythingTopic.enable
Should all user event messages be sent to an MQTT topic? true/false
sendToMQTT.postTo.
everythingTopic.topic
MQTT topic to which all user event messages will be sent.
sendToMQTT.postTo.
sessionStartTopic.enable
Should session start user event messages be sent to an MQTT topic? true/false
sendToMQTT.postTo.
sessionStartTopic.topic
MQTT topic to which session start user event messages will be sent.
sendToMQTT.postTo.
sessionStopTopic.enable
Should session stop user event messages be sent to an MQTT topic? true/false
sendToMQTT.postTo.
sessionStopTopic.topic
MQTT topic to which session stop user event messages will be sent.
sendToMQTT.postTo.
connectionOpenTopic.enable
Should connection open user event messages be sent to an MQTT topic? true/false
sendToMQTT.postTo.
connectionOpenTopic.topic
MQTT topic to which connection open user event messages will be sent.
sendToMQTT.postTo.
connectionCloseTopic.enable
Should connection close user event messages be sent to an MQTT topic? true/false
sendToMQTT.postTo.
connectionCloseTopic.topic
MQTT topic to which connection close user event messages will be sent.
sendToInfluxdb.enable Should user events be saved in InfluxDB? true/false
sendToNewRelic.enable Should user events be saved in New Relic? true/false
sendToNewRelic.destinationAccount Array of New Relic account names to which user events will be sent.
sendToNewRelic.scramble Should user directory and user ID fields be scrambled before user events are sent to New Relic? true/false

Butler-SOS.logEvents

Log events are used to capture Sense warnings, errors and fatals in real time. Requires log appender XML file(s) to be added to Sense server(s).

Note that log events can be enabled/disabled per source (repository, proxy, scheduler etc).

Parameter Description
udpServerConfig.
serverHost
IP/host where the log event UDP server should listen for incoming connections. Usually the same IP/host as where Butler SOS is running. Using 0.0.0.0 will cause Butler SOS to listen on all available IPs.
udpServerConfig.
portLogEvents
Port on which the log event UDP server will listen. Should match the port specified in the log appender.
tags Array of tags (tagName/tagValue pairs) that should be added to each log event before sending it to InfluxDB. Remove sample tags before deploying Butler SOS.
source.
engine.enable
Should log events from the engine service be handled by Butler SOS? true/false
source.
proxy.enable
Should log events from the proxy service be handled by Butler SOS? true/false
source.
repository.enable
Should log events from the repository service be handled by Butler SOS? true/false
source.
scheduler.enable
Should log events from the scheduler service be handled by Butler SOS? true/false
sendToMQTT.enable Should log events be sent to MQTT? true/false
sendToMQTT.baseTopic Root MQTT topic. All log events MQTT messages will be posted in this topic or subtopics of it.
sendToMQTT.postTo
.baseTopic
Should all log events be posted to the root topic? true/false
sendToMQTT.postTo
.subsystemTopics
All log events originate from a specific subsystem in a Sense server. These subsystems are organised in a hierarchical tree that can be directly mapped to MQTT topics. Should log events be posted as MQTT messages to such topics? true/false
sendToInfluxdb.enable Should log events be saved in InfluxDB? true/false
sendToNewRelic.enable Should log events be sent to New Relic? true/false
sendToNewRelic.destinationAccount Array of New Relic account names to which log events will be sent.
sendToNewRelic.
source.engine.enable
Should log events from the engine service be handled?
sendToNewRelic.
source.engine.logLevel.error
Should ERROR log events from the engine service be handled?
sendToNewRelic.
source.engine.logLevel.warn
Should WARN log events from the engine service be handled?
sendToNewRelic.
source.proxy.enable
Should log events from the proxy service be handled?
sendToNewRelic.
source.proxy.logLevel.error
Should ERROR log events from the proxy service be handled
sendToNewRelic.
source.proxy.logLevel.warn
Should WARN log events from the proxy service be handled
sendToNewRelic.
source.repository.enable
Should log events from the repository service be handled?
sendToNewRelic.
source.repository.logLevel.error
Should ERROR log events from the repository service be handled
sendToNewRelic.
source.repository.logLevel.warn
Should WARN log events from the repository service be handled
sendToNewRelic.
source.scheduler.enable
Should log events from the scheduler service be handled?
sendToNewRelic.
source.scheduler.logLevel.error
Should ERROR log events from the scheduler service be handled
sendToNewRelic.
source.scheduler.logLevel.warn
Should WARN log events from the scheduler service be handled

Butler-SOS.logdb

As of August 2021 log db has been deprecated in Qlik Sense.
It is no longer installed when doing fresh QSEoW installs.

To support older QSEoW clusters out there Butler SOS will for now keep log db support intact.

Parameter Description
enable Should Sense log db be queried for warnings/errors/info messages? true/false
pollingInterval How often to query log db. Milliseconds
queryPeriod How far back should log db be queried? Human readable, e.g. “5 minutes” (which is also the default value)
host IP or FQDN of server where Sense log db is running
port Port used by log db. 4432 unless changed during installation of Sense
qlogsReaderUser User to connect to log db as. “qlogs_reader” unless changed during installation of Sense
qlogsReaderPwd Password of above user
extractErrors Should error entries be extracted from log db? true/false
extractWarnings Should warning entries be extracted from log db? true/false
extractInfo Should info entries be extracted from log db? true/false.
NOTE: If info level logging is enabled, this will result in lots of messages being stored in Influxdb (at least for a busy Sense cluster).

Butler-SOS.cert

Certificates to use when connecting to Sense. Get these from the Certificate Export in QMC.

Parameter Description
clientCert Certificate file. Exported from QMC
clientCertKey Certificate key file. Exported from QMC
clientCertCA Root certificate for above certificate files. Exported from QMC
clientCertPassphrase Password used to protect the certificate (as set when exporting cert from QMC)

Butler-SOS.mqttConfig

MQTT config parameters. These must be correctly defined for any other MQTT features in Butler SOS to work.

Parameter Description
enable Should health metrics be sent to MQTT? true/false
brokerHost IP or FQDN of MQTT broker
brokerPort Broker port
baseTopic Default topic used if not not oherwise specified elsewhere. Should end with /. For example butler-sos/

Butler-SOS.newRelic

If enabled, select Butler SOS metrics and events will be sent to New Relic.

Note that New Relic destination accounts for events are defined in the Butler-SOS.userEvent and Butler-SOS.logEvent sections, whereas destination accounts for metrics are defined in this section (Butler-SOS.newRelic).

Parameter Description
enable Should Qlik Sense health metrics be sent to New Relic? true/false
event.url Which API URL should be used for sending events to New Relic?
At time of this writing the options are
https://insights-collector.eu01.nr-data.net
https://insights-collector.newrelic.com
More info here: https://docs.newrelic.com/docs/accounts/accounts-billing/account-setup/choose-your-data-center
event.header Array of name/value pairs that will be added as http headers to all calls to the New Relic event API
event.attribute.
static
Array of name/value pairs, representing attributes/tags that will be added to all events sent to New Relic
event.attribute.
dynamic.butlerSosVersion.
enable
Should Butler SOS’ version be attached as an attribute to events sent to New Relic? true/false
metric.destinationAccount Array of New Relic account names to which Sense health metrics will be sent.
metric.url Which API URL should be used for sending Sense health metrics to New Relic?
At time of this writing the options are
https://insights-collector.eu01.nr-data.net/metric/v1
https://metric-api.newrelic.com/metric/v1
metric.header Array of name/value pairs that will be added as http headers to all calls to the New Relic metric API
metric.dynamic.
engine.memory.
enable
Send Sense memory metrics to New Relic? true/false
metric.dynamic.
engine.cpu.
enable
Send Sense CPU metrics to New Relic? true/false
metric.dynamic.
engine.calls.
enable
Send metrics about calls to the Sense engine to New Relic? true/false
metric.dynamic.
engine.selections.
enable
Send metrics about number of selections made in Sense apps to New Relic? true/false
metric.dynamic.
engine.sessions.
enable
Send aggregated Sense engine session metrics to New Relic? true/false
metric.dynamic.
engine.users.
enable
Send aggregated Sense user metrics to New Relic? true/false
metric.dynamic.
engine.saturated.
enable
Send Sense engine saturation status to New Relic? true/false
metric.dynamic.
apps.docCount.
enable
Send metrics on loaded/active/in-memory Sense apps to New Relic? true/false
metric.dynamic.
apps.activeDocs.
enable
Should data on what docs are active in engine be sent to New Relic (true/false)?
metric.dynamic.
apps.loadedDocs.
enable
Should data on what docs are loaded (=having open sessions or connections) in engine be sent to New Relic (true/false)?
metric.dynamic.
apps.inMemoryDocs.
enable
Should data on what docs are in engine memory be sent to New Relic (true/false)?
metric.dynamic.
cache.cache.
enable
Send Sense cache metrics to New Relic? true/false
metric.dynamic.
proxy.sessions.
enable
Send aggregated Sense proxy metrics to New Relic? true/false
metric.attribute.
static
Array of name/value pairs, representing attributes/tags that will be added to all Sense health metrics sent to New Relic
metric.attribute.
dynamic.butlerSosVersion.
enable
Should Butler SOS’ version be attached as an attribute to Sense health metrics sent to New Relic? true/false

Butler-SOS.prometheus

If enabled, select Butler SOS metrics will be exposed on a Prometheus compatible URL from where they can be scraped by Prometheus.

Parameter Description
enable Should health metrics be made available for scraping on a Prometheus compatible API http endpoint? true/false
host IP on which the Prometheus compatible endpoint should be available. Using 0.0.0.0 will cause Butler SOS to listen on all available IPs.
port Port on which the Prometheus compatible endpoint will be made available. Default 9842.

Butler-SOS.influxdbConfig

InfluxDB config parameters. These must be correctly defined for any other InfluxDB features in Butler SOS to work.

Parameter Description
enable Should health metrics be stored in Influxdb? true/false
hostIP IP or FQDN of Influxdb server.
hostPort Port where Influxdb server is listening. Useful if Influxdb for some reason is not using its standard port of 8086.
NOTE: Must be set to a value (for example 8086), otherwise this config entry will be flagged as invalid when the config file format is verified on startup.
auth.enable Enable if data is to be stored in a password protected Influxdb database.
auth.username Influxdb username.
auth.password Influxdb password.
dbName Database namne in Influxdb to which health metrics will be stored. Database will be created if it does not already exist when Butler SOS is started.
retentionPolicy.
name
Name of default retention policy that will be created in InfluxDB database when that database is created during first execution of Butler SOS.
retentionPolicy.
duration
Duration during which metrics are kept in InfluxDB. After the duration has passed, InfluxDB will purge all data older than duration from the database. See InfluxDB docs for details on syntax.
includeFields.
activeDocs
Should a list of currently active Sense apps be stored in Influxdb? true/false
includeFields.
loadedDocs
Should a list of Sense apps opened in a user session be stored in Influxdb? true/false
includeFields.
activeDocs
Should a list of Sense apps loaded into memory (some apps might not currently be associated with a user session) be stored in Influxdb? true/false

Butler-SOS.appNames

Parameter Description
enableAppNameExtract Should app names be extracted from Qlik Sense server? true/false
extractInterval How often (milliseconds) should app names be extracted from Sense server?
hostIP IP or FQDN of Sense server from which app names should be extracted

Butler-SOS.userSessions

Extract user session data per virtual proxy.

Parameter Description
enableSessionExtract Influxdb password
pollingInterval Influxdb password
excludeUser Array of users (=directory/userId pairs) that should be disregarded when user session data arrives from Sense.

Butler-SOS.serversToMonitor

Parameter Description
pollingInterval How often to query the Sense healthcheck API
rejectUnauthorized Set to false to ignore warnings/errors caused by Qlik Sense’s self-signed certificates.
Set to true if the Qlik Sense root CA is available on the computer where Butler SOS is running.
serverTagsDefinition List of tags to add to each server when storing the data in Influxdb. All tags defined here MUST be present in each server’s definition section further down in the config file!
servers List of what servers to monitor. For each server a set of properties MUST be defined.
servers.
host:4747
FQDN of server. Domain should match that of the certificate exported from QMC - otherwise certificate warnings may appear. NOTE: You need to specify the port too - should be :4747 unless it’s been changed from default value (very unusual to change this).
servers.
serverName
Human friendly server name
servers.
serverDescription
Human friendly server description
servers.
logDbHost
Server’s name as it appears in the process_host field log db. This is needed in order to link entries in logdb to the specific server at hand. See note below too!
servers.
userSessions.
enable
Control whether user session data should be retrieved for this server
servers.
userSessions.
host
Host and port from which to retrieve user session data. Usually on the form servername.mydomain.net:4243
servers.
userSessions.
virtualProxies
A list of key-value pairs. Use to specify for which virtual proxies on this server user session data should be retrieved.
serverTags A list of key-value pairs. Use to provide more metadata for servers. Can then (among other things) be used to created more advanced Grafana dashboards.
headers A list of key-value pairs. Headers specified here will be used when retrieving metrics from this Sense server.

The Butler-SOS.serversToMonitor.servers.logDbHost property can be tricky to get right. Easiest way to get the correct value is to look in the Nodes section in the QMC. In the Host name column you find the host names of the various nodes. logDbHost should be set to the first part of each host name:

Log db host name

3 - Available Metrics

In order to create graphs in for example Grafana, you must understand what metrics are available and how they are structured.

3.1 - Available metrics: InfluxDB

In order to create dashboards in for example Grafana, you must understand what metrics are available and how they are structured.

InfluxDB

Metrics retrieved from the Sense servers can be stored in an InfluxDB database. You don’t have to be an InfluxDB expert to use Butler SOS, but understanding some basic concepts are helpful.

Storing metrics in InfluxDB is not mandatory, but some kind of metrics storage - either in InfluxDB, New Relic or Prometheus - is needed to take full benefit of Butler SOS’ features.

  • InfluxDB is a time series database. This means it is super good at storing values that have a timestamp associated with them - and pretty bad at everything else. In many respects time series databases are the opposite of traditional SQL databases (who are usually pretty bad at handling time series data).

  • Because of it’s focus on time series data, InfluxDB has its own query language, InfluxQL. It is somewhat similar to SQL, but also has many unique commands and features.

  • Browsing through the key concepts of InfluxDB is a good idea. There you will learn about things such as measurements, series and tags - which are all key to using data stored in InfluxDB.

Tip

The list of metrics below shows all metrics that Butler SOS can store in InfluxDB.

If you have disabled some features of Butler SOS, the asociated metrics will not be stored in InfluxDB.

Metrics structure

The metrics are grouped based on what kind of Qlik Sense data they represent. InfluxDB is a very capable database, so we will only touch on the basics here.

Overview

Measurements are just what it sounds like: snapshots of some value(s), taken at a specific point in time. A measurement can contain several field keys, which for practical purposes can be viewed as the individual metrics.

For example, the list of measurements look like this (using the InfluxDB command line client to explore the database structure):

> use senseops
Using database senseops
> show measurements
name: measurements
name
----
apps
butlersos_memory_usage
cache
cpu
log_event
log_event_logdb
mem
saturated
sense_server
session
user_events
user_session_details
user_session_list
user_session_summary
users
>

Let’s take a look at what field keys the apps measurement contains:

> show field keys from apps
name: apps
fieldKey                     fieldType
--------                     ---------
active_docs                  string
active_docs_count            integer
active_docs_names            string
active_session_docs_names    string
calls                        integer
in_memory_docs               string
in_memory_docs_count         integer
in_memory_docs_names         string
in_memory_session_docs_names string
loaded_docs                  string
loaded_docs_count            integer
loaded_docs_names            string
loaded_session_docs_names    string
selections                   integer
>

Ok, so the field keys are the actual metrics for which we gather data. Collectively those metrics (again: field keys in InfluxDB lingo) above are grouped into a measurement called apps.

There is one more concept you need to understand: tag keys

It’s pretty simple: Tag keys are used to categorise (or simply “tag”) measurements.
Let’s say you use Butler SOS to collect data from ten Sense servers. That’s great, but how will you later distinguish between server 3 and server 8? You need some way of telling your Grafana dashboard to show the data for server 3 (if that’s what you want).

Tags solve this. In the Butler SOS YAML config file you can define any number of tags that will be used to tag data coming in from Qlik Sense.

The beauty of tags is that they play very nicely with Grafana - without them the Grafana dashboards would not be nearly as flexible as they are.

To see what tag keys a certain measurement has you use a query similar to the one above/for fields:

> show tag keys from apps
name: apps
tagKey
------
host
serverBrand
serverLocation
server_description
server_group
server_name
server_type

Note that this list of tags consits of

  1. Tags always present. These are inserted by Butler SOS and are present for all measurements. These are host, server_description and server_name.
  2. Tags configured in Butler SOS’ config fil. In the example above these are serverBrand, serverLocation, server_group andserver_type.

Measurements and fields

The measurements are grouped based on what part of Sense they are retrieved from. The groups are

  1. General health metrics.
  2. Messages from the log database.
  3. Detailed metrics about what users are connected to (i.e. have sessions open with) which virtual proxies.
  4. Messages from the log database.
  5. Log events: Warning, error and fatal messages from QSEoW logs.
  6. User events: Session and connection related messages from QSEoW logs.
  7. Metric relating to Butler SOS itself (i.e. not retrieved from Sense).

General health metrics

A shared set of tag keys are available for all general health metrics:

Tag key Description
host Host name, taken from config file’s Butler-SOS.serversToMonitor.servers[].host property. Usually a fully qualified host name, or in some cases an IP address.
server_name Human readible/friendly server name, taken from config file’s Butler-SOS.serversToMonitor.servers[].serverName property.
server_description Description of the server, taken from config file’s Butler-SOS.serversToMonitor.servers[].serverDescription property.

In addition to the above, all tags defined in the YAML config file for the servers will be included as tag keys.

Measurement: apps

Source: Health check API

Field key Type Description
active_docs string An array of GUIDs of active apps. Empty if no apps are active. An app is active when a user is currently performing some action on it.
active_docs_count integer Number of currently active apps
active_docs_names string Names of currently active (non-session) apps
active_session_docs_names string Names of currently active session apps
in_memory_docs string An array ofthe GUIDs of all apps currently loaded into the memory, even if they do not have any open sessions or connections to it. The apps disappear from the list when the engine has purged them out from memory.
in_memory_docs_count integer Numer of apps currently in memory
in_memory_docs_names string Names of (non-session) apps currently in memory
in_memory_session_docs_names string Names of session apps currently in memory
loaded_docs string An array of the GUIDs of apps currently loaded into memory and that have open sessions or connections. Empty if no apps are loaded.
loaded_docs_count integer Number of currently loaded apps
loaded_docs_names string Names of currently loaded (non-session) apps
loaded_session_docs_names string Names of currently loaded session apps
calls integer Number of calls to the Qlik associative engine since it started
selections integer Numer of selections made in Qlik associative engine since it started
Measurement: cache

Source: Health check API

Field key Type Description
added integer Number of cache objects added to the cache
bytes_added integer Number of bytes added to the cache
hits integer Number of cache hits in engine
lookups integer Number of lookups in egnine
replaced integer Number of cache objects replaced
Measurement: cpu

Source: Health check API

Field key Type Description
total integer Percentage of the CPU used by the engine, averaged over a time period of 30 seconds.
Measurement: mem

Source: Health check API

Field key Type Description
allocated integer The total amount of allocated memory (committed + reserved) from the operating system in MB.
committed integer The total amount of committed memory for the engine process in MB.
free integer The total amount of free memory (minimum of free virtual and physical memory) in MB.
Measurement: saturated

Source: Health check API

Field key Type Description
saturated boolean When the value is true, the engine is running with high resource usage; otherwise the value is false. See link above for details.
Measurement: sense_server

Source: Health check API

Field key Type Description
started string ISO timestamp when the engine service was started.
uptime string Time since engine service was started (human readable).
version string Engine version.
Measurement: session

Source: Health check API

Field key Type Description
active integer Number of active engine sessions. A session is active when a user is currently performing some action on an app, for example, making selections or creating content.
total integer Total number of engine sessions.
Measurement: users

Source: Health check API

Field key Type Description
active integer Number of users currently doing something in some app.
total integer Number of users with established sessions to the Sense server.

User session details

User session metrics have slightly different tag keys depending on the granularity level of the metric - those metrics are therefore listed under each heading below.

Measurement: user_session_summary

Source: Session module API

Field key Type Description
session_count float Total number of sessions, per server and virtual proxy.
session_user_id_list string List of user IDs with sessions, per server and virtual proxy. NOTE: A single user may have more than one session open to a particular server/virtual proxy.

Tag keys:

Tag key Description
host Host name, taken from config file’s Butler-SOS.serversToMonitor.servers[].host property. Usually a fully qualified host name, or in some cases an IP address.
server_name Human readible/friednly server name, taken from config file’s Butler-SOS.serversToMonitor.servers[].serverName property.
server_description Description of the server, taken from config file’s Butler-SOS.serversToMonitor.servers[].serverDescription property.
user_session_host Host name the session metrics are associated with.
user_session_virtual_proxy Virtual proxy name the session metrics are associated with.
Measurement: user_session_list

Source: Session module API

Field key Type Description
session_user_id_list string List of user IDs with sessions, per server and virtual proxy. NOTE: A single user may have more than one session open to a particular server/virtual proxy.

Tag keys:

Tag key Description
host Host name, taken from config file’s Butler-SOS.serversToMonitor.servers[].host property. Usually a fully qualified host name, or in some cases an IP address.
server_name Human readible/friednly server name, taken from config file’s Butler-SOS.serversToMonitor.servers[].serverName property.
server_description Description of the server, taken from config file’s Butler-SOS.serversToMonitor.servers[].serverDescription property.
user_session_host Host name the session metrics are associated with.
user_session_virtual_proxy Virtual proxy name the session metrics are associated with.
Measurement: user_session_details

Source: Session module API

Field key Type Description
session_id string Session GUID, uniquely identifying the session in the entire Sense cluster.
user_directory string Session user’s user directory.
user_id string Session user ID

Tag keys:

Tag key Description
host Host name, taken from config file’s Butler-SOS.serversToMonitor.servers[].host property. Usually a fully qualified host name, or in some cases an IP address.
server_name Human readible/friednly server name, taken from config file’s Butler-SOS.serversToMonitor.servers[].serverName property.
server_description Description of the server, taken from config file’s Butler-SOS.serversToMonitor.servers[].serverDescription property.
user_session_host Host name the session metrics are associated with.
user_session_virtual_proxy Virtual proxy name the session metrics are associated with.
user_session_id Session GUID
user_session_user_directory User’s user directory
user_session_user_id User ID

User events

User events capture real-time events in Qlik Sense as they happen.
They originate from Sense’s log4net logging framework and are forwarded from Sense to Butler SOS by means of XML log appenders in Sense.
These events are also forwarded as MQTT messages, allowing other systems to act when warnings/errors/fatals occur in Qlik Sense.

Setup instructions here.

The following user events are handled by Butler SOS:

  • Session start
  • Session stop
  • Connection open
  • Connection close.
Measurement: user_events

Tag keys present for all user_events records:

Tag key Description
event_action Indicates what the event is about. Examples: Start session, Stop session, Open connection, Close connection.
host Host name as reported in Qlik Sense’s proxy log files.
origin Textual description of what caused the event. Can for example be AppAccess, which means a user opened or closed a browser tab with a Sense app in it.
userDirectory Sense user directory of the user causing the event.
userId Sense user ID for the user causing the event.
userFull The combination of userDirectory and userId.

If the user event includes browser user agent information, the following tags will be present:

Tag key Description
uaBrowserName Name of connecting user’s browser.
uaBrowserMajorVersion Connecting user’s browser version.
uaOsName Connecting user’s operating system.
uaOsVersion Connecting user’s operating system version.

In addition to the above tags defined in the Butler SOS config file will be added.
More info here.

Fields:

Field key Description
appId Id of app that is opened/closed.
appName Name of app that is opened/closed.
userFull Same as the userFull tag.
userId Same as the userId tag.

Log events

Log events are used to capture warning, error and fatal messages in Sense. Once in Butler SOS these events are stored in InfluxDB (enabling Grafana dashboards).
These events are also forwarded as MQTT messages, allowing other systems to act when warnings/errors/fatals occur in Qlik Sense.

Setup instructions here.

Info

There is only one measurement for log events. It’s simply called log_event.

Different QSEoW services (Qlik Sense Enterprise on Windows) will send different tags and metrics in the log events.
Each variant is described below.

This modular approach to log events makes it possible to extend Butler SOS’ with additional log events if/when needed..

Source: Proxy service

Events such as failed login attempts will be sent from the proxy service.

Proxy log events have these tags:

Tag key Description
host Host name as reported in Qlik Sense’s log files.
level Sense log level. Possible values are WARN, ERROR, FATAL.
log_row Row number in Sense log file where the event can be found. Useful if you after all have to dig into the log files.
result_code Result code as reported by the Sense soure system that caused the event. Its meaning will differ depending on where the event originated.
source Source system within Sense that caused the event. Examples: qseow-scheduler, qseow-proxy, qseow-repository
subsystem Subsystem where the event originated. More granular than source. Example: System.Scheduler.Scheduler.Master.Task.TaskSession
user_directory Sense user directory of the user causing the event. Example: MYCOMPANY
user_id Sense user ID for the user causing the event. Example: joe
user_full The combination of user_directory and user_id. Example: MYCOMPANY\joe

Fields in proxy log events:

Field key Description
command Description of what caused the event, as found in the Sense logs. Example: Login:TryLogin
context In what context (if one exists) the event occured. If no context is available Not available will be used.
exception_message If a serious problem/exception occurs the associated message is available here.
message Description of what the event is about. Example: Login failed for user 'LAB\\goran' wrong credentials?
origin Example: qseow-repository.
raw_event The raw event message as received from QSEoW. Described here.
result_code Example: 500

The raw_event is the actual log event message sent from QSEoW to Butler SOS.
It has the following components:

Part of message Description
command Description of what caused the event, as found in the Sense logs. Example: Login:TryLogin
context In what context (if one exists) the event occured. If no context is available Not available will be used.
exception_message If a serious problem/exception occurs the associated message is available here.
host Host name as reported in Qlik Sense’s log files.
level Sense log level. Possible values are WARN, ERROR, FATAL.
log_row Row number in Sense log file where the event can be found. Useful if you after all have to dig into the log files.
message Description of what the event is about. Example: Login failed for user 'LAB\\goran' wrong credentials?
origin Party of the proxy service the event originated from. Rarely used by Sense.
result_code Result code as reported by the Sense soure system that caused the event. Its meaning will differ depending on where the event originated. Example: 500
source Source system within Sense that caused the event. Examples: qseow-scheduler, qseow-proxy, qseow-repository
subsystem Subsystem where the event originated. More granular than source. Example: System.Scheduler.Scheduler.Master.Task.TaskSession
tags User defined tags. Set in the main YAML config file. Example: {"env":"DEV","foo":"bar"}
ts_iso Timestamp (ISO format) when the event occured, according to QSEoW. Example: 20211126T214006.122+0100
ts_local Event timestamp (time format of Sense server). Example: 2021-11-26 21:40:06,122
user_directory Sense user directory of the user causing the event. Example: MYCOMPANY
user_full The combination of user_directory and user_id. Example: MYCOMPANY\joe
user_id Sense user ID for the user causing the event. Example: joe
windows_user Windows account used to run the proxy QSEoW Windows service. Example: LAB\\qlikservice
Source: Scheduler service

Events such as failed reload tasks will be sent from the scheduler service.

Scheduler log events have these tags:

Tag key Description
host Host name as reported in Qlik Sense’s log files.
level Sense log level. Possible values are WARN, ERROR, FATAL.
log_row Row number in Sense log file where the event can be found. Useful if you after all have to dig into the log files.
source Source system within Sense that caused the event. Examples: qseow-scheduler, qseow-proxy, qseow-repository
subsystem Subsystem where the event originated. More granular than source. Example: System.Scheduler.Scheduler.Master.Task.TaskSession
user_directory Sense user directory of the user causing the event. Example: MYCOMPANY
user_id Sense user ID for the user causing the event. Example: joe
user_full The combination of user_directory and user_id. Example: MYCOMPANY\joe
task_id Tasik ID (if a task is involved in the event, for example task failing). Example: 58dd8322-e39c-4b71-b74e-13c47a2f6dd4
task_name Task name (if a task is involved in the event). Example: Reload task of Meetup.com

Fields in scheduler log events:

Field key Description
app_id Application ID (if an app is involved in the event). Example: deba4bcf-47e4-472e-97b2-4fe8d6498e11
app_name Application name (if an app is involved in the event). Example: Meetup.com
exception_message If a serious problem/exception occurs the associated message is available here.
execution_id ID identifying a particular task execution. Example: 67a56c3b-2e20-4df8-ad1b-e48de28e1bfa
message Description of what the event is about. Example: Login failed for user 'LAB\\goran' wrong credentials?
raw_event The raw event message as received from QSEoW. Described here.

The raw_event is the actual log event message sent from QSEoW to Butler SOS.
It has the following components:

Part of message Description
app_id Application ID (if an app is involved in the event). Example: deba4bcf-47e4-472e-97b2-4fe8d6498e11
app_name Application name (if an app is involved in the event). Example: Meetup.com
exception_message If a serious problem/exception occurs the associated message is available here.
execution_id ID identifying a particular task execution. Example: 67a56c3b-2e20-4df8-ad1b-e48de28e1bfa
host Host name as reported in Qlik Sense’s log files.
level Sense log level. Possible values are WARN, ERROR, FATAL.
log_row Row number in Sense log file where the event can be found. Useful if you after all have to dig into the log files.
message Description of what the event is about. Example: Login failed for user 'LAB\\goran' wrong credentials?
source Source system within Sense that caused the event. Example: qseow-scheduler
subsystem Subsystem where the event originated. More granular than source. Example: System.Scheduler.Scheduler.Slave.Tasks.ReloadTask
tags User defined tags. Set in the main YAML config file. Example: {"env":"DEV","foo":"bar"}
task_id Tasik ID (if a task is involved in the event, for example task failing). Example: 58dd8322-e39c-4b71-b74e-13c47a2f6dd4
task_name Task name (if a task is involved in the event). Example: Reload task of Meetup.com
ts_iso Timestamp (ISO format) when the event occured, according to QSEoW. Example: 20211126T214006.122+0100
ts_local Event timestamp (time format of Sense server). Example: 2021-11-26 21:40:06,122
user_directory Sense user directory of the user causing the event. Example: MYCOMPANY
user_full The combination of user_directory and user_id. Example: MYCOMPANY\joe
user_id Sense user ID for the user causing the event. Example: joe
windows_user Windows account used to run the proxy QSEoW Windows service. Example: LAB\\qlikservice
Source: Repository service

The repository service is the hub around which the rest of Qlik Sense revolves.
As such it emit events in many different situations. One example can be when a Sense node is offline (thais example is used in the field description below).

Repository log events have these tags:

Tag key Description
host Host name as reported in Qlik Sense’s log files.
level Sense log level. Possible values are WARN, ERROR, FATAL.
log_row Row number in Sense log file where the event can be found. Useful if you after all have to dig into the log files.
source Source system within Sense that caused the event. Examples: qseow-scheduler, qseow-proxy, qseow-repository
subsystem Subsystem where the event originated. More granular than source. Example: System.Scheduler.Scheduler.Master.Task.TaskSession
result_code Result code as reported by the Sense soure system that caused the event. Its meaning will differ depending on where the event originated.
user_directory Sense user directory of the user causing the event. Example: MYCOMPANY
user_id Sense user ID for the user causing the event. Example: joe
user_full The combination of user_directory and user_id. Example: MYCOMPANY\joe

Fields in scheduler log events:

Field key Description
command Description of what caused the event, as found in the Sense logs. Example: Login:TryLogin
context In what context (if one exists) the event occured. If no context is available Not available will be used.
exception_message If a serious problem/exception occurs the associated message is available here.
message Description of what the event is about. Example: Login failed for user 'LAB\\goran' wrong credentials?
origin Example: qseow-repository.
raw_event The raw event message as received from QSEoW. Described here.
result_code Example: 500

The raw_event is the actual log event message sent from QSEoW to Butler SOS.
It has the following components:

Part of message Description
command Description of what caused the event, as found in the Sense logs. Example: Check service status
context In what context (if one exists) the event occured. If no context is available Not available will be used. Example: /qps/servicestatusworker
exception_message If a serious problem/exception occurs the associated message is available here.
host Host name of event source, as reported in Qlik Sense’s log files. Example: pro2-win1
level Sense log level. Possible values are WARN, ERROR, FATAL.
log_row Row number in Sense log file where the event can be found. Useful if you after all have to dig into the log files. Example: 7296
message Description of what the event is about. Example: Method: 'SendRimQrsStatusRequest'. Failed to retrieve service status from 'http://pro2-win3.lab.ptarmiganlabs.net:4444/status/'. Server host 'pro2-win3.lab.ptarmiganlabs.net'. Error message: 'Unable to connect to the remote server'
origin Party of the proxy service the event originated from. Rarely used by Sense.
result_code Result code as reported by the Sense soure system that caused the event. Its meaning will differ depending on where the event originated. Example: 500
source Source system within Sense that caused the event. Example: qseow-repository
subsystem Subsystem where the event originated. More granular than source. Example: Service.Repository.Repository.Core.Status.ServiceStatusWorker
tags User defined tags. Set in the main YAML config file. Example: {"env":"DEV","foo":"bar"}
ts_iso Timestamp (ISO format) when the event occured, according to QSEoW. Example: 20211128T201538.508+0100
ts_local Event timestamp (time format of Sense server). Example: 2021-11-28 20:15:38,508
user_directory Sense user directory of the user causing the event. Example: MYCOMPANY
user_full The combination of user_directory and user_id. Example: MYCOMPANY\joe
user_id Sense user ID for the user causing the event. Example: joe
windows_user Windows account used to run the proxy QSEoW Windows service. Example: LAB\\qlikservice

Messages from the log database

All log data written to InfluxDB share a common set of tag keys:

Tag key Description
host Host name, taken from config file’s Butler-SOS.serversToMonitor.servers[].host property. Usually a fully qualified host name, or in some cases an IP address.
server_name Human readible/friednly server name, taken from config file’s Butler-SOS.serversToMonitor.servers[].serverName property.
server_description Description of the server, taken from config file’s Butler-SOS.serversToMonitor.servers[].serverDescription property.
log_level The logging level of the log event (ERROR, WARNING, INFO etc).
source_process Which Sense service the log event originated in.
Measurement: log_event_logdb

Source: More or less log db. A query is done to the log db in Postgres, the results are stored in InfluxDB. There is thus no Qlik API call per se.

Field key Type Description
message string Log entry as retrieved from the Sense log database (Postgres).

Butler SOS metrics

Measurement: butlersos_memory_usage

These metrics tell you how much memory Butler SOS itself uses.
More info on these metrics and what they mean is available here.

Field key Type Description
heap_total float Total size of the allocated heap.
heap_used float Actual memory used during the execution of Butler SOS.
process_memory float Total memory allocated for the execution of Butler SOS.

3.2 - Available Metrics: New Relic

Once data has been sent to New Relic, its web based user interface makes it very intuitive to both create charts and combine these into dashboards.

New Relic

New Relic offers a complete SaaS observablity stack, ranging from high-volume ingestion of events/metrics/logs/traces to advanced dashboards that can be created ad-hoc using a web UI or from files and templates, for more of an infrastructure-as-code approach.

Storing metrics in New Relic is not mandatory, but some kind of metrics storage - either in New Relic, InfluxDB or Prometheus - is needed to take full benefit of Butler SOS’ features.

In order to view data in New Relic you first have to send data to them.

Butler SOS does this for you.

Furthermore, you can to a large degree control which Qlik Sense metrics, logs and events are sent to New Relic.

Data volumes and pricing

At the time of this writing New Relic offers a generous free plan.
It will be a great starting point for everyone, if there’s a need for more dashboard users etc the account can be upgraded as needed.

In most cases Butler SOS will not generate a lot of data and you can stay within New Relic’s free tier.
The amount of data generated by Sense health metrics and Butler SOS uptime metrics is very small indeed, but if your Qlik Sense environment for some reason generate a lot of log events that can cause the data volumes to increase rapidly.

For example, if a user connects to Sense and gets a https certificate warning in the browser, this will also cause a number of warnings and errors in the proxy logs. Multiple this by X users and there can suddenly be thousands of errors and warnings per hour in the Sense logs.
If these are also sent to New Relic the data volumes increase quickly.

Overview of New Relic

New Relic is similar to InfluxDB in that Butler SOS pushes data to both systems.

The basic concepts are

  • Metrics represent a measurement of some kind. Number or sessions in the Sense proxy, amount of free RAM on a Sense server etc.
  • Events are something that happened. Warnings and errors in the Sense log files can be forwarded to New Relic as events.
    Various user activities (user session start/stop etc) in Sense can also be sent to New Relic as events.
  • Attributes are conceptually tags that are attached to metrics or events. These act as dimensions for the data. Metrics in visualisations can be grouped by attributes, much in the same way Qlik Sense measurements are grouped by dimensions in Sense charts and tables.
    • Static attributes are defined in Butler SOS’ config file.
    • Dynamic attributes are determined at runtime.

In addition to the above these data formats exist but are not currently used by Butler SOS. This may change in the future.

  • Logs are essentially regular lines in a log file, consisting of several fields.
  • Distributed tracing collects data as requests travel from one service to another, recording each segment of the journey as a span. These spans contain important details about each segment of the request and are eventually combined into one trace. The completed trace gives you a picture of the entire request.

3.3 - Available Metrics: Prometheus

In order to create graphs in for example Grafana, you must understand what metrics are available and how they are structured.

Prometheus

Metrics retrieved from the Sense servers can be stored in Prometheus. You don’t have to be a Prometheus expert to use Butler SOS, but understanding some basic concepts are helpful.

Storing metrics in Prometheus is not mandatory, but some kind of metrics storage - either in Prometheus, InfluxDB or New Relic - is needed to take full benefit of Butler SOS’ features.

Prometheus gathers metrics by “scraping” data from web pages (“endpoints”) on which metrics are displayed in a well specified format.
Most metrics from the Sense servers are exposed on a Prometheus compatible endpoint, but not all.
InfluxDB is more flexible for some types of data, while Prometheus provides more easily used features for data aggregation when data should be displaued in Grafana.

Prometheus endpoint

Prometheus is enabled/disabled in the Butler-SOS.prometheus section in the config file. Prometheus metrics are available on the /metrics URL on the IP and port specified in the config file.

For example, if the host is 0.0.0.0 and the port is 9842, Butler SOS will listen on port 9842 on all available network interfaces. If the Butler SOS’ server’s IP address is 192.168.1.168, a call from a web browser can look like this:

Prometheus metrics in web browser

This is the web page Prometheus will scrape and ingest into it’s time-series database.

Overview of Prometheus

In contrast to InfluxDB, to which Butler SOS pushes data, Prometheus works the other way around.
The Prometheus server is responsible for gathering data exposed by the systems that should be monitored (for example Butler SOS).

The basic concepts are

  • Metrics represent the measurements of interest. “fields” in InfluxDB.
  • Labels are used to categorize metrics (similar to tags in InfluxDB).

Labels

The labels available for all Prometheus metrics are:

Label name Source Description
host Butler-SOS.serversToMonitor.servers[].host Host IP or FQDN of the server from which the metric comes.
server_name Butler-SOS.serversToMonitor.servers[].serverName Human friendly server name.
server_description Butler-SOS.serversToMonitor.servers[].serverDescription Human friendly server description.
Butler-SOS.serversToMonitor.servers[].serverTags.* All tags defined in the config file will be added as Prometheus labels.

Metrics

Available metrics are similar to those in InfluxDB, with a few exceptions.

Prometheus is awesome when it comes to storing all kinds of measurements, but it doesn’t offer a good way to store strings.
For that reason Butler SOS metrics involving strings (for example list of apps loaded in memory) are not available on the Prometheus endpoint.
Most of the metrics come from Qlik Sense’ health check API.

Qlik Sense metrics

These are the Prometheus metrics exposed by Butler SOS:

Metric Type Description
butlersos_apps_calls Gauge Total number of requests made to the Qlik Sense engine.
butlersos_apps_selections Gauge Total number of selections made to the Qlik Sense engine.
butlersos_apps_activedocs_total Gauge Number of active apps. An app is active when a user is currently performing some action on it.
butlersos_apps_inmemorydocs_total Gauge Number of apps apps currently loaded into memory, even if they do not have any open sessions or connections to it. Apps disappear from this metric when the engine has purged them from memory.
butlersos_apps_loadeddocs_total Gauge Number of apps apps currently loaded into memory, that also have open sessions or connections.
butlersos_cache_added Gauge Number of cache objects added.
butlersos_cache_hits Gauge Number of cache hits.
butlersos_cache_lookups Gauge Number of cache lookups.
butlersos_cache_replaced Gauge Number of cache replaced cache objects.
butlersos_cache_saturated Gauge When the value is 1, the engine is running with high resource usage; otherwise the value is 0.
butlersos_cpu_total Gauge Percentage of the CPU used by the engine, averaged over a time period of 30 seconds.
butlersos_mem_committed Gauge The total amount of committed memory for the engine process in MB.
butlersos_mem_allocated Gauge The total amount of allocated memory (committed + reserved) from the operating system in MB.
butlersos_mem_free Gauge The total amount of free memory (minimum of free virtual and physical memory) in MB.
butlersos_session_active Gauge Number of active engine sessions. A session is active when a user is currently performing some action on an app, for example, making selections or creating content.
butlersos_session_total Gauge Total number of engine sessions.
butlersos_users_active Gauge Number of distinct active users. An active user is one who is currently performing an action on an app.
butlersos_users_total Gauge Total number of distinct users within the current engine sessions.
butlersos_engine_metadata Gauge Metadata about the Qlik Sense engine.
butlersos_user_session_total Gauge Number of sessions (as reported by the proxy service).

Node.js metrics

A set of Node.js specific metrics are also available on Butler SOS’ Prometheus endpoint.
These are described in the “Default metrics” section on this page.