Does Alloy have some way to test a pipeline, just running it one time? This would be very helpful for testing prometheus relabel configs with an SNMP exporter, etc.
My current workflow is to add a live debugging block, set the scrape interval very low, then watch the relabel live debugging webpage and pause it after the first scrape.
I would love to have a “run once” mode like Telegraf has where it just prints all metrics to stdout instead of writing to prometheus.
1 Like
That would be a very cool feature! Ask to have it added on GitHub or mention it in grafana slack alloy channel. Can you use the loki.echo "debug" { }
feature temporarily that prints to console?
What I do is I use vagrant + a simple Ansible playbook to spin up a local VM with alloy preconfigured, and I have several test cases (loki with a temp logs, a couple of simple python scripts for prometheus remote write, profiling, etc) so I can quickly create an Alloy container when I need to.