Fail to create new prometheus-alerts
pavdmyt opened this issue · comments
Running command to create prometheus-alerts fails with the following error:
$ mixtool new prometheus-alerts > my-alerts.jsonnet
2020/09/07 11:24:47 failed to create file : open : no such file or directory
Without output redirect, gives the same error:
$ mixtool new prometheus-alerts
2020/09/07 11:25:07 failed to create file : open : no such file or directory
I've installed mixtool via go get -u github.com/monitoring-mixins/mixtool/cmd/mixtool
, here are some additional details:
$ mixtool -v
mixtool version 0.0.0
$ go version
go version go1.15 darwin/amd64
Hi @pavdmyt - you have to provide a filename for the new mixin. I've open a PR to make the error clearer. Thanks!
Hi @tomwilkie
I've took examples from the readme: https://github.com/monitoring-mixins/mixtool/blob/master/README.md#new-examples
Probably, it should be fixed as well.