Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option to run avalanche without refreshing values (e.g. let intervals take a value of zero) #27

Closed
sed-i opened this issue Oct 26, 2021 · 1 comment

Comments

@sed-i
Copy link
Contributor

sed-i commented Oct 26, 2021

I would like to run avalanche without it ever refreshing series_id nor __name__ label.
One way to specify this is with an interval value of zero.

$ ./cmd --series-interval=0 --metric-interval=0
panic: non-positive interval for NewTicker

goroutine 1 [running]:
time.NewTicker(0x0, 0xc0001aa500)
        /usr/lib/go-1.13/src/time/tick.go:23 +0x147
github.com/open-fresh/avalanche/metrics.RunMetrics(0xa, 0xa, 0xa, 0x5, 0x5, 0x1e, 0x0, 0x0, 0x0, 0x0, ...)
        /home/ubuntu/go/src/github.com/open-fresh/avalanche/metrics/serve.go:97 +0x64e
main.main()
        /home/ubuntu/go/src/github.com/open-fresh/avalanche/cmd/avalanche.go:44 +0x1a8

https://github.com/open-fresh/avalanche/blob/0c1c64c97f6dc5630ae5c057821cc8e08a12922b/cmd/avalanche.go#L24-L25

https://github.com/open-fresh/avalanche/blob/0c1c64c97f6dc5630ae5c057821cc8e08a12922b/metrics/serve.go#L97-L98

@bwplotka
Copy link
Member

bwplotka commented Oct 1, 2024

Fixed in #80

@bwplotka bwplotka closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants