collectd-csv-獲取與給定參數匹配的collected CSV數據。-Ville Petteri Tolonen
發佈:2020-12-23 14:18:09.529858
做者:Ville Petteri Tolonen
做者郵箱:petteri.tolonen@gmail.com
首頁:http://pypi.python.org/pypi/collectd-csv
文檔:None
下載連接 UNKNOWN
============python
CollectD-CSV
CollectD-CSV is a small project providing utilities for analyzing CollectD CSV data locally. express
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.ide
fetchCSV.py script can be used to fetch the data matching the given parameters and save to files in a specified directory.fetch
monitorCSV.py script calculates the minimum, average and maximum values of specified resources on one host from the last XX minutes.this
Typical usage of the module looks like this::spa
#!/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..net
Copy from pypi.org
查詢時間:4.695ms
渲染時間:4.824ms
本文同步分享在 博客「zhenruyan」(other)。
若有侵權,請聯繫 support@oschina.cn 刪除。
本文參與「OSC源創計劃」,歡迎正在閱讀的你也加入,一塊兒分享。code