Commit Graph

18 Commits

Author SHA1 Message Date
Vincent Bernat
dd9fc75ec3 console: fix configuration test 2025-08-30 17:20:20 +02:00
Vincent Bernat
2df8b5785b console: use avg/max for LimitType (instead of Avg/Max) 2024-11-23 23:48:02 +01:00
dimbdr
6c0e8e1791 feat: configure limit type (#1482)
* Add limit type field selection

* Take into account LimitType to generate SQL request for Line graph

Also, add LimitType in default configuration for console

* Take into account LimitType to generate SQL request for Sankey graph

* Refactor on SQL query used by line and sankey

* Add limitType description in doc

* Order by max in graphLine when limitType max is used

* Fix query when using top max

Revert some modifications, as they were no longer relevant with the query fixed.

* Rework way to sort by max in line graph type

* Add configuration validation on LimitType

---------

Co-authored-by: Dimitri Baudrier <github.52grm@simplelogin.com>
2024-11-23 18:39:28 +01:00
Vincent Bernat
2d16640da7 console: fix test after commit 952a927ffd 2024-08-06 19:12:02 +02:00
Vincent Bernat
3af8b942d2 build: move version to a single place
Instead of trying to copy Akvorado version around, move it to a single
place, which can be imported by everything else.
2024-06-02 14:04:54 +02:00
Vincent Bernat
71d5cb92a7 console: fix test due to change of default interval 2024-04-24 09:58:32 +02:00
Francois Espinet
87a57bf82e Do geoip enrich in clickhouse instead of inlet
One solution to https://github.com/akvorado/akvorado/issues/62
2024-03-11 15:29:09 +01:00
Vincent Bernat
c1b2008ee9 build: make mocks depend on go.mod 2023-08-25 22:05:34 +02:00
Marvin Gaube
fa0ac2388a feat: expose nexthop as dimension 2023-08-25 21:57:26 +02:00
Vincent Bernat
d9ac7460c4 console: fix configuration test 2023-02-23 23:33:19 +01:00
Vincent Bernat
a912da7fa1 build: use gofumpt
Undecided if we need to use it. I think it's nice.
2023-02-11 10:03:45 +01:00
Vincent Bernat
a30024cfa1 console: use common/schema for dimensions
This is a bit less type-safe. We could keep type safety by redefining
all the consts in `query_consts.go` in `common/schema`, but this is
pointless as the goal is to have arbitrary dimensions at some point.
2023-01-03 18:40:19 +01:00
Vincent Bernat
cbfa754340 console: add limit and graph-type to default-visualize-options 2022-12-01 09:58:19 +01:00
Vincent Bernat
ec41da67c0 console/frontend: use configured dimensions limit for “Visualize” tab 2022-11-15 14:12:26 +01:00
Vincent Bernat
3e3bcbdada http: use a method to get local address
And limit its export to testing.
2022-08-21 08:20:14 +02:00
Vincent Bernat
47c8113e99 console: fix failing test due to previous commit 2022-07-21 15:21:26 +02:00
Vincent Bernat
049513be5c console: add configuration for default options of the visualize tab 2022-07-21 13:16:39 +02:00
Vincent Bernat
927a9f3cfd console: display running version 2022-07-21 12:57:32 +02:00