Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

layereight/cmi-openmetrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

17 Commits

Repository files navigation

cmi-openmetrics

Create an OpenMetrics text file from a CSV file that was exportet from TA's Control and Monitoring Interface (C.M.I). The OpenMetrics data can then be backfilled into Prometheus.

Backfilling procedure

On a Windows machine

  • use TA's Winsol to extract historic data from C.M.I. data logger
  • export into csv file using TA's Winsol

On your local workstation

  • run C.M.I. CSV to OpenMetrics conversion, e.g. ./cmi-openmetrics.py <winsol_export.csv> <cmi_id> <job_name> > backfill.om
  • Linux optional, depending on the number of metrics and history, increase number of open files limit for the current session ulimit -n 4096 # increase limit for number of open files
  • install Prometheus (including promtool)
  • run Prometheus backfill command, e.g. promtool tsdb create-blocks-from openmetrics backfill.om ./data --max-block-duration 96h
  • copy backfilled data to target machine running Prometheus, e.g. scp -rp ./data <target_machine>:~/

On the target machine running Prometheus

  • make a backup of current prometheus data, take a snapshot
  • apply corresponding permissions, e.g. running Prometheus via docker with a mounted volume sudo chown -R nobody.nogroup ~/data/
  • make sure Prometheus runs with the --storage.tsdb.allow-overlapping-blocks command line flag
  • move backfilled data into Prometheus data folder, e.g. running Prometheus via docker with a mounted volume sudo mv ~/data/* ~/prometheus/prometheus/

Other Links

About

Convert C.M.I. CSV export into OpenMetrics text file format

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /