Commit Graph

34 Commits

Author SHA1 Message Date
Vincent Bernat
1ce435efde console/frontend: add a link to GitHub on the documentation page
This is only when branding is explicitely enabled. Now, that
akvorado.net does not redirect to GitHub anymore...
2025-08-30 17:03:23 +02:00
Fabian Bees
708889d558 feat/console: option to sort by last column 2025-02-21 10:03:30 +01:00
Vincent Bernat
2df8b5785b console: use avg/max for LimitType (instead of Avg/Max) 2024-11-23 23:48:02 +01:00
Vincent Bernat
ba37f1765a console: use enumer for HomepageTopWidget 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
952a927ffd Revert "console: change default to last 24 hours"
This reverts commit ff03bfffbb. Otherwise,
we use the "flows_5m0s" table and it takes some time to get data on
start. This may confuse people.
2024-08-06 10:20:33 +02:00
Vincent Bernat
43357c263a console: add configurable defaults for bidirectional and previous period 2024-08-06 10:12:19 +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
1037d66d22 console: add an option for homepage graph time range 2024-05-09 15:23:54 +02:00
Vincent Bernat
ff03bfffbb console: change default to last 24 hours 2024-04-24 08:57:50 +02:00
Vincent Bernat
f08d0cc7be console: increase default value for graph cache 2024-04-03 15:23:00 +02:00
Vincent Bernat
02dd9336b6 console: move graph filter next to top widgets in struct Config 2023-11-03 13:43:12 +01:00
Marvin Gaube
6cbdfafd67 feat: make widget graph configureable 2023-11-03 13:42:40 +01:00
Vincent Bernat
cabea987f5 build: bump github.com/go-playground/validator/v10 from 10.15.1 to 10.15.3
And fix incorrect usage of `dive` (not needed for structs).
2023-09-08 21:01:44 +02:00
Vincent Bernat
fb440b7720 console: expose truncatable dimensions 2023-02-22 20:55:21 +01:00
Vincent Bernat
a8e05548a4 common/schema: add disabled columns
We introduce SrcVlan and DstVlan for that. On next commit, a user will
be able to enable/disable columns. Adding columns will still need to
have code for that.
2023-01-19 17:13:50 +01:00
Vincent Bernat
c6a9319b57 common/schema: turns into a component
This is a first step to make it accept configuration. Most of the
changes are quite trivial, but I also ran into some difficulties with
query columns and filters. They need the schema for parsing, but parsing
happens before dependencies are instantiated (and even if it was not the
case, parsing is stateless). Therefore, I have added a `Validate()`
method that must be called after instantiation. Various bits `panic()`
if not validated to ensure we catch all cases.

The alternative to make the component manages a global state would have
been simpler but it would break once we add the ability to add or
disable columns.
2023-01-18 12:22:10 +01:00
Vincent Bernat
8a779fb905 common/schema: make schema fields private
This is useful later to bundle cached field and ensure they stay
up-to-date.
2023-01-17 20:53:00 +01:00
Vincent Bernat
727807b937 common/schema: use a symbol to identify columns 2023-01-17 20:53:00 +01:00
Vincent Bernat
e88d2a2974 common/schema: namespace column members by subsystem
Otherwise, it will be a mess once we introduce IPFIX/sFlow specific fields
2023-01-17 20:53:00 +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
788e12dc26 console: make cache duration configurable 2022-12-22 16:32:26 +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
9c7e3db6e7 console: make the upper limit for dimensions configurable 2022-10-05 08:25:25 +02:00
Vincent Bernat
194c478cad console: add a configuration option for widgets on the home page 2022-07-21 14:59:32 +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
Vincent Bernat
8be1bca4fd license: AGPL-3.0-only
```
git ls-files \*.js \*.go \
  | xargs sed -i '1i // SPDX-FileCopyrightText: 2022 Free Mobile\n// SPDX-License-Identifier: AGPL-3.0-only\n'
git ls-files \*.vue \
  | xargs sed -i '1i <!-- SPDX-FileCopyrightText: 2022 Free Mobile -->\n<!-- SPDX-License-Identifier: AGPL-3.0-only -->\n'
```
2022-06-29 11:42:28 +02:00
Vincent Bernat
b65d78ab1b console: turn authentication into a proper component 2022-06-09 19:55:57 +02:00
Vincent Bernat
f5252ce077 console: rework a bit user management
Notably, HTTP headers are configurable and a provider is used for the
frontend side.
2022-05-31 17:03:00 +02:00
Vincent Bernat
93da599adf cmd: take configuration as a mandatory argument (+ other changes)
The other changes are:
 - rename configure service to orchestrator service
 - turn DefaultConfiguration variables into functions
2022-04-10 15:14:39 +02:00
Vincent Bernat
bbe6fdb635 console: remove proxy to Grafana
This is not really our job to do that.
2022-04-07 11:07:38 +02:00
Vincent Bernat
1dc253764d global: split Akvorado into 3 services 2022-04-01 20:21:53 +02:00