Commit Graph

768 Commits

Author SHA1 Message Date
Vincent Bernat
334ed0f56f inlet/flow: fix input configuration parsing
Commit 3f1dc38052 introduced a regression. On an interface value,
`.String()` is not equal to `.Elem().String()`.
2022-08-16 19:43:28 +02:00
Vincent Bernat
985e678e42 chore: replace map[string]interface{} by gin.H 2022-08-16 19:43:28 +02:00
Amin
c8fac33990 Update 06-internals.md
fix link
2022-08-16 12:11:32 +02:00
dependabot[bot]
ae8cb80991 build: bump @vitejs/plugin-vue from 3.0.1 to 3.0.3 in /console/frontend
Bumps [@vitejs/plugin-vue](https://github.com/vitejs/vite/tree/HEAD/packages/plugin-vue) from 3.0.1 to 3.0.3.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/plugin-vue/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v3.0.3/packages/plugin-vue)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-vue"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-16 00:13:43 +02:00
dependabot[bot]
2f28916eca build: bump vite from 3.0.4 to 3.0.7 in /console/frontend
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 3.0.4 to 3.0.7.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v3.0.7/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-16 00:13:31 +02:00
dependabot[bot]
8b6f0c164d build: bump github.com/mattn/go-isatty from 0.0.14 to 0.0.16
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.14 to 0.0.16.
- [Release notes](https://github.com/mattn/go-isatty/releases)
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.14...v0.0.16)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-16 00:13:04 +02:00
dependabot[bot]
071e73afcb build: bump eslint from 8.21.0 to 8.22.0 in /console/frontend
Bumps [eslint](https://github.com/eslint/eslint) from 8.21.0 to 8.22.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.21.0...v8.22.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-16 00:10:47 +02:00
Vincent Bernat
086536ad03 common/helpers: rename AddMapstructureUnmarshallerHook to Register* 2022-08-14 15:08:00 +02:00
Vincent Bernat
d9a8262f76 common/helpers: make validation work for SubnetMap 2022-08-14 15:06:53 +02:00
Vincent Bernat
574ec7e79e inlet/snmp: add proper support for SNMPv3 2022-08-14 10:20:19 +02:00
Vincent Bernat
0a4275d87d inlet/snmp: add ability to set a version for SNMP
This is mostly useless as we don't provide a way to specify SNMPv3
authentication. We won't keep this config option as is.
2022-08-14 00:57:33 +02:00
Vincent Bernat
cd535c915d common/helpers: make subnetmap work with struct as values
The way it was converted from a mapstruct made it not possible to have
struct as values. Fix that by checking if keys look like IP or not.
2022-08-14 00:54:55 +02:00
Vincent Bernat
3f1dc38052 Revert "inlet/snmp: do not deprecate default-community"
This reverts commit e5d3d3fbc3. When
adding SNMPv3, it will be odd to have this. Just put the extra mile to
deprecate it correctly.
2022-08-13 21:33:53 +02:00
Vincent Bernat
7eb2a0b5f5 build: just extract flow version from Go code
This makes Go code the canonical place to get this info.
2022-08-13 15:22:03 +02:00
Vincent Bernat
0005d7bfb3 build: tentative to autodetect the latest flow schema 2022-08-13 15:19:12 +02:00
Vincent Bernat
657c00e0a3 build: remove Makefile from random dependencies
It is not applied to all rules while it should. As a rule of thumb,
modifying Makefile should trigger a make clean.
2022-08-13 15:18:07 +02:00
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