commit | b551b65225b7398ed4eb8b3361f50c7998f56ce1 | [log] [tgz] |
---|---|---|
author | Tim Windelschmidt <tim@monogon.tech> | Mon Jul 17 16:01:42 2023 +0200 |
committer | Tim Windelschmidt <tim@monogon.tech> | Mon Jul 24 14:45:04 2023 +0000 |
tree | 3ae89cf74847693ae13f2c18063a48d4fb8563ba | |
parent | 5d0906e1db869ddeac081567b469671a5ff25f7c [diff] |
metropolis/node/core/metrics: implement http_sd discovery endpoint We provide prometheus metrics but dont have a way to discover all nodes, this change implements a new http endpoint: /discovery. It implements the http_sd api and returns all current cluster nodes including their roles as label. Change-Id: I931a88e2afb285482d122dd059c96f9ebfab4052 Reviewed-on: https://review.monogon.dev/c/monogon/+/1934 Tested-by: Jenkins CI Reviewed-by: Serge Bazanski <serge@monogon.tech>
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later!
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm
(if you want to run tests).Our docs assume that Bazelisk is available as bazel
on your PATH.
Refer to SETUP.md for detailed instructions.
Build CLI and node image:
bazel build //metropolis/cli/dbg //:launch -c dbg
Launch an ephemeral test node:
bazel test //:launch -c dbg --test_output=streamed
Run a kubectl command while the test is running:
bazel-bin/metropolis/cli/dbg/dbg_/dbg kubectl describe node
Run full test suite:
bazel test -c dbg //...