Open gshif opened 5 years ago
/metrics/usage
endpoint.
/metrics
endpoint for various services is covered in the different issue https://github.com/influxdata/Litmus/issues/111/metrics/usage
for a storage component.metrics/usage
endpoint. First it will be tested on a cluster with a single storage/node pods. The same set of tests would be eventually run on a cluster with more than one storage/kafka node, so tests should be written in a such a way so they should be runnable on singe/multi node storage/kafka deployments.
1 minute
:
org
with two buckets, bucket1
and bucket2
.h2o_feet,location=coyote_creek water_level=8.120,level\ description="between 6 and 9 feet"
1439856000
h2o_feet,location=coyote_creek water_level=8.005,level\ description="between 6 and 9 feet"
1439856010
h2o_feet,location=coyote_creek water_level=7.887,level\ description="between 6 and 9 feet"
1439856020
h2o_feet,location=coyote_creek water_level=7.762,level\ description="between 6 and 9 feet"
1439857030
h2o_feet,location=coyote_creek water_level=7.635,level\ description="between 6 and 9 feet"
1439857040
h2o_feet,location=coyote_creek water_level=7.500,level\ description="between 6 and 9 feet"
1439857050
tsm
file to be created. (Currently we do not have any tools that would let us verify data was written to a disk).influx_inspect
tool the size of the data stored on a disk would be calculated. The assumption is that 1.7 gives us the correct results.
After first 6 points were written to an influxdb 1.7 and then written to a disk, run:
influx_inspect dumptsm -all 000000001-000000001.tsm
and that is what returned by the above command (even though I am seeing that times are wrong):
Summary:
File: 000000001-000000001.tsm
Time Range: 1970-01-01T00:00:01.439856Z - 1970-01-01T00:00:01.43985705Z
Duration: 1.05µs Series: 2 File Size: 306
Index:
Pos Min Time Max Time Ofs Size Key Field
1 1970-01-01T00:00:01.439856Z 1970-01-01T00:00:01.43985705Z 5 53 h2o_feet,location=coyote_creek level description
2 1970-01-01T00:00:01.439856Z 1970-01-01T00:00:01.43985705Z 58 78 h2o_feet,location=coyote_creek water_level
Blocks:
Blk Chk Ofs Len Type Min Time Points Enc [T/V] Len [T/V]
0 3385718256 5 49 string 1970-01-01T00:00:01.439856Z 6 s8b/snpy 17/30
1 2769078932 58 74 float64 1970-01-01T00:00:01.439856Z 6 s8b/gor 17/55
Statistics
Blocks:
Total: 2 Size: 131 Min: 49 Max: 74 Avg: 65
Index:
Total: 2 Size: 162
Points:
Total: 12
Encoding:
Timestamp: none: 0 (0%) s8b: 2 (100%)
Float: none: 0 (0%) gor: 1 (50%)
String: none: 0 (0%) snpy: 1 (50%)
Compression:
Per block: 10.92 bytes/point
Total: 25.50 bytes/point