monitoring-mixins / mixtool

mixtool is a helper for easily working with jsonnet mixins.
Apache License 2.0
139 stars 15 forks source link

Fail to create new prometheus-alerts #11

Closed pavdmyt closed 4 years ago

pavdmyt commented 4 years ago

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
tomwilkie commented 4 years ago

Hi @pavdmyt - you have to provide a filename for the new mixin. I've open a PR to make the error clearer. Thanks!

pavdmyt commented 4 years ago

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.