WIP: monitoring #15
Reference in New Issue
Block a user
No description provided.
Delete Branch "monitoring"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#8
thanks!
@ -56,0 +64,4 @@>SECRET_METRICS_TOKEN_SECRET_VERSION=v1 # length=64 charset=hex>> MONITORING="true"> ```also add instructions on which address and port to add to prometheus/alloy
Good point, instructions are definitely not finished, let me add the wip flag to the pr
The pr is a wip so I'll wait on review until the instructions are finalized.
@ -0,0 +4,4 @@services:app:environment:- MONITORING_ENABLED=truei recently discovered the env var is not needed here because the template is rendered locally
Where should this be placed to trigger the conditional in the config? I wasn't sure if it should go in the .env or in the compose file and chose the compose with the idea that it'd be simpler to manage in the config.
as i understand, if it's user-customizable it has to go on
.envand only defined on compose files if it's needed during container runtime. if it's for templates it's ok for it to only be on.env.everything else looks ok, thanks!
@ -0,0 +9,4 @@labels:- "traefik.tcp.routers.garage-monitoring.rule=HostSNI(`*`)"- "traefik.tcp.routers.garage-monitoring.entrypoints=garage-monitoring"- "traefik.tcp.services.garage-monitoring.loadbalancer.server.port=3903"this means the port is proxied but not protected by https, right? wouldn't it be better to proxy it through the domain name? i'm not sure if you can do this on coopcloud, maybe the paths need to be listed
True, I didn't think of this. Going through a domain name would be easiest, because If I understand the monitoring endpoint correctly it's just served as a plaintext result.
@ -52,0 +58,4 @@external: truemetrics_token:name: ${STACK_NAME}_metrics_token_${SECRET_METRICS_TOKEN_SECRET_VERSION}external: truei think you can move these secrets to compose.monitoring.yml so they're only needed when monitoring is enabled
Ah, thanks for catching this
monitoringto WIP: monitoringView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.