smax-postgres

Record SMA-X history in PostgreSQL / TimescaleDB.


CfA logo

smax-postgres is a daemon application, which can collect data from an SMA-X realtime database and insert these into a PostgreSQL database to create a time-series historical record for all or selected SMA-X variables. The program is highly customizable and supports both regular updates for changing variables as well as regular snapshots of all selected SMA-X variables.

The smax-postgres applications was created, and is maintained, by Attila Kovács at the Center for Astrophysics | Harvard & Smithsonian, and it is available through the Smithsonian/redisx repository on GitHub.

This site contains various online resources that support the library:

Downloads

Documentation

Dependencies

  • Smithsonian/smax-clib – structured data exchange framework
  • Smithsonian/redisx – A C/C++ Redis client library
  • Smithsonian/xchange – structured data exchange framework
  • Smithsonian/smax-server – SMA-X server configuration kit
  • PostgreSQL development files (libpq.so and lipq-fe.h)
  • Popt (command-line options parsing) library development files (libpopt.so and popt.h)
  • (optional) systemd (runtime management) development files (libsystemd.so and sd-daemon.h)