So I followed these instructions and enabled the default memstats:
app1:
name : 'myappname'
url : 'http://127.0.0.1:8080/debug/vars'
collect_memstats: true
However, if I go to my war room and try to add one of these application specific metrics, I cannot find anything that might indicate it refers to these enabled memstats. But it is a very long list already, so maybe I miss them because I have no idea what to look for?
Yes! Now I see them immediately, did not even have to search.
No idea why I did not see these before… Pretty sure I even did a search on the page. Maybe it takes a while to become visible? Maybe it needed a reboot (did that a few times before, but maybe not after solving the parsing problem)?
@OdysLam: I think you missed that the go_expvar.conf is now parsed correcly? If I run it in debug mode then I continues showing values until I terminate it. So I guess that part works?
From the debug and your chart, for some reason the go collector has trouble loading the go_expvar.conf file. Can you check that you are using the correct syntax and form as we define it in the documentation (I think that the default configuration file should indicate the correct form).
Thanks for bearing with us! We are getting to the bottom of it!
search for a context of interest eg expvar.runtime.goroutines
I exposed the default memstats of my Golang app by including _ "expvar". This results in /debug/vars to return a json with memstats. This works as expected locally on the server commandline with curl.
Within netdata I cannot find any of these custom memory metrics. Not by accessing the agent (:19999) and neither in the cloud. However, no idea if I am looking for the right thing. The long list of data is a rather overwhelming. I hoped memstats.* would be a good start, or expvars.*, but seems not.
I assume the agent that I installed on my VM forwards the data? Is there a way to check if that works correctly?
@Fringe are you seeking for these metrics on the agent or on Cloud?
If on Cloud, you can go to the single node view or add metrics to the nodes table (search for a context of interest eg expvar.runtime.goroutines)