| 1 |
Metadata-Version: 2.1 |
| 2 |
Name: whisper |
| 3 |
Version: 1.1.10 |
| 4 |
Summary: Fixed size round-robin style database |
| 5 |
Home-page: http://graphiteapp.org/ |
| 6 |
Author: Chris Davis |
| 7 |
Author-email: [email protected] |
| 8 |
License: Apache Software License 2.0 |
| 9 |
Classifier: Programming Language :: Python :: 2 |
| 10 |
Classifier: Programming Language :: Python :: 2.7 |
| 11 |
Classifier: Programming Language :: Python :: 3 |
| 12 |
Classifier: Programming Language :: Python :: 3.5 |
| 13 |
Classifier: Programming Language :: Python :: 3.6 |
| 14 |
Classifier: Programming Language :: Python :: 3.7 |
| 15 |
Classifier: Programming Language :: Python :: Implementation :: CPython |
| 16 |
Classifier: Programming Language :: Python :: Implementation :: PyPy |
| 17 |
Description-Content-Type: text/markdown |
| 18 |
License-File: LICENSE |
| 19 |
|
| 20 |
# Whisper |
| 21 |
|
| 22 |
[](https://www.codacy.com/app/graphite-project/whisper?utm_source=github.com&utm_medium=referral&utm_content=graphite-project/whisper&utm_campaign=badger) |
| 23 |
[](http://travis-ci.org/graphite-project/whisper) |
| 24 |
[](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fgraphite-project%2Fwhisper?ref=badge_shield) |
| 25 |
|
| 26 |
## Overview |
| 27 |
|
| 28 |
Whisper is one of three components within the Graphite project: |
| 29 |
|
| 30 |
1. [Graphite-Web](https://github.com/graphite-project/graphite-web), a Django-based web application that renders graphs and dashboards |
| 31 |
2. The [Carbon](https://github.com/graphite-project/carbon) metric processing daemons |
| 32 |
3. The Whisper time-series database library |
| 33 |
|
| 34 |
 |
| 35 |
|
| 36 |
Whisper is a fixed-size database, similar in design and purpose to RRD (round-robin-database). It provides fast, reliable storage of numeric data over time. Whisper allows for higher resolution (seconds per point) of recent data to degrade into lower resolutions for long-term retention of historical data. |
| 37 |
|
| 38 |
## Installation, Configuration and Usage |
| 39 |
|
| 40 |
Please refer to the instructions at [readthedocs](http://graphite.readthedocs.org/). |
| 41 |
|
| 42 |
## Whisper Scripts |
| 43 |
|
| 44 |
rrd2whisper.py |
| 45 |
-------------- |
| 46 |
Convert a rrd file into a whisper (.wsp) file. |
| 47 |
|
| 48 |
``` |
| 49 |
Usage: rrd2whisper.py rrd_path |
| 50 |
|
| 51 |
Options: |
| 52 |
-h, --help show this help message and exit |
| 53 |
--xFilesFactor=XFILESFACTOR |
| 54 |
The xFilesFactor to use in the output file. Defaults |
| 55 |
to the input RRD's xFilesFactor |
| 56 |
--aggregationMethod=AGGREGATIONMETHOD |
| 57 |
The consolidation function to fetch from on input and |
| 58 |
aggregationMethod to set on output. One of: average, |
| 59 |
last, max, min, avg_zero, absmax, absmin |
| 60 |
--destinationPath=DESTINATIONPATH |
| 61 |
Path to place created whisper file. Defaults to the |
| 62 |
RRD file's source path. |
| 63 |
|
| 64 |
``` |
| 65 |
|
| 66 |
whisper-create.py |
| 67 |
----------------- |
| 68 |
Create a new whisper database file. |
| 69 |
|
| 70 |
``` |
| 71 |
Usage: whisper-create.py path timePerPoint:timeToStore [timePerPoint:timeToStore]* |
| 72 |
whisper-create.py --estimate timePerPoint:timeToStore [timePerPoint:timeToStore]* |
| 73 |
|
| 74 |
timePerPoint and timeToStore specify lengths of time, for example: |
| 75 |
|
| 76 |
60:1440 60 seconds per datapoint, 1440 datapoints = 1 day of retention |
| 77 |
15m:8 15 minutes per datapoint, 8 datapoints = 2 hours of retention |
| 78 |
1h:7d 1 hour per datapoint, 7 days of retention |
| 79 |
12h:2y 12 hours per datapoint, 2 years of retention |
| 80 |
|
| 81 |
|
| 82 |
Options: |
| 83 |
-h, --help show this help message and exit |
| 84 |
--xFilesFactor=XFILESFACTOR |
| 85 |
--aggregationMethod=AGGREGATIONMETHOD |
| 86 |
Function to use when aggregating values (average, sum, |
| 87 |
last, max, min, avg_zero, absmax, absmin) |
| 88 |
--overwrite |
| 89 |
--estimate Don't create a whisper file, estimate storage requirements based on archive definitions |
| 90 |
``` |
| 91 |
|
| 92 |
whisper-dump.py |
| 93 |
--------------- |
| 94 |
Dump the whole whisper file content to stdout. |
| 95 |
|
| 96 |
``` |
| 97 |
Usage: whisper-dump.py path |
| 98 |
|
| 99 |
Options: |
| 100 |
-h, --help show this help message and exit |
| 101 |
--pretty Show human-readable timestamps instead of unix times |
| 102 |
-t TIME_FORMAT, --time-format=TIME_FORMAT |
| 103 |
Time format to use with --pretty; see time.strftime() |
| 104 |
-r, --raw Dump value only in the same format for whisper-update |
| 105 |
(UTC timestamps) |
| 106 |
``` |
| 107 |
|
| 108 |
whisper-fetch.py |
| 109 |
---------------- |
| 110 |
Fetch all the metrics stored in a whisper file to stdout. |
| 111 |
|
| 112 |
``` |
| 113 |
Usage: whisper-fetch.py [options] path |
| 114 |
|
| 115 |
Options: |
| 116 |
-h, --help show this help message and exit |
| 117 |
--from=_FROM Unix epoch time of the beginning of your requested interval |
| 118 |
(default: 24 hours ago) |
| 119 |
--until=UNTIL Unix epoch time of the end of your requested interval |
| 120 |
(default: now) |
| 121 |
--json Output results in JSON form |
| 122 |
--pretty Show human-readable timestamps instead of unix times |
| 123 |
-t TIME_FORMAT, --time-format=TIME_FORMAT |
| 124 |
Time format to use with --pretty; see time.strftime() |
| 125 |
--drop=DROP Specify 'nulls' to drop all null values. Specify 'zeroes' to |
| 126 |
drop all zero values. Specify 'empty' to drop both null and |
| 127 |
zero values. |
| 128 |
``` |
| 129 |
|
| 130 |
whisper-info.py |
| 131 |
--------------- |
| 132 |
Dump the metadata about a whisper file to stdout. |
| 133 |
|
| 134 |
``` |
| 135 |
Usage: whisper-info.py [options] path [field] |
| 136 |
|
| 137 |
Options: |
| 138 |
-h, --help show this help message and exit |
| 139 |
--json Output results in JSON form |
| 140 |
``` |
| 141 |
|
| 142 |
whisper-merge.py |
| 143 |
---------------- |
| 144 |
Join two existing whisper files together. |
| 145 |
|
| 146 |
``` |
| 147 |
Usage: whisper-merge.py [options] from_path to_path |
| 148 |
|
| 149 |
Options: |
| 150 |
-h, --help show this help message and exit |
| 151 |
``` |
| 152 |
|
| 153 |
whisper-fill.py |
| 154 |
---------------- |
| 155 |
Copies data from src in dst, if missing. |
| 156 |
Unlike whisper-merge, don't overwrite data that's |
| 157 |
already present in the target file, but instead, only add the missing |
| 158 |
data (e.g. where the gaps in the target file are). Because no values |
| 159 |
are overwritten, no data or precision gets lost. Also, unlike |
| 160 |
whisper-merge, try to take the highest-precision archive to provide |
| 161 |
the data, instead of the one with the largest retention. |
| 162 |
|
| 163 |
``` |
| 164 |
Usage: whisper-fill.py [options] src_path dst_path |
| 165 |
|
| 166 |
Options: |
| 167 |
-h, --help show this help message and exit |
| 168 |
``` |
| 169 |
|
| 170 |
whisper-resize.py |
| 171 |
----------------- |
| 172 |
Change the retention rates of an existing whisper file. |
| 173 |
|
| 174 |
``` |
| 175 |
Usage: whisper-resize.py path timePerPoint:timeToStore [timePerPoint:timeToStore]* |
| 176 |
|
| 177 |
timePerPoint and timeToStore specify lengths of time, for example: |
| 178 |
|
| 179 |
60:1440 60 seconds per datapoint, 1440 datapoints = 1 day of retention |
| 180 |
15m:8 15 minutes per datapoint, 8 datapoints = 2 hours of retention |
| 181 |
1h:7d 1 hour per datapoint, 7 days of retention |
| 182 |
12h:2y 12 hours per datapoint, 2 years of retention |
| 183 |
|
| 184 |
|
| 185 |
Options: |
| 186 |
-h, --help show this help message and exit |
| 187 |
--xFilesFactor=XFILESFACTOR |
| 188 |
Change the xFilesFactor |
| 189 |
--aggregationMethod=AGGREGATIONMETHOD |
| 190 |
Change the aggregation function (average, sum, last, |
| 191 |
max, min, avg_zero, absmax, absmin) |
| 192 |
--force Perform a destructive change |
| 193 |
--newfile=NEWFILE Create a new database file without removing the |
| 194 |
existing one |
| 195 |
--nobackup Delete the .bak file after successful execution |
| 196 |
--aggregate Try to aggregate the values to fit the new archive |
| 197 |
better. Note that this will make things slower and use |
| 198 |
more memory. |
| 199 |
``` |
| 200 |
|
| 201 |
whisper-set-aggregation-method.py |
| 202 |
--------------------------------- |
| 203 |
Change the aggregation method of an existing whisper file. |
| 204 |
|
| 205 |
``` |
| 206 |
Usage: whisper-set-aggregation-method.py path <average|sum|last|max|min|avg_zero|absmax|absmin> |
| 207 |
|
| 208 |
Options: |
| 209 |
-h, --help show this help message and exit |
| 210 |
``` |
| 211 |
|
| 212 |
whisper-update.py |
| 213 |
----------------- |
| 214 |
Update a whisper file with 1 or many values, must provide a time stamp with the value. |
| 215 |
|
| 216 |
``` |
| 217 |
Usage: whisper-update.py [options] path timestamp:value [timestamp:value]* |
| 218 |
|
| 219 |
Options: |
| 220 |
-h, --help show this help message and exit |
| 221 |
``` |
| 222 |
|
| 223 |
whisper-diff.py |
| 224 |
--------------- |
| 225 |
Check the differences between whisper files. Use sanity check before merging. |
| 226 |
|
| 227 |
``` |
| 228 |
Usage: whisper-diff.py [options] path_a path_b |
| 229 |
|
| 230 |
Options: |
| 231 |
-h, --help show this help message and exit |
| 232 |
--summary show summary of differences |
| 233 |
--ignore-empty skip comparison if either value is undefined |
| 234 |
--columns print output in simple columns |
| 235 |
--no-headers do not print column headers |
| 236 |
--until=UNTIL Unix epoch time of the end of your requested interval |
| 237 |
(default: now) |
| 238 |
--json Output results in JSON form |
| 239 |
``` |
| 240 |
|
| 241 |
## License |
| 242 |
|
| 243 |
Whisper is licensed under version 2.0 of the Apache License. See the [LICENSE](https://github.com/graphite-project/carbon/blob/master/LICENSE) file for details. |