aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-22 18:30:39 +0100
committerAlex Auvolat <alex@adnab.me>2022-02-22 18:30:39 +0100
commit20ab1f7b8a76a116644668029175100c15a615e2 (patch)
tree3f5d195a32391aa3ec5b65b6a3d9b9bfc78d8f00
parentfe3e529cf667ddacca331c09d3a3f33469676de6 (diff)
downloadnixcfg-20ab1f7b8a76a116644668029175100c15a615e2.tar.gz
nixcfg-20ab1f7b8a76a116644668029175100c15a615e2.zip
Garage staging with telemetry
-rw-r--r--app/garage-staging/config/garage.toml5
-rw-r--r--app/garage-staging/deploy/garage.hcl2
-rw-r--r--app/telemetry/config/otel-config.yaml5
3 files changed, 8 insertions, 4 deletions
diff --git a/app/garage-staging/config/garage.toml b/app/garage-staging/config/garage.toml
index ca28b79..037dfe6 100644
--- a/app/garage-staging/config/garage.toml
+++ b/app/garage-staging/config/garage.toml
@@ -22,5 +22,6 @@ bind_addr = "0.0.0.0:3992"
root_domain = ".garage-staging-web.home.adnab.me"
index = "index.html"
-[admin_api]
-bind_addr = "0.0.0.0:3909"
+[admin]
+api_bind_addr = "0.0.0.0:3909"
+trace_sink = "http://10.42.2.21:4317"
diff --git a/app/garage-staging/deploy/garage.hcl b/app/garage-staging/deploy/garage.hcl
index 44aa0c9..671ab97 100644
--- a/app/garage-staging/deploy/garage.hcl
+++ b/app/garage-staging/deploy/garage.hcl
@@ -28,7 +28,7 @@ job "garage-staging" {
driver = "docker"
config {
- image = "dxflrs/amd64_garage:37011a2f6ec680e4b0bbc96fa7fa86d3738d9de8"
+ image = "dxflrs/amd64_garage:884e7f0f04fc04bdf453dade98f31a1511c9a214"
command = "/garage"
args = [ "server" ]
network_mode = "host"
diff --git a/app/telemetry/config/otel-config.yaml b/app/telemetry/config/otel-config.yaml
index 6749ee3..e1d6d78 100644
--- a/app/telemetry/config/otel-config.yaml
+++ b/app/telemetry/config/otel-config.yaml
@@ -29,6 +29,9 @@ exporters:
processors:
batch:
+ probabilistic_sampler:
+ hash_seed: 42
+ sampling_percentage: 10
extensions:
health_check:
@@ -42,7 +45,7 @@ service:
pipelines:
traces:
receivers: [otlp]
- processors: [batch]
+ processors: [probabilistic_sampler, batch]
exporters: [logging, otlp/elastic]
metrics:
receivers: [otlp, prometheus]