Animosity022 Posted April 16 Share Posted April 16 I've tried a bunch of things with extra parameters / post arguments. docker run \ -v /mnt/user/appdata/alloy/config/config.alloy:/etc/alloy/config.alloy \ -v /mnt/user/appdata/alloy/data:/var/lib/alloy/data \ -p 12345:12345 \ grafana/alloy:latest \ run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data \ /etc/alloy/config.alloy I'm trying to get the run --server part and storage as if I put it in parameters, it fails and post arguments, I may have the syntax wrong. Quote Link to comment
Jufy111 Posted April 19 Share Posted April 19 (edited) I got it to launch, but i can't say if its doing any more than that change the volume mapping to drop the filename and map the directory. I was getting a weird directory/file type mismatch error. -v /mnt/user/appdata/alloy/config/config.alloy:/etc/alloy/ >>>>>> -v /mnt/user/appdata/alloy/config/config.alloy:/etc/alloy/ In the post arguments you need 'quotes for the whole expression' if you have spaces. And i think you need to add the alloy command at the start https://grafana.com/docs/alloy/latest/reference/cli/run/ 'alloy run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data /etc/alloy/config.alloy' my setup below Edited April 19 by Jufy111 Quote Link to comment
mbush78 Posted April 20 Share Posted April 20 (edited) You're just missing some single quotes for the command line version. This works: docker run \ -v '/mnt/user/apptmp/alloy/config/config.alloy':'/etc/alloy/config.alloy' \ -v '/mnt/user/apptmp/alloy/data':'/var/lib/alloy/data' \ -p 12345:12345 'grafana/alloy:latest' run --server.http.listen-addr=0.0.0.0:12345 \ --storage.path=/var/lib/alloy/data /etc/alloy/config.alloy docker run -d --name='grafana_alloy' --net='bridge' -e TZ="America/Chicago" -e HOST_OS="Unraid" -e HOST_HOSTNAME="unraid" -e HOST_CONTAINERNAME="grafana_alloy" -l net.unraid.docker.managed=dockerman -p '12345:12345/tcp' -v '/mnt/user/apptmp/alloy/config/config.alloy':'/etc/alloy/config.alloy':'rw' -v '/mnt/user/apptmp/alloy/data':'/var/lib/alloy/data':'rw' 'grafana/alloy:latest' run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data /etc/alloy/config.alloy The command finished successfully! root@unraid:/mnt/user/apptmp# docker run -v '/mnt/user/apptmp/alloy/config/config.alloy':'/etc/alloy/config.alloy' -v '/mnt/user/apptmp/alloy/data':'/var/lib/alloy/data' -p 12345:12345 'grafana/alloy:latest' run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data /etc/alloy/config.alloy Unable to find image 'grafana/alloy:latest' locally latest: Pulling from grafana/alloy 062e51aa1fb4: Pull complete 568a2bf5c15e: Pull complete a5989d15309e: Pull complete dec2c180ab5e: Pull complete 538aed975229: Pull complete 8f4b5a01bf79: Pull complete 2e8fdb5249b7: Pull complete 680f4980a78e: Pull complete b50d16a2a55f: Pull complete 10fa0ec2e27f: Pull complete f2044796f2e3: Pull complete d711b3e3ab2d: Pull complete Digest: sha256:21248ad12831ad8f7279eb40ecd161b2574c2194ca76e7413996666d09beef6c Status: Downloaded newer image for grafana/alloy:latest ts=2024-04-20T11:32:35.539372042Z level=info "boringcrypto enabled"=false ts=2024-04-20T11:32:35.539391212Z level=info msg="running usage stats reporter" ts=2024-04-20T11:32:35.539394852Z level=info msg="starting complete graph evaluation" controller_path=/ controller_id="" trace_id=8eefe7ba571d06d72adae41eee1e925c ts=2024-04-20T11:32:35.539401922Z level=info msg="applying non-TLS config to HTTP server" service=http ts=2024-04-20T11:32:35.539404792Z level=info msg="finished node evaluation" controller_path=/ controller_id="" trace_id=8eefe7ba571d06d72adae41eee1e925c node_id=http duration=9.72µs ts=2024-04-20T11:32:35.539409422Z level=info msg="finished node evaluation" controller_path=/ controller_id="" trace_id=8eefe7ba571d06d72adae41eee1e925c node_id=cluster duration=770ns ts=2024-04-20T11:32:35.539413422Z level=info msg="finished node evaluation" controller_path=/ controller_id="" trace_id=8eefe7ba571d06d72adae41eee1e925c node_id=ui duration=660ns ts=2024-04-20T11:32:35.539417062Z level=info msg="finished node evaluation" controller_path=/ controller_id="" trace_id=8eefe7ba571d06d72adae41eee1e925c node_id=tracing duration=7.51µs ts=2024-04-20T11:32:35.539425671Z level=info msg="finished node evaluation" controller_path=/ controller_id="" trace_id=8eefe7ba571d06d72adae41eee1e925c node_id=logging duration=58.119µs ts=2024-04-20T11:32:35.539456141Z level=info msg="finished node evaluation" controller_path=/ controller_id="" trace_id=8eefe7ba571d06d72adae41eee1e925c node_id=remotecfg duration=24.39µs ts=2024-04-20T11:32:35.539464411Z level=info msg="finished node evaluation" controller_path=/ controller_id="" trace_id=8eefe7ba571d06d72adae41eee1e925c node_id=labelstore duration=1.93µs ts=2024-04-20T11:32:35.539470341Z level=info msg="finished node evaluation" controller_path=/ controller_id="" trace_id=8eefe7ba571d06d72adae41eee1e925c node_id=otel duration=430ns ts=2024-04-20T11:32:35.539475211Z level=info msg="finished complete graph evaluation" controller_path=/ controller_id="" trace_id=8eefe7ba571d06d72adae41eee1e925c duration=165.439µs ts=2024-04-20T11:32:35.539561361Z level=info msg="scheduling loaded components and services" ts=2024-04-20T11:32:35.53970125Z level=info msg="starting cluster node" peers="" advertise_addr=127.0.0.1:12345 ts=2024-04-20T11:32:35.539850499Z level=info msg="peers changed" new_peers=0d3e537e0714 ts=2024-04-20T11:32:35.540061967Z level=info msg="now listening for http traffic" service=http addr=0.0.0.0:12345 <?xml version="1.0"?> <Container version="2"> <Name>grafana_alloy</Name> <Repository>grafana/alloy:latest</Repository> <Registry/> <Network>bridge</Network> <MyIP/> <Shell>sh</Shell> <Privileged>false</Privileged> <Support/> <Project/> <Overview/> <Category/> <WebUI/> <TemplateURL/> <Icon/> <ExtraParams/> <PostArgs>run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data /etc/alloy/config.alloy</PostArgs> <CPUset/> <DateInstalled>1713615655</DateInstalled> <DonateText/> <DonateLink/> <Requires/> <Config Name="HTTP_PORT" Target="12345" Default="" Mode="tcp" Description="" Type="Port" Display="always" Required="false" Mask="false">12345</Config> <Config Name="config" Target="/etc/alloy/config.alloy" Default="" Mode="rw" Description="" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/apptmp/alloy/config/config.alloy</Config> <Config Name="data" Target="/var/lib/alloy/data" Default="" Mode="rw" Description="" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/apptmp/alloy/data</Config> </Container> Edited April 20 by mbush78 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.