ContentWatcher utility
Common settings
ContentServiceUrl
Endpoint to call when changes are detected. The endpoint pattern is as follows: http://SomeContentServiceUrl/process-content
. Required.
DefaultFileFilter
A pattern that filters files whose changes to monitor. By default, _MetaInfo.json
. Used if the FileFilter
setting is not specified for Creatio.
ConfigurationRefreshInterval
The interval, in milliseconds, between readings of Creatio instance settings by the bundling service. By default, ",300000" that is equivalent to 5 minutes. When changes are detected in instance settings, those changes are applied without interrupting ContentWatcher
.
InfluxDbConnectionString
InfluxDb connection string. ContentWatcher
and ContentService
enable recording the metrics of successful and unsuccessful operations in InfluxDb. Learn more: official vendor documentation (InfluxDb).
Configure the connection to the InfluxDb
- Open the
appsettings.json
file. - Go to the
InfluxDbConnectionString
attribute. - Use parameters to configure connection.
- Save the changes.
"InfluxDbConnectionString": "url=http://1.2.3.4:5678; db=content; user=User1; password=QwErTy; version=v_1_3"
Parameters
url* | InfluxDb server URL. |
db | The name of the database to write the metrics. By default, "content." |
user | The user name to connect to the InfluxDb server. By default, an empty string. |
password | The password to connect to the InfluxDb server. By default, an empty string. |
version | Version of the InfluxDb server. By default, "Latest." Available values: "Latest," "v_1_3," "v_1_0_0," "v_0_9_6," "v_0_9_5," "v_0_9_2," "v_0_8_x." |
InfluxDb metrics
The InfluxDb metrics are written by the ContentService
and ContentWatcher
. Learn more about metrics written by ContentService
: ContentService settings.
watcher_notifying_duration | The duration of the |
watcher_error | Errors received while loading settings, monitoring, notifying |
InfluxDbConnectionTimeout
Timeout in milliseconds for InfluxDb connection. By default, "5000."
FileEventWatcher
Parameters of configuration file watcher.
Parameters
RetryFileWatchingDelay | Timeout in milliseconds for attempting to locate the configuration file if it is removed temporarily. By default, 180000 (3 minutes). |
MaxFileWatchingRetries | Number of attempts to locate the configuration file if it is removed temporarily. By default, 20. |
Settings for Creatio on-site
ContentWorkers
Setting block for each Creatio instance that ContentWatcher
serves. Required.
Parameters
Name* | An arbitrary name to identify the current instance in the logs. |
Directory* | The path to the directory where changes are monitored. I. e., the path to the |
FileFilter | A pattern that filters files whose changes to monitor. Not required if you specify the |
ContentWorkerArguments* | Key-value collection of parameters to pass to the |