Jonathan Strong
102312efb6
minor fix in measure!
4 years ago
Jonathan Strong
b6fc9a97e6
significant cleanup
4 years ago
Jonathan Strong
1da2c1ab09
fix minor blemishes
4 years ago
Jonathan Strong
903b4c4005
small settings tweaks
5 years ago
Jonathan Strong
87302bd2fa
change sleep 100ms -> 1ms
5 years ago
Jonathan Strong
a7ffcba0e5
adds InfluxWriter::is_full
5 years ago
Jonathan Strong
86542209b1
min changes to allow string tags in feature gate
5 years ago
Jonathan Strong
c4959c6e06
tone it down a notch
5 years ago
Jonathan Strong
7a75c7b494
ignore measure bench for tests
5 years ago
Jonathan Strong
63c9314b5b
add one million writes bench
5 years ago
Jonathan Strong
4a28334f4a
log(InfluxWriter): add msg when recovers from request failure
5 years ago
Jonathan Strong
4830a27c3b
revamped InfluxWriter passed its tests with flying colors
this thing is a fucking rock now
5 years ago
Jonathan Strong
d1b895468c
beffudling fixes from cargo fix --edition
5 years ago
Jonathan Strong
11b214da7a
feat(InfluxWriter): huge refactor so InfluxWriter queues a backlog on failed db requests
will need extensive testing before prod use
5 years ago
Jonathan Strong
045302465b
InfluxWriter::placeholder() -> no thread for tests, etc
5 years ago
Jonathan Strong
13dd21f730
change nan replacement value from 0.0 to -999.0 so it's obvious
5 years ago
Jonathan Strong
ac6076e45a
add host, db accessors
5 years ago
Jonathan Strong
25f6d4c206
add logging/anal retentiveness to kill routine
5 years ago
Jonathan Strong
aa5cdf2b3b
adds pub fn secs(Duration) -> f64 at crate root and InfluxWriter::secs(&self, Duration) -> f64
5 years ago
Jonathan Strong
102f6ac7e8
changes default InfluxWriter buffer to 4096 (anal retentive)
5 years ago
Jonathan Strong
37d8e7ad59
AsI64 for i16, i8, u8
5 years ago
Jonathan Strong
0a10d55142
whitespace removal
5 years ago
Jonathan Strong
01eb000131
moves `Default` `InfluxWriter` log path to /tmp
5 years ago
Jonathan Strong
00d0e1a427
makes zmq optional dep
5 years ago
Jonathan Strong
f59c627187
check if floats are finite, replacing NaNs with 0.0 to avoid influx server errors
5 years ago
Jonathan Strong
e47c0952fb
check if there are no fields (only tags), in which case add an integer field "n" with value 1
5 years ago
Jonathan Strong
d1849fad78
changes InfluxWriter to buffer size of 4096, or if 2 seconds since last send
5 years ago
Jonathan Strong
a1922b387e
adds InfluxWriter::secs(&self, Duration) -> f64
5 years ago
Jonathan Strong
d39902c494
adds v, utc shortcut syntax to measure!
- `v`: adds a tag "version" based on the expression, e.g. `v(VERSION)`
-> `t("version", VERSION)`
- `utc`: like `tm`, but converts a `DateTime<Utc>` to `i64`
automatically
6 years ago
Jonathan Strong
3ecc2b74f9
impl AsI64 for u16
6 years ago
Jonathan Strong
39cfe57b6d
replace `as i64` and `as f64` conversions with `AsI64` and `AsF64` traits to limit types permitted
6 years ago
Jonathan Strong
1f0ca41176
puts inline annotations behind a feature flag
this was to test cost in terms of compilation speed. doesn't seem like a
big deal but leaving it in case it is later.
6 years ago
Jonathan Strong
dafab36104
adds some inline annotations
6 years ago
Jonathan Strong
a2a4de3c0f
adds InfluxWriter::dur_nanos_u64
6 years ago
Jonathan Strong
99047401e6
adds dur_nanos method to InfluxWriter
6 years ago
Jonathan Strong
228ddff33a
adds with_logger constructor for InfluxWriter
6 years ago
Jonathan Strong
a87cb002ac
replaces Vec with SmallVec for backing storage of `OwnedMeasurement`
6 years ago
Jonathan Strong
1a21ef0ed8
random warning silencing
6 years ago
Jonathan Strong
6541d5ffb9
puts warnings mod behind a feature gate
6 years ago
Jonathan Strong
e8f83b88d2
removes trace logging in InfluxWriter
6 years ago
Jonathan Strong
752f6374bd
disable-short-uuid feat
6 years ago
Jonathan Strong
f293aa2860
adds InfluxWriter::nanos(&self) -> i64 convenience fn
6 years ago
Jonathan Strong
6b6fe6c67c
influx host
6 years ago
Jonathan Strong
9932cec369
misc
6 years ago
Jonathan Strong
92dd50c2a4
misc
6 years ago
Jonathan Strong
29491e3606
adds scholes feature etc
6 years ago
Jonathan Strong
7b8f8c0918
InfluxWriter loop now blocks on recv, among other incremental improvements
6 years ago
Jonathan Strong
bb95b9a3ff
switches consts based on cfg features
6 years ago
Jonathan Strong
e9e6e01ebe
InfluxWriter refactor (mostly)
6 years ago
Jonathan Strong
9a8e62754d
massive cleanup
- kills MeasurementWindow/WTen
- all warnings silenced
- cruft removed
6 years ago