Commit Graph

36 Commits

Author SHA1 Message Date
Vincent Bernat
0f72ffd676 cmd: automatic restart of orchestrator on configuration change 2025-09-19 21:53:01 +02:00
Vincent Bernat
9f34f9caf9 common/helpers: return files parsed by yaml.UnmarshalWithInclude 2025-09-19 21:53:01 +02:00
Vincent Bernat
18beb310ee chore: replace interface{} with any 2025-07-29 07:42:49 +02:00
Vincent Bernat
8686e1cbd2 cmd/orchestrator: override ClickHouse/Kafka configurations when not set
The orchestrator overrides the ClickHouse and Kafka configuration for
the inlet and the console. This changes the behaviour to only do that if
`servers` or `brokers` key are not set.

Fix #1645
2025-02-15 15:20:14 +01:00
Vincent Bernat
e08331a286 common/helpers: switch to a blessed fork of mapstructure 2025-02-15 14:51:17 +01:00
dependabot[bot]
17d9a6b6de build: bump github.com/gin-gonic/gin from 1.9.1 to 1.10.0
Also update YAML MIME type.
2024-05-21 07:54:55 +02:00
Vincent Bernat
02e527915b cmd: test command checks 2023-07-30 20:27:38 +02:00
Vincent Bernat
28bfd84b3f cmd: change prefix for environment variables to AKVORADO_CFG
Otherwise, this may clash with automatically set environment variables
by various solutions, including Kubernetes.
2023-07-29 09:13:14 +02:00
Vincent Bernat
1ec89aac1f build: fix various lint issues
revive default configuration has changed in 1.3.0. Some stuff is a bit
silly (like empty blocks), but I find it easier to follow that than to
try to tweak the configuration.
2023-03-21 00:01:13 +01:00
Vincent Bernat
895c34fa82 cmd: accept an !include tag for YAML files 2023-02-13 23:32:45 +01:00
Vincent Bernat
cdbae1c643 Revert "cmd: accept an !include tag for YAML files"
This reverts commit b8698bc060. This
change is not complete, it is missing adaptations in docker-compose.yml.
2023-02-12 14:40:56 +01:00
Vincent Bernat
b8698bc060 cmd: accept an !include tag for YAML files 2023-01-29 14:48:57 +01:00
Vincent Bernat
9884844adf cmd: switch to gopkg.in/yaml.v3 for YAML parsing 2023-01-29 13:09:22 +01:00
Vincent Bernat
985e678e42 chore: replace map[string]interface{} by gin.H 2022-08-16 19:43:28 +02:00
Vincent Bernat
5cdc567828 inlet/core: also accept a map from subnet for default-sampling-rate
This should be generalized to other parts of configuration (SNMP
community), however, we need to check what happens with default
values. Also, network definition in orchestrator is likely to be able
to reuse that.
2022-07-31 20:36:46 +02:00
Vincent Bernat
8ee2750012 inlet/geoip: rename country-database to geo-database
This is a first step to accept another kind of GeoIP database (like
City). This also introduces the way we want to deprecate stuff:
transform the map structure.
2022-07-29 15:55:39 +02:00
Vincent Bernat
14fcc32cd2 cmd: do not merge user-provided lists with defaults
mapstructure is not zeroing stuff to allow incremental parsing of
configuration. This is fine for most structures, but when we get a
list, we don't want to merge the list provided by the user and the
default value. In this case, we zero out the list.
2022-07-21 19:10:39 +02:00
Vincent Bernat
085d4e7946 cmd: add a registration mechanism for mapstructure hooks 2022-07-21 17:46:01 +02:00
Vincent Bernat
02dc9401e2 orchestrator: add more attributes to classify networks
Like for exporters, we add role, site, region, and tenant. This time,
this is done in ClickHouse.
2022-07-18 11:34:56 +02:00
Vincent Bernat
70a4029eb5 config: fix panic when trying to look into a nil pointer 2022-07-08 15:20:51 +02:00
Vincent Bernat
15fc92bfe3 config: handle empty configurations 2022-07-08 09:17:10 +02:00
Vincent Bernat
22eab774a4 cmd: change how default configuration values are built
For the orchestrator, we need to build default values for slice of
configurations. We introduce a Reset() method that will be called by
mapstructure.
2022-07-07 20:55:33 +02:00
Vincent Bernat
7c81bc4759 cmd: ignore keys starting with dot in configuration
This enables to use YAML anchors.
2022-07-06 16:12:30 +02:00
Vincent Bernat
6121aaea15 config: use a validator for better configuration validation 2022-06-30 01:23:29 +02:00
Vincent Bernat
f67d2493b0 orchestrator: allow to register several configuration for a given service
Use the first one by default and if the index is not known. Remove
service registration as this is not used yet.
2022-06-29 15:45:59 +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
baac495b9c orchestrator: provide configuration for other components as YAML
JSON does not allow to marshal fields as embedded (like YAML "inline" tag).
2022-06-22 10:50:24 +02:00
Vincent Bernat
8ec6492448 orchestrator: remove broker reference from URLs too
The broker component was merged as the root orchestrator component.
Remove references from URL too.
2022-06-20 15:53:14 +02:00
Vincent Bernat
c76f4e406d orchestrator/clickhouse: implement network names 2022-06-03 15:32:41 +02:00
Vincent Bernat
7be1c6c544 cmd: fix content-type detection 2022-04-21 17:11:13 +02:00
Vincent Bernat
5fef879fd9 common/http: disable proxy for default HTTP client 2022-04-11 19:33:56 +02:00
Vincent Bernat
5cbe86fb60 cmd: don't use proxy when fetching configuration 2022-04-10 17:57:36 +02:00
Vincent Bernat
2fed10c8d2 orchestrator/broker: implement the broker component
Currently, it only exposes the configuration to other components. In
the future, it should be able to interact with them somehow.
2022-04-10 17:43:15 +02:00
Vincent Bernat
56e30e478a cmd: accept URL as a configuration file 2022-04-10 15:14:13 +02:00
Vincent Bernat
59b75fd3a6 configure/clickhouse: really use Kafka component configuration 2022-04-09 13:46:08 +02:00
Vincent Bernat
1dc253764d global: split Akvorado into 3 services 2022-04-01 20:21:53 +02:00