Configure the PI replace utility
To configure the PI replace utility, you must create a configuration file. The file must be in YAML format.
In addition to the sections listed below, you must include these PI extractor configuration sections:
Minimal YAML configuration file
The YAML settings below contain valid PI replace utility configurations, but not all configuration options are used. The values wrapped in ${}
are replaced with environment variables with that name. For example, ${COGNITE_PROJECT}
will be replaced with the value of the environment variable called COGNITE_PROJECT
.
The configuration file also contains the global parameter version
, which holds the version of the configuration schema used in the configuration file. This document describes version 2 of the configuration schema.
version: 2
cognite:
project: ${COGNITE_PROJECT}
idp-authentication:
tenant: ${COGNITE_TENANT_ID}
client-id: ${COGNITE_CLIENT_ID}
secret: ${COGNITE_CLIENT_SECRET}
scopes:
- ${COGNITE_SCOPE}
time-series:
external-id-prefix: "pi:"
pi:
host: ${PI_HOST}
username: ${PI_USER}
password: ${PI_PASS}
metrics:
push-gateways:
- host: "http://localhost:9091"
job: "pi-replace-job"
state-store:
database: LiteDb
location: "PiReplaceStateStore.db"
logger:
console:
level: "information"
replace:
start-time: "2020-02-20 10:05:00"
end-time: "2020-03-20 10:05:00"
save-progress-interval: 10s
data-quality:
check-data-quality: true
report-file-name: "report"
ignore-positive-difference: true