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
Developing a new plugin questions #5235
Comments
I wanted to start with an example plugin and create a custom dashboard to display its chart.
but got error. maybe example plugin is not running...? |
The documentation is not very clear on this, so I will keep this as a task to improve it. |
I created a file /etc/netdata/python.d.conf with
and restarted netdata.
but I still get
and I don't see any new charts on main dashboard. |
No, please delete that conf file and do it with The first thing after you restart is to wait for about 10sec and ensure that on the right side you see a submenu called |
Ok. Thanks. Looks like I got python.d example plugin working and a view to see its chart. Now I am trying to create a similar example plugin for node.d and a view for its sample chart. Unfortunately instructions do not show code for a complete plugin leaving out info on chart creation, updating.. and code looks quite different from python example. So I looked at other node.d plugins available and tried to reuse code from them. However after installing this plugin Can someone please take a look at foo plugin and let me know why it is not working?
|
We would like to obsolete the node.d plugin at some point in the future. Is it really difficult for you to work with python? In any case, the precise instructions are here. You will notice after reading them, that you haven't even put it in the right directory, so the node.d module orchestrator doesn't know anything about it. |
Well I would prefer to code it in ruby which is my favorite, but javascript is second best. |
Still having a few starting problems :) |
Also I am not sure how to enable an existing nginx plugin.
to /etc/nginx/sites-enabled/default set
in /etc/netdata/python.d.conf |
Hi @bitcoiners python.d.plugin has debug mode
run it as |
http://localhost/stub_status
/usr/share/netdata/web/stub_status: No such file or directory |
@bitcoiners sorry, i am a little bit lost, what are you trying to achieve? Configure nginx stub_status? write a node.d module? python module? |
I am trying to create a new python plugin, it will be similar to nginx plugin, so I am trying to enable it too. |
So here is the latest. Still having a few starting problems :) |
chart nodeos.random does not show up in http://localhost:19999/api/v1/charts EXPAND
|
chek error.log - |
nothing 'nodeos' in the log
|
i am not sure why it is not working for you. what i did:
i see |
I do not see example2.random chart in http://localhost:19999/api/v1/charts or on main dashboard |
do you see it on the dashboard |
check i suggest
post here grep result (using collapsible markdown syntax) |
Done. result below EXPAND
|
It looks like this is not full output. Anyway i don't see i think you have 2 installations or something you did
from the ouput i see
|
Ok. How do I uninstall this one? I have netdata .deb installed and may have another installation from install script. |
where did you get it? |
sudo apt install netdata |
Ok, remove it via apt. I think you got what the problem is. |
ok. looks like I got it to work :) |
I am developing a new netdata plugin (likely node.d) and have a few questions getting started.
How to check what plugins are currently running in netdata service? Want to make sure my plugin was correctly installed and enabled.
How to debug a node.d plugin? (need to be able to set breakpoints and step through code)
How to add runtime requirements for a node.d plugin? Need to add packages like node-datetime.
The text was updated successfully, but these errors were encountered: