Closed
Description
What's wrong?
Hey there,
awesome that we got a validate cli recently... I ran it against our config.alloy
and noticed, possibly, a bug with livedebugging
:
root@0c10545b76af:/home/alloy# alloy validate config.alloy
Error: configmap.alloy:1:1: component "livedebugging" must have a label
1 | livedebugging {
| ^^^^^^^^^^^^^
2 | enabled = true
Error: configmap.alloy:1:1: cannot find the definition of component name "livedebugging"
1 | livedebugging {
| ^^^^^^^^^^^^^
2 | enabled = true
Error: validation failed
Steps to reproduce
- create a
config.alloy
with:
livedebugging {
enabled = true
}
docker run grafana/alloy:v1.9.0
export ALLOY_CONTAINER=$(docker ps | grep alloy | awk '{print$1}')
docker cp config.alloy $ALLOY_CONTAINER:/home/alloy/config.alloy
docker exec -it $ALLOY_CONTAINER /bin/bash
alloy validate /home/alloy/config.alloy
I also tried with --stability-level=experimental
as I wasn't sure whether livedebugging
is now GA:
alloy validate --stability.level=experimental config.alloy
Error: configmap.alloy:1:1: component "livedebugging" must have a label
1 | livedebugging {
| ^^^^^^^^^^^^^
2 | enabled = true
Error: configmap.alloy:1:1: cannot find the definition of component name "livedebugging"
1 | livedebugging {
| ^^^^^^^^^^^^^
2 | enabled = true
Error: validation failed
With the same result. After removing the livedebugging
block the validation succeeded.
System information
irrelevant
Software version
v1.9.0
Configuration
Logs