Commit Graph

38 Commits

Author SHA1 Message Date
Julian Kornberger c3588c9e05 fix(go): Upgrade to Go 1.21 2023-09-18 20:00:59 +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
Geno f4bad7d856 nodeinfo without empty values 2021-03-24 08:57:46 +01:00
David Bauer 050a6da516 runtime: add support for OWE global statistics 2020-04-11 14:38:21 +02: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 6e745bf78f
[TEST] improve runtime 2019-05-21 09:56:16 +02: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 35d6933d31
[TASK] handle domain_code (with filters) (#119) 2018-05-05 23:28:46 +02:00
Martin Geno 9d3eb127aa
[BUGFIX] gateways and nexthop (ignore null address) 2018-01-21 20:39:36 +01:00
Julian Kornberger d2e37f8c7d Simplify with `gofmt -s -w .` 2018-01-13 16:40:23 +01:00
Julian Kornberger f5b24dfab2 Move config structs to packages 2018-01-13 15:06:18 +01:00
Martin Geno d892d1693d [TASK] extract seperate config to packages 2018-01-13 14:14:39 +01:00
Martin Geno ba95194dec [TASK] remove unused code 2018-01-13 14:14:39 +01:00
Martin Geno cf2d2c3209 [BUGFIX] tests without sleep 2018-01-13 14:14:39 +01:00
Julian Kornberger f852578b11 Improve error handling for duration parsing 2018-01-02 10:45:31 +01:00
Geno f423da31d2
[TASK] add rules for documentation, PR and testing
(#76 )
2017-12-31 16:01:19 +01:00
Geno 69079b7d64
[TASK] extract enable to all databases + increase testing in database
(#78)
2017-12-31 16:01:11 +01:00
Julian Labus 7324567f91 [TASK] add global statistics for individual sites 2017-12-06 09:30:19 +01:00
Geno 0d8fddbcb7
[TASK] add autoupdater to influxdb database (#93) 2017-11-14 19:33:50 +01:00
Xaver Maierhofer 93321ab3ad [TASK] Add editorconfig & format code (#94) 2017-11-06 00:59:42 +01:00
Ruben Barkow bf2a026b89
[DOC] fix userrights instructions and add update to INSTALL.md (#88) 2017-11-02 23:01:15 +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 dbc1353154 Add support for listening on multiple interfaces (#80)
closes #79
2017-10-18 18:22:14 +02:00
Geno b8921052b6 [TEST] increase test coverage of package runtime to maximum (#75) 2017-10-12 15:25:00 +02:00
Julian Kornberger cbb5f2e59b Switch to cobra for the CLI 2017-10-01 17:09:12 +02:00
Julian K f4650213b8 [TASK] add per-link statistics (#57)
ATM: support only influxdb
2017-09-27 13:55:02 +02:00
Julian K 7f554bd6d6 [TASK] Delay startup until a multiple of the period since zero time (#68) 2017-06-14 09:44:15 +02:00
Andreas Rammhold 88975d2566 [TASK] add database type graphite (#65) 2017-06-01 22:52:14 +02:00
Julian Kornberger 0df8f5d615 Remove Gateway field 2017-04-18 03:08:09 +02:00
Julian Kornberger ecfd860d15 Simplify incrementation 2017-04-18 01:09:55 +02:00
Geno f135249795 [TASK] Make yanic more modular for multiple databases (#33) 2017-04-10 18:54:12 +02:00