Commit Graph

17 Commits

Author SHA1 Message Date
Florian Maurer 22f67e2d4d feat(meshviewer): Add gateway tq and clients owe (#225)
Signed-off-by: Florian Maurer <f.maurer@outlook.de>
2023-09-18 20:01:15 +02:00
genofire 156d07e7e8 fix LLDP handling for https://github.com/freifunk-gluon/packages/pull/189 2022-07-10 18:09:17 +02:00
Julian Kornberger ff42378138 Make linter happy 2022-03-28 04:20:58 +02:00
lemoer 3aac902632
[BUG] fix target.hostname of links
Before this commit, the value of target.hostname was incorrect.
It was accidentially pointing to the hostname of the source of
the link. This means target.hostname was equal to source.hostname.

Fixes: #197
Fixes: 0325aad24e
PR: #200
2021-04-03 05:11:33 +02:00
lemoer a76df9b9ac
[TASK] add output raw-jsonl
PR at github: #199

This output takes the respondd response as sent by the node and includes
it in a Line-Delimited JSON (JSONL) document. In this format each line
can be interpreted as separate JSON element, which is useful for json
streaming. The first line is json object holding the timestamp and
version of the file. Then there follows one line for each node, each
containing a json object.

An example output looks like this:

    {"version":1,"updated_at":"2021-03-27T21:58:48+0100","format":"raw-nodes-jsonl"}
    {"firstseen": ..., "lastseen": ..., "online":true, "statistics": {...}, "nodeinfo": {...}, "neighbours":null, "custom_fields":null}
    {"firstseen": ..., "lastseen": ..., "online":true, "statistics": {...}, "nodeinfo": {...}, "neighbours":null, "custom_fields":null}
    {"firstseen": ..., "lastseen": ..., "online":true, "statistics": {...}, "nodeinfo": {...}, "neighbours":null, "custom_fields":null}
    {"firstseen": ..., "lastseen": ..., "online":true, "statistics": {...}, "nodeinfo": {...}, "neighbours":null, "custom_fields":null}
    ...

Signed-off-by: Leonardo Mörlein <git@irrelefant.net>
2021-03-29 16:12:26 +02:00
lemoer 0325aad24e
Add hostnames to database-output of link
Grafana is currently not able to resolve the target.id or source.id
into a human readable hostname. Therefore reading the neighbour
graphs is quite difficult for humans. To resolve this, we add the
additional tags source.hostname and target.hostname to the influx
link measurements.

In PR  #197
2021-03-26 10:18:29 +01:00
genofire d4c898d1c9
only show warning on Update Node (during recieving respondd data)
fixes #178
2020-03-21 10:21:47 +01:00
nrbffs 1a1163aaa1 add support for custom fields
At the moment, if one has a custom respondd module which includes custom
fields, Yanic will simply ignore these fields. Communities which have custom
fields have to maintain patches on Yanic to have them available.

This commit allows to define custom fields in the configuration file, which
will cause Yanic to also save the values of these custom fields in its internal
data structures. Output modules can then decide whether they want to include
these fields. For most cases, this should avoid the need for patches in Yanic.
2019-12-29 15:41:05 +01:00
Martin/Geno bd13b99378
[TASK] rename NodeInfo to Nodeinfo (same naming overall) 2019-01-24 02:56:13 +01:00
Martin/Geno 27fde7cd8c [TASK] improve logging 2019-01-19 20:58:36 +01:00
Martin Geno c20e216ed6
[TASK] make yanic babel compatible (#104) 2018-05-05 23:30:22 +02:00
Martin Geno 9d3eb127aa
[BUGFIX] gateways and nexthop (ignore null address) 2018-01-21 20:39:36 +01:00
Martin Geno d892d1693d [TASK] extract seperate config to packages 2018-01-13 14:14:39 +01:00
Martin Geno 82fa527386
[TASK] improve output (filtering, fix links type, new outputs nodelist for freifunkapi and meshviewer-ffrgb v10 NextGen) - #63 2017-11-01 14:27:39 +01:00
Julian K f4650213b8 [TASK] add per-link statistics (#57)
ATM: support only influxdb
2017-09-27 13:55:02 +02:00
Julian Kornberger 0df8f5d615 Remove Gateway field 2017-04-18 03:08:09 +02:00
Geno f135249795 [TASK] Make yanic more modular for multiple databases (#33) 2017-04-10 18:54:12 +02:00
Renamed from models/nodes.go (Browse further)