Vincent Bernat
bd37c1d553
common/httpserver: listen on an abstract Unix socket
...
And make healthcheck command use it by default. This makes the
healthcheck command works whatever port the user has configured for the
HTTP service.
2025-11-24 11:29:45 +01:00
Vincent Bernat
f04286d617
common/httpserver: enable block and mutex profiling
...
CI / 🤖 Check dependabot status (push) Has been cancelled
CI / 🐧 Test on Linux (${{ github.ref_type == 'tag' }}, misc) (push) Has been cancelled
CI / 🐧 Test on Linux (coverage) (push) Has been cancelled
CI / 🐧 Test on Linux (regular) (push) Has been cancelled
CI / ❄️ Build on Nix (push) Has been cancelled
CI / 🍏 Build and test on macOS (push) Has been cancelled
CI / 🧪 End-to-end testing (push) Has been cancelled
CI / 🔍 Upload code coverage (push) Has been cancelled
CI / 🔬 Test only Go (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 20) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 22) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 24) (push) Has been cancelled
CI / ⚖️ Check licenses (push) Has been cancelled
CI / 🐋 Build Docker images (push) Has been cancelled
CI / 🐋 Tag Docker images (push) Has been cancelled
CI / 🚀 Publish release (push) Has been cancelled
The value for block should match CPU profiling at 99Hz. The value for
mutex looks low enough to not add too much overhead. There is no
overhead while not profiling.
2025-11-11 12:02:40 +01:00
Vincent Bernat
0db8f43b10
common/httpserver: do not connect to Redis before starting component
...
We need to be able to dump the configuration without redis being present.
2025-09-16 21:50:09 +02:00
Vincent Bernat
31b6591e0e
build: update revive
...
And remove some unused variables.
2025-09-09 07:39:00 +02:00
Vincent Bernat
f7cc5e3dbc
orchestrator/clickhouse: add a benchmark for networks.csv
...
```
goos: linux
goarch: amd64
pkg: akvorado/orchestrator/clickhouse
cpu: AMD Ryzen 5 5600X 6-Core Processor
BenchmarkNetworks-12 482 2.447 ms/op
```
2025-08-17 11:05:58 +02:00
Vincent Bernat
a70029a4cd
orchestrator/clickhouse: also guess the port when guessing HTTP URL
2025-07-30 08:11:28 +02:00
Vincent Bernat
18beb310ee
chore: replace interface{} with any
2025-07-29 07:42:49 +02:00
Vincent Bernat
8ae23f9ae3
common/httpserver: log healthcheck and metrics endpoint at debug level
2025-07-27 11:38:20 +02:00
Vincent Bernat
0239cd0a9f
common: remove MarshalJSON helpers for mapstructure
...
They are not needed anymore since we don't exchange configuration files
using JSON, since baac495b9c .
2024-07-20 14:51:40 +02:00
Vincent Bernat
39882fd98e
common: handle per-candidate ports for external service checks
2024-01-20 09:25:31 +01:00
Vincent Bernat
b49abde028
common: use 127.0.0.1 instead of localhost for external test services
2024-01-20 08:29:32 +01:00
Vincent Bernat
9db516e424
build: don't use ioutil
...
This is deprecated.
2023-11-12 22:58:41 +01:00
Vincent Bernat
62521e629d
common/http: rename to common/httpserver
...
This is a preparation to introduce an httpclient common package. And it
makes it easier to use http from the standard library.
2023-05-28 09:08:29 +02:00