Skip to main content

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

collectd-csv-0.5.1.tar.gz (7.4 kB view details)

Uploaded Source

File details

Details for the file collectd-csv-0.5.1.tar.gz.

File metadata

File hashes

Hashes for collectd-csv-0.5.1.tar.gz
Algorithm Hash digest
SHA256 d713664e1c830aa6b23a96c51ae277a3316f1c2f420aa8369396de014f8454e3
MD5 428c7591e1441e0bd14345dfd7abf43b
BLAKE2b-256 dceff8fadc75772ccd4f8f0141875d3766d4511f6b03c98d3fb5e5b71072d4b5

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page