Jonathan Strong
00d0e1a427
makes zmq optional dep
6 years ago
Jonathan Strong
f59c627187
check if floats are finite, replacing NaNs with 0.0 to avoid influx server errors
6 years ago
Jonathan Strong
e47c0952fb
check if there are no fields (only tags), in which case add an integer field "n" with value 1
6 years ago
Jonathan Strong
d1849fad78
changes InfluxWriter to buffer size of 4096, or if 2 seconds since last send
6 years ago
Jonathan Strong
a1922b387e
adds InfluxWriter::secs(&self, Duration) -> f64
6 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
Jonathan Strong
5b716e411b
adds test feature
6 years ago
Jonathan Strong
9aaf6cd8ab
adds check that buffer_size > 0 to allow 0-size buffer, flush every message setting
7 years ago
Jonathan Strong
a7a3f68e92
tweaks measure! to handle measure!(self.influx, ...)
7 years ago
Jonathan Strong
f74de77ae8
impl Clone for InfluxWriter
7 years ago
Jonathan Strong
71dee1f783
adds a shortcut version of each "function" when column name = variable name!
7 years ago
Jonathan Strong
785338de37
adds "b" shortcut for bool
7 years ago
Jonathan Strong
929fdb2183
minor tweaks
7 years ago
Jonathan Strong
fa97b86fa1
measure! now can handle parenthesis instead of brackets
7 years ago
Jonathan Strong
d63906aa09
adds casting to correct primative for instances where u64 -> i64 etc
7 years ago
Jonathan Strong
da6e130f0b
adds @make_meas flag for measure! and one-character shorthands for type variants
t = tag,
i => int,
f => float,
s => string,
d => d128,
u => uuid,
tm => time
7 years ago
Jonathan Strong
c84e7b46a6
adds d128, Uuid variants to OwnedValue + assorted improvements
7 years ago
Jonathan Strong
66ecbd4a4c
new InfluxWriter intended to be created by each thread for it to use
- no zmq socket
- uses recv_timeout so no-thrash is pretty irrelevant
- sending (with measure!) is about 1u in benches
7 years ago
Jonathan Strong
021f96d2a1
moving stuff around
7 years ago
Jonathan Strong
b531d9430e
set influx writer buffer size to const and double prev value (80 -> 160)
7 years ago
Jonathan Strong
31959480be
remove shuteye dep
7 years ago
Jonathan Strong
5676cf335e
measure macro
7 years ago
Jonathan Strong
8136a454db
cleaned up serialize_owned fn
7 years ago
Jonathan Strong
60c7aa8421
random cleanup - trying to keep warnings down
7 years ago
Jonathan Strong
de90d20fbd
start prototyping the measure! macro
7 years ago
Jonathan Strong
742dab3bf4
add some benches - coming in 2-3u
7 years ago
Jonathan Strong
104124810a
cleans up serialize_owned a bit
7 years ago
Jonathan Strong
ea7c324cbd
fixes some random broken tests
7 years ago
Jonathan Strong
a93ca1611d
oops
7 years ago