Vincent Bernat
78fb01c223
chore: fix some small issues detected by golangci-lint
...
But not using it as some linters are either plain incorrect (the one
suggesting to not use nil for `c.t.Context()`) or just
debatable (checking for err value is a good practice, but there are
good reasons to opt out in some cases).
2022-08-10 17:44:32 +02:00
Vincent Bernat
17eb5529cf
inlet/core: correctly close new ticker on stop
2022-08-10 17:21:37 +02:00
Vincent Bernat
efbaed2866
inlet/geoip: check for unexpected close from file watcher
...
When we have a close event from a channel, we need to handle it
sensibly. It happens to be the only case in the codebase (except for
some tickers where we don't want to handle this).
2022-08-10 17:16:18 +02:00
Vincent Bernat
ab63e02dbe
doc: fix authentication example
2022-08-10 15:43:39 +02:00
Vincent Bernat
8b80fc421b
build: update kentik/patricia to 1.2.0
...
Support for generic has been merged.
2022-08-10 15:30:48 +02:00
Vincent Bernat
dd140d2a5c
console/docs: update Dracula theme
...
We extract from a PR which makes it more readable, notably for console
output.
2022-08-10 10:31:05 +02:00
Vincent Bernat
6902f72c84
console/frontend: make "previous period" line more visible
2022-08-09 22:10:40 +02:00
Vincent Bernat
af8b4763c5
build: prepare for release
v1.5.5
2022-08-09 21:58:51 +02:00
Vincent Bernat
1b012a7f1e
console/frontend: make tooltip aware of color scheme
2022-08-09 21:55:10 +02:00
Vincent Bernat
454a3eb9d3
console: add "previous period" mode
...
This displays a line for the previous period on stacked graphs.
Previous period depends on the current period. It could be hour, day,
week, month, or year.
2022-08-09 21:40:06 +02:00
Vincent Bernat
f95a398c4c
console/frontend: fix min/max/avg values for reverse direction
2022-08-09 19:37:15 +02:00
Vincent Bernat
8e755ae0e1
console: ensure we fill missing values including the last one
...
BETWEEN is inclusive, while FILL excludes the upper bound. This may
trigger a subtle bug where sometimes, one axis has one value the other
does not have.
2022-08-09 19:16:16 +02:00
Vincent Bernat
0208c34180
inlet/kafka: fix functional test after last commit
2022-08-09 15:32:15 +02:00
Vincent Bernat
e5e63be586
inlet/kafka: use a 4-byte random value for key
...
Using the exporter IP address is not helpful at all as we may not have
many of them and it would make big exporters difficult to scale if one
thread is not enough to ingest on the ClickHouse side.
Fix #75
2022-08-09 15:20:52 +02:00
Vincent Bernat
67703cc61e
console: use templates to build SQL query
...
This is needed if we want to be able to mix use of several tables
inside a single query (for example, flows_1m0s for a part of the query
and flows_5m0s for another part to overlay historical data).
Also, the way we handle time buckets is now cleaner. The previous way
had two stages of rounding and was incorrect. We were discarding the
first and last value for this reason. The new way only has one stage
of rounding and is correct. It tries hard to align the buckets at the
specified start time. We don't need to discard these values anymore.
We still discard the last one because it could be incomplete (when end
is "now").
2022-08-09 11:45:40 +02:00
Vincent Bernat
61b3baa406
Revert "build: try testing for true without a string"
...
This reverts commit 7bc09d1c6a . It does
not work: https://github.com/vincentbernat/akvorado/runs/7740148410?check_suite_focus=true
2022-08-09 08:15:59 +02:00
Vincent Bernat
7bc09d1c6a
build: try testing for true without a string
...
This is less ugly. It may work, for some reason.
2022-08-09 08:14:32 +02:00
Vincent Bernat
5632458eed
build: tentative to make boolean inputs work
2022-08-09 01:14:52 +02:00
Vincent Bernat
a0f6bf47ee
build: fix typo in latest commit
2022-08-09 01:09:58 +02:00
dependabot[bot]
5e534139c4
build: bump github.com/prometheus/client_golang from 1.12.2 to 1.13.0
...
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.12.2 to 1.13.0.
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.12.2...v1.13.0 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-09 01:09:17 +02:00
Vincent Bernat
13d505a324
build: enforce type for setup composite action
2022-08-09 01:08:38 +02:00
Vincent Bernat
cf98cf9437
build: do not setup Go when compiling only JS
...
There seems to be some bug in actions/setup-go that triggers:
Error: There are no cache folders on the disk
See https://github.com/vincentbernat/akvorado/runs/7735883596?check_suite_focus=true
2022-08-09 01:00:37 +02:00
Vincent Bernat
ca306456d5
common: make time.Time comparable with Diff
2022-08-09 01:00:37 +02:00
dependabot[bot]
830c845ca9
build: bump github.com/oschwald/geoip2-golang from 1.7.0 to 1.8.0
...
Bumps [github.com/oschwald/geoip2-golang](https://github.com/oschwald/geoip2-golang ) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/oschwald/geoip2-golang/releases )
- [Commits](https://github.com/oschwald/geoip2-golang/compare/v1.7.0...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/oschwald/geoip2-golang
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-09 00:46:39 +02:00
dependabot[bot]
b458779c1f
build: bump tailwindcss from 3.1.7 to 3.1.8 in /console/frontend
...
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss ) from 3.1.7 to 3.1.8.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases )
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.1.7...v3.1.8 )
---
updated-dependencies:
- dependency-name: tailwindcss
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-09 00:46:26 +02:00
dependabot[bot]
d8a92d8105
build: bump @codemirror/view from 6.1.2 to 6.2.0 in /console/frontend
...
Bumps [@codemirror/view](https://github.com/codemirror/view ) from 6.1.2 to 6.2.0.
- [Release notes](https://github.com/codemirror/view/releases )
- [Changelog](https://github.com/codemirror/view/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codemirror/view/compare/6.1.2...6.2.0 )
---
updated-dependencies:
- dependency-name: "@codemirror/view"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-09 00:46:01 +02:00
dependabot[bot]
418258617e
build: bump @codemirror/state from 6.1.0 to 6.1.1 in /console/frontend
...
Bumps [@codemirror/state](https://github.com/codemirror/state ) from 6.1.0 to 6.1.1.
- [Release notes](https://github.com/codemirror/state/releases )
- [Changelog](https://github.com/codemirror/state/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codemirror/state/compare/6.1.0...6.1.1 )
---
updated-dependencies:
- dependency-name: "@codemirror/state"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-09 00:45:31 +02:00
dependabot[bot]
0bb15c957d
build: bump @vueuse/core from 9.0.2 to 9.1.0 in /console/frontend
...
Bumps [@vueuse/core](https://github.com/vueuse/vueuse/tree/HEAD/packages/core ) from 9.0.2 to 9.1.0.
- [Release notes](https://github.com/vueuse/vueuse/releases )
- [Commits](https://github.com/vueuse/vueuse/commits/v9.1.0/packages/core )
---
updated-dependencies:
- dependency-name: "@vueuse/core"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-09 00:35:49 +02:00
dependabot[bot]
fe03e4f65d
build: bump @vueuse/router from 9.0.2 to 9.1.0 in /console/frontend
...
Bumps [@vueuse/router](https://github.com/vueuse/vueuse/tree/HEAD/packages/router ) from 9.0.2 to 9.1.0.
- [Release notes](https://github.com/vueuse/vueuse/releases )
- [Commits](https://github.com/vueuse/vueuse/commits/v9.1.0/packages/router )
---
updated-dependencies:
- dependency-name: "@vueuse/router"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-09 00:35:29 +02:00
dependabot[bot]
76feb959d0
build: bump @lezer/generator from 1.1.0 to 1.1.1 in /console/frontend
...
Bumps [@lezer/generator](https://github.com/lezer-parser/generator ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/lezer-parser/generator/releases )
- [Changelog](https://github.com/lezer-parser/generator/blob/main/CHANGELOG.md )
- [Commits](https://github.com/lezer-parser/generator/compare/1.1.0...1.1.1 )
---
updated-dependencies:
- dependency-name: "@lezer/generator"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-09 00:35:07 +02:00
dependabot[bot]
6f48398123
build: bump postcss from 8.4.14 to 8.4.16 in /console/frontend
...
Bumps [postcss](https://github.com/postcss/postcss ) from 8.4.14 to 8.4.16.
- [Release notes](https://github.com/postcss/postcss/releases )
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss/compare/8.4.14...8.4.16 )
---
updated-dependencies:
- dependency-name: postcss
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-09 00:34:49 +02:00
Vincent Bernat
b5e48e8cfd
console: also use dimensions to tell if we need to use main table
2022-08-08 11:35:18 +02:00
Vincent Bernat
b745cfd356
console: fix test about reverse filter direction
2022-08-08 09:42:27 +02:00
Vincent Bernat
61c8143fe8
build: fix linting issues introduced by latest revive release
2022-08-07 23:54:24 +02:00
Vincent Bernat
50614cef5b
console: add a bidirectional mode for graphs
...
It allows one to also display flows in the opposite direction.
2022-08-07 23:15:18 +02:00
Vincent Bernat
e89a188d6d
build: use variables to avoid hardcoding repository path
2022-08-05 22:56:14 +02:00
Vincent Bernat
1b47b730f6
orchestrator/clickhouse: do not track goroutines
...
They are not long-lived, this is expected.
2022-08-05 20:01:38 +02:00
Vincent Bernat
2337b1c921
conntrack-fixer: don't listen to 8080
...
Otherwise, we take port from Traefik. Also, this makes the healthcheck
ineffective. Maybe there is a way to escape from the network namespace
we are put in just for conntrack, but I don't see exactly how without
doing complicated stuff (like using Docker to spawn a process inside
the host namespace and communicate with it, or even steal the
namespace from it, this seems overkill).
2022-08-05 19:53:24 +02:00
Vincent Bernat
e01f71927e
docker-compose: only require NET_ADMIN for conntrack-fixer container
2022-08-05 19:47:40 +02:00
Vincent Bernat
c01489948f
general: use map[string]struct{} instead of map[string]bool
2022-08-05 18:12:41 +02:00
Vincent Bernat
15fd3540ac
conntrack-fixer: don't build when not running on Linux
2022-08-05 11:23:07 +02:00
Vincent Bernat
326d880b8b
conntrack-fixer: turn it into a proper component-based
...
And add tests.
2022-08-05 11:13:39 +02:00
Vincent Bernat
ef54e97341
build: fix CI action
2022-08-04 19:19:54 +02:00
Vincent Bernat
2e2f08722c
build: use NodeJS for default builds
2022-08-04 19:10:03 +02:00
Vincent Bernat
1ad9af0f40
build: test building with various versions of Node
...
This seems to work with Node 14 et NPM 6.
2022-08-04 19:06:53 +02:00
Vincent Bernat
5cf00083c0
doc: require NodeJS 16+
...
At least Vue is requiring 14.18+. Let be safe and require 16+.
2022-08-04 18:54:46 +02:00
Vincent Bernat
1aa260bae2
console/filter: let parser tells us if we need the main table or not
...
This is more robust this way. We also introduce the ability to reverse
the direction of a filter.
2022-08-04 18:54:41 +02:00
Vincent Bernat
2610bd48d1
demo-exporter: also generates reverse flows
...
This will be useful for some future features.
2022-08-03 16:30:49 +02:00
Vincent Bernat
8943c8b58f
doc: enable sampling on subinterface for Juniper
...
And add description on the same interface to hint user to set
description.
2022-08-03 14:46:00 +02:00
Vincent Bernat
ff64c9e324
doc: provide more examples on how to use classifiers
2022-08-03 13:35:08 +02:00