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

default config file doesn't work #1

Open
stuxboulot opened this issue Apr 8, 2019 · 1 comment · May be fixed by #3
Open

default config file doesn't work #1

stuxboulot opened this issue Apr 8, 2019 · 1 comment · May be fixed by #3

Comments

@stuxboulot
Copy link

Hi,

When i test this component, i have this error :
./grafana-annotation -verbose -data testjio -what "blabla" -tag test
grafana-annotation 2019/04/08 11:07:32 [CRIT] ▶ Unable to open configuration file.Get err #open ~/.grafana-anotation-poster.yml: no such file or directory

But this command work :
./grafana-annotation -config-file ~/.grafana-anotation-poster.yml -verbose -data testjio -what "blabla" -tag test
grafana-annotation 2019/04/08 11:07:55 [DEBU] ▶ new annotation with blabla 1554714475 [test] testjio
grafana-annotation 2019/04/08 11:07:55 [DEBU] ▶ {"what":"blabla","tags":["test"],"when":1554714475,"data":"testjio"}
grafana-annotation 2019/04/08 11:07:55 [DEBU] ▶ http://itc-mut-doc01.mut.parimutuel.local:31471/api/annotations/graphite
grafana-annotation 2019/04/08 11:07:56 [INFO] ▶ response Status:200 OK
grafana-annotation 2019/04/08 11:07:56 [INFO] ▶ response Headers:map[Content-Type:[application/json] Date:[Mon, 08 Apr 2019 09:09:39 GMT] Content-Length:[39]]
grafana-annotation 2019/04/08 11:07:56 [CRIT] ▶ error sending annotation. Message is Graphite annotation added

The default config file doesn't work.

stuxboulot added a commit to stuxboulot/grafana-annotation that referenced this issue Apr 8, 2019
Fix ContentSquare#1 and ContentSquare#2
build default config path from user.path
Change message logs verbosity
@stuxboulot stuxboulot linked a pull request Apr 8, 2019 that will close this issue
@vfoucault
Copy link
Contributor

Good on, Your PR seems good for this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants