General settings
Available at Configuration > General settings, are the following fieldsets:
API
The information configured here will be incorporated in the Token when configuring collectors. If any of these are changed, existing collectors will need to have their token updated. These settings are only used by the collectors, the historian itself will use the values configured in the configuration file.
GRPC port
Description: The gRPC port is the TCP port used by the historian server to communicate with factry collectors. This should reflect the value entered for GRPC_PORT variable in the configuration file /etc/systemd/system/environments/factry-historian-server. Default: 8001
REST port
Description: The REST port is the TCP port on which the historian server REST API and management interface is exposed. This should reflect the value entered for PORT variable in the configuration file /etc/systemd/system/environments/factry-historian-server, unless you are using a reverse proxy in front of Factry Historian, in which case this should reflect the port that is exposed by your reverse proxy. Default: 8000
URL
Description: This value is used by the factry collectors to derive the ip address to communicate with the historian server API. A valid and reachable URL is required here for collector communication to work. Default: http://localhost
API request timeout
Available from version 8.2 and later.
Description: A server-wide upper bound on how long an HTTP request may take. It is raised implicitly when Maximum user query duration under User admission control exceeds it. Default: 2m Minimum: 1s
Authentication
Session inactive duration
Description: The time after which an inactive login session expires. This setting accepts duration string literals, eg 1w2d7h15m (1 week 2 days 7 hours and 15 minutes). Default: 7d
Diagnostics
Send usage statistics and error reports
Description: If enabled, the historian server sends statistics to our Portal. If this setting is disabled, automatic monitoring and alerting will not work. From version 8.3, this setting also controls error reporting: with it disabled, no error reports, bug reports or session recordings are sent, whatever the two settings below say. Before version 8.3, this setting was called Allow historian to send statistics, in the Statistics fieldset. Default: true
Allow users to send bug reports from the application
Available from version 8.3 and later.
Description: If enabled, users can send a bug report to Factry from the Historian interface. Bug reporting only works when both this setting and the Factry portal allow it, so Factry can also turn it off for your instance. Default: true
Session recording for bug reports
Available from version 8.3 and later.
Description: Whether the browser records the user's session for bug reports. Choose one of:
- Never: no recording.
- On request, only with a bug report: the last minute stays in the browser and is sent only when a user attaches it to a bug report.
- Always, without asking the user: sessions are recorded and sent without asking the user.
Factry can lower this setting from the portal, but cannot raise it. The instance uses whichever of the two records less. Recording also stays off until Factry enables it in the portal. Default: On request, only with a bug report
Collector Updates
Allow Historian to check for collector updates
Description: If enabled the historian server will check for updates to the collectors. Default: true
Update check interval
Description: The interval at which the historian server will check for updates to the collectors. This setting accepts duration string literals, e.g., 1w2d7h15m (1 week 2 days 7 hours and 15 minutes). Default: 1h
General Logs
Minimum Free Space (MB)
Description: The minimum free disk space in MB required to log to disk. If the free disk space falls below this threshold, logs will be dropped. Default: 2048
Limit logs
Description: If enabled, logs sent to the internal database will be rate limited. Default: true
Log Rate
Description: The maximum allowed number of logs per second. If this threshold is exceeded, logs will be dropped. Default: 50
Log Burst
Description: The maximum number of log lines that can be sent in a single burst. This is used to allow a temporary spike of logs. Default: 500
Limit By Level
Description: If enabled, the log rate limit will be applied to each log level separately. If disabled, the limit will be applied to all logs regardless of their level. Default: true
Audit Logs
Duration to keep audit logs
Description: The duration to keep the audit logs. This setting accepts duration string literals, e.g., 1w2d7h15m (1 week 2 days 7 hours and 15 minutes). Set to 0d to keep indefinitely. Default: 0d
Lookup tables
Available from version 8.3 and later.
Limits on the memory that lookup tables held in memory may use together. Both values are in bytes. The warning limit must be below the hard limit when both are set. See Lookup tables.
Lookup table memory warning
Description: Log a warning when the lookup tables held in memory pass this many bytes. Nothing is refused. Set to 0 to turn the warning off. Default: 402653184 (384 MiB)
Lookup table memory limit
Description: Refuse to load or write a lookup table when the lookup tables held in memory would pass this many bytes. Set to 0 to turn the limit off. Default: 536870912 (512 MiB)
Time series
The Time series fieldset holds the admission control and cache settings.
User admission control
Available from version 8.2 and later.
Admission control limits how many time series database queries run at once, how many may wait, and how long any one query may take. Queries are split into two categories, each with its own limits:
- User queries are the queries that arrive over the API, from Grafana, the Excel add-in, or the query API directly.
- System queries are the queries the Historian runs itself, for calculations and event processing.
When a category is saturated, further queries of that category are queued. When its queue is full as well, the request is rejected with a rate-limit error code. The two categories do not share slots, so heavy dashboard use cannot starve calculations, and vice versa.
User admission control enabled: If enabled, user queries are rate-limited according to the settings below. Default: enabled
Maximum concurrent user queries: How many user queries may be performed in parallel. Default: 2 * number of CPU cores, or 16, whichever is larger
Maximum queued user queries: How many user queries may be queued on top of all the parallel queries before rate-limit error codes are returned. Default: 3 * the default maximum concurrent queries, or 50, whichever is larger. The default is derived from the CPU count, not from a maximum concurrent value you set yourself.
Maximum user query duration: How long any one user query may take before it is aborted. Set to 0s to remove the limit. Default: 30s
System admission control
Available from version 8.2 and later.
System admission control enabled: If enabled, system queries are rate-limited according to the settings below. Default: enabled
Maximum concurrent system queries: How many system queries may be performed in parallel. Default: 3 * number of CPU cores, or 24, whichever is larger
Maximum queued system queries: How many system queries may be queued on top of all the parallel queries before rate-limit error codes are returned. Default: no limit
Maximum system query duration: How long any one system query may take before it is aborted. Set to 0s to remove the limit. Default: 10m
Cache
The cache settings are described in more detail on the Memory cache page. Changes take effect without a restart.
Cache points: If enabled, the historian keeps recent points per measurement in memory, to speed up the queries of calculations and event processing. This uses more memory. Before version 8.3, this setting was called Enabled. Default: true
Cache last values: Available from version 8.3 and later. If enabled, the historian keeps the last value of every measurement in memory, so latest-value queries skip the time series database. The memory cost is one point per series. This setting works independently of Cache points. Default: false
Serve user queries from the cache: Available from version 8.3 and later. If enabled, time series queries from users and Grafana are answered from the cache when it fully covers the requested range, instead of from the time series database. Requires Cache points: the checkbox is disabled while Cache points is off. Default: false
Global cache size: How many points to keep at most in the cache, over all measurements. Default: 4194304
Measurement cache size: How many points to keep at most in the cache per measurement. Default: 4096
User query cache measurement limit: Available from version 8.3 and later. How many measurements user queries may keep in the cache. When the limit is reached, a measurement that users have not queried recently is dropped from the cache. Measurements used by calculations and events do not count towards it. Leave empty for the default. Default: 1024