hawk-utils-scripts/monitoring/db
2023-10-26 16:19:16 +02:00
..
elklikeoutput First commit for getting data from PG-SQL 2023-08-09 17:39:31 +02:00
scripts Add prototype to query job power from database 2023-10-26 16:19:16 +02:00
README.md Add prototype to query job power from database 2023-10-26 16:19:16 +02:00

hawk-utils-scripts/monitoring/db

Use this directory for scripts, etc, that operate on or extract data from the the database.

scripts/get_detailed_power.py

Python script which querries the database for a list of jobids and produces a file for each jobid.

Those files contain time-resolved power consumption data and are meant to be consumed by the utility in monitoring/logs/scripts/plot_energy_logs.sh.

Requirements:

  • Python module sqlalchemy python -m pip install sqlalchemy

Usage:

ssh monitoring
./get_detailed_power.py 234556 767869.hawk-pbs5
Saved file detailed_power.234556.hawk-pbs5.100000-1000004.csv
Saved file detailed_power.767869.hawk-pbs5.2432345-423423.csv