Fetch collectd CSV data matching the given parameters.
Project description
CollectD-CSV is a small project providing utilities for analyzing CollectD CSV data locally.
CollectD_CSV module provides functions for fetching data with a specified time interval and regular expressions matching the end of the path excluding the datestamp. The fetched data can be saved into files or returned as an ordered dictionary.
fetchCSV.py script can be used to fetch the data matching the given parameters and save to files in a specified directory.
monitorCSV.py script calculates the minimum, average and maximum values of specified resources on one host from the last XX minutes.
Typical usage of the module looks like this:
#!/usr/bin/env python import CollectD_CSV from collections import OrderedDict regexps = ["myhost/load.*", "myotherhost/memory.*"] #fetch the data into an ordered dictionary resultdirct = CollectD_CSV.fetchData(123456789, 123498765, regexps, "/var/lib/collectd", destdir=None)
See more information about the usage in the comments of CollectD_CSV.py. For complete usage examples, see bin/fetchCSV.py and bin/monitorCSV.py. For help in using the scripts use the “-h” command line option.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file collectd-csv-0.6.tar.gz
.
File metadata
- Download URL: collectd-csv-0.6.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b96e2132a3946876e605bab966b0f83ae09c5818ad51c14b6a0ef88a2e238403 |
|
MD5 | d2be4248a467fe4350ea77c3453c7be9 |
|
BLAKE2b-256 | 58922d6f74acc8663d2b5a05c4285a2348e7ecd10bf25eaed938dcd3be8ed605 |