Skip to main content
You can configure the PI replace utility to check the data point quality in CDF against the data points in the PI Data Archive. If you include the data-quality section, the differences between PI and CDF will be logged to the configured logger, sent to a Prometheus pushgateway using metrics, and written to a CSV file on exit using the report-file-name configuration parameter.

Logger output

PI replace logs the differences between the PI Data Archive and CDF with warning levels:
where:
  • TimeSeries1 (Numeric) is the data point number difference: -2/9 indicates 9 data points in the PI Data Archive, but 2 are missing from CDF.
  • TimeSeries4 (Numeric) is the data points’ value difference. 3/7 indicates that both CDF and PI have 7 data points, but 3 data points have different values in CDF compared to the data points in the PI Data Archive.
  • TimeSeries5 has no data points in CDF. For instance: Should have 6 indicate that the time series TimeSeries5 exists in CDF but has no data points. The same time series has 6 data points in the PI Data Archive.

CSV report

The PI replace utility writes a report with the differences between the PI Data Archive and CDF to a CSV file on exit:
CSV report showing time series differences between PI Data Archive and CDF including range, data points, count difference, value difference, max delta, and average delta
where:
  • TimeSeries: Name is the name of the time series. This is the PI Point name.
  • RangeStart indicates that data points with timestamps higher than or equal to this date and time were replaced.
  • RangeEnd indicates that data points with timestamps smaller than or equal to this date and time were replaced.
  • TotalDataPoints is the total number of data points in the PI Data Archive.
  • CountDifference is the number of data points in CDF subtracted from the number of points in the PI Data Archive.
  • ValueDifference is the number of data points in CDF that have different values than the data points in the PI Data Archive.
  • MaxDelta is the maximum difference of the numeric data point values. The individual data point delta percentage is calculated as the fraction: (Value in PI - Value in CDF) / Value in PI
  • AvgDelta is the average data point value difference.

Metrics

PI replace can send metrics to a Prometheus pushgateway. The metrics can be displayed in a Grafana dashboard and monitored by CDF.
Prometheus metrics dashboard showing heartbeat, estimated time left, number of time series, data points, time range left to cover, average duration, and data quality metrics

Replace progress

Replace progress dashboard showing overall progress towards goal timestamp, number of time series replaced per iteration, and duration per 1000 time series

Performance

Performance metrics dashboard displaying CPU usage, memory consumption, CDF request counts and latency, and uploaded data points with upload rate

Data quality

Data quality metrics showing total number of data points with different values, data point count differences, and numeric data point delta percentages

PI server

PI server metrics showing number of PI connections, query rate, query latency, and total number of good and bad AF values obtained from PI
Last modified on December 9, 2025