Convert source refs and status to tags
This commit is contained in:
parent
1809701a82
commit
5c76842858
@ -126,11 +126,11 @@ pub fn datapoint_from_sourcedata(
|
||||
builder = builder.tag(key, value)
|
||||
}
|
||||
builder = builder
|
||||
.tag("ip", d.ip_addr.to_string())
|
||||
.tag("ref_id", d.ip_addr.to_string())
|
||||
.tag("mode", (d.mode as i64).to_string())
|
||||
.tag("state", (d.state as i64).to_string())
|
||||
.field("poll", d.poll as i64)
|
||||
.field("stratum", d.stratum as i64)
|
||||
.field("state", d.state as i64)
|
||||
.field("mode", d.mode as i64)
|
||||
.field("flags", d.flags.bits() as i64)
|
||||
.field("reachability", d.reachability as i64)
|
||||
.field("since_sample", d.since_sample as i64)
|
||||
|
Loading…
x
Reference in New Issue
Block a user