Project

General

Profile

Feature #23355

Add Netdata service

Added by survive - over 1 year ago. Updated 12 months ago.

Status:
Resolved
Priority:
Expected
Assignee:
Suraj Ravichandran
Category:
OS
Target version:
Estimated time:
Sprint:
Severity:
New
Backlog Priority:
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Description

Hi guys,

One thing I loved about Corral was the Netdata monitoring service. I would love to see that included in 9.10 sometime down the road.

-Will

netdata_settings.png (129 KB) netdata_settings.png Suraj Ravichandran, 06/22/2017 04:45 PM
11559

Related issues

Related to FreeNAS - Feature #25682: Make NetData work again!Closed: Duplicate2017-08-24

Associated revisions

Revision 11525959 (diff)
Added by Suraj Ravichandran over 1 year ago

Migraton to add netdata user and group.

Ticket: #23355

Revision 44527295 (diff)
Added by Suraj Ravichandran over 1 year ago

Add netdata to SERVICE_DEFS dict.

Ticket: #23355

Revision caa76e40 (diff)
Added by Suraj Ravichandran over 1 year ago

Make _simplecmd's generic start/stop/restart routine call _service instead of _system.

This way the options in the kwargs to _simplecmd are also honored.

Ticket: #23355

Revision 1cfe86c2 (diff)
Added by Suraj Ravichandran over 1 year ago

Fix python 2.x print in minio migration.

While here flake8-fy the file.

Ticket: #23355

Revision 6b008c84 (diff)
Added by Suraj Ravichandran over 1 year ago

Add nginx reverse proxy so that one can access netdata via http(s)://freenas_ip/netdata

Ticket: #23355

Revision a8859821 (diff)
Added by Suraj Ravichandran over 1 year ago

Add netdata as a bare (model-less) service.

Add the migration needed to do the above.

Add gui template, icon, and other such bits.

NOTE: This is a checkpoint save for now (the gui landing page still does not work) but one can turn netdata
service on/off from the gui for now. Then to go the netdata gui go to: http(s)://freenas_ip/netdata

Ticket: #23355

Revision 4f249c14 (diff)
Added by Suraj Ravichandran over 1 year ago

Add netdata to Name map in Services.js so that we can Capitalize its starting letter :-P

Ticket: #23355

Revision 3f14740d (diff)
Added by Suraj Ravichandran over 1 year ago

Fix netdata status template.

Ticket: #23355

Revision e1c2de77 (diff)
Added by Suraj Ravichandran over 1 year ago

Ensure that only paths starting with /netdata are sent to the netdata nginx rever proxy.

This preverts freenas_ip/service/netdata from landing on the netdata page.

Ticket: #23355

Revision f04defea (diff)
Added by Suraj Ravichandran over 1 year ago

Add netdata to Name map in Services.js so that we can Capitalize its starting letter :-P

Ticket: #23355

Revision 0f22fecf (diff)
Added by Suraj Ravichandran over 1 year ago

Fix netdata status template.

Ticket: #23355

Revision 31a9c68a (diff)
Added by Suraj Ravichandran over 1 year ago

Ensure that only paths starting with /netdata are sent to the netdata nginx rever proxy.

This preverts freenas_ip/service/netdata from landing on the netdata page.

Ticket: #23355

Revision b61ef7e0 (diff)
Added by Suraj Ravichandran about 1 year ago

Update netdata to 1.7 (pulled in from freebsd-ports master branch)

Ticket: #23355

History

#1 Avatar?id=14398&size=24x24 Updated by Kris Moore over 1 year ago

  • Status changed from Unscreened to Screened
  • Assignee set to Suraj Ravichandran
  • Priority changed from No priority to Expected
  • Target version set to 9.10.4

Dirty little secret - I imported netdata into the 9.10 build a few weeks back ;) We just need to expose the UI knobs to enable and control it. Suraj, that a project you are perhaps up for looking at post 9.10.3?

#2 Updated by Suraj Ravichandran over 1 year ago

I can work on this, if its too much I shall inform you kris.

#3 Updated by survive - over 1 year ago

Hi guys,

Well that's pretty sweet! I just hope I can get the 9.10-nightiles running on this box even more now.

Any tricks to starting it?

-Will

#4 Avatar?id=14398&size=24x24 Updated by Kris Moore over 1 year ago

I haven't looked too closely at firing it up (yet), but there should be a standard /usr/local/etc/rc.d/netdata startup script. I'm pretty sure it'll need some custom args in /etc/rc.conf and probably a nginx reverse proxy entry to localhost as well. If you managed to get it configured before I or Suraj can get to it, please update the ticket with any knobs you set, otherwise hang-tight!

#5 Avatar?id=14398&size=24x24 Updated by Kris Moore over 1 year ago

  • Target version changed from 9.10.4 to 11.1

#6 Updated by Brandon Golway over 1 year ago

Kris Moore wrote:

I haven't looked too closely at firing it up (yet), but there should be a standard /usr/local/etc/rc.d/netdata startup script. I'm pretty sure it'll need some custom args in /etc/rc.conf and probably a nginx reverse proxy entry to localhost as well. If you managed to get it configured before I or Suraj can get to it, please update the ticket with any knobs you set, otherwise hang-tight!

Awesome! I was going to request that this be in 11 since I was the driving force behind getting it integrated in 10 but I figured I'd hold off since you guys have bigger fish to fry.

#7 Updated by survive - over 1 year ago

Hi Brandon & Kris,

I have netdata working but it's all manual with each restart. I had to create the netdata user & group (uid\gid = 302) and fix up /usr/local/etc/netdata/netdata.conf to tell netdata to listen on the system's ip insted of localhost. Then I just run "netdata -P /var/run/netdata.pid" to start it. Not elegant & I have to fix it after each update, but minimal work has netdata working great.

I added the command as a post-init startup script but I don't think it runs on boot, but that could be totally wrong & it didn't run because I had just updated to anew nightly. Don't boot enough to say for sure.

-Will

#8 Updated by Suraj Ravichandran over 1 year ago

  • File netdata_settings.png netdata_settings.png added
  • Status changed from Screened to Needs Developer Review
  • Assignee changed from Suraj Ravichandran to William Grzybowski
  • % Done changed from 0 to 100
11559

Have added netdata as a service (available to toggle on/off or enable/disable at boot from the services tab as a proper freenas service).

It also provides the user with a link to go to the netdata landing page for that freenas box.

We (as a team) have decided to deliberately not provide any configurable knobs/settings for netdata service as yet since we want to add it this way and gauge user feedback from it as well see how much cpu it really consumes (if that 1-2 % is actually true or just marketting, etc)

Attached is a screenshot showing how it looks when you click on the wrench icon of the netdata service as of now.

Starting tmrw it should be available in the nightlies (not adding it to stable untill 11.1 I think)

#9 Updated by William Grzybowski over 1 year ago

  • Status changed from Needs Developer Review to Resolved
  • Assignee changed from William Grzybowski to Suraj Ravichandran

#10 Updated by survive - about 1 year ago

Hi guys,

Netdata got updated & is now at v1.7.0 in the ports tree. Might be worth updating before you expose the GUI controls.

-Will

#11 Updated by Suraj Ravichandran about 1 year ago

Hi survive, I shall take a look at the netdata update, but in the interim can you tell me if anything major has updated in it?

#12 Updated by survive - about 1 year ago

Hi guys,

One other thing with Netdata is its "mynetdata" menu\registry feature which makes a single server a kind of "master browser" that lists your other Netdata servers. Details here:

https://github.com/firehol/netdata/wiki/mynetdata-menu-item

Would it be worth it to add controls for registry stuff? Maybe an advanced menu to enable or join a registry? There are 2 fields on the Netdata config file that control the registry, enabled & address.

I've been running Netdata on 2 filers since I switched over & it runs great, barely uses any CPU. Totally give it 2 thumbs up.

-Will

#13 Updated by survive - about 1 year ago

Hi Suraj,

It does a boatload of ZFS stats now. That's what propmpted me to try it (1.7) on my filers.

More details here:

https://github.com/firehol/netdata/releases

-Will

#14 Updated by Dru Lavigne about 1 year ago

#15 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Netdata in 9.10? to Add Netdata service

#16 Updated by Dru Lavigne about 1 year ago

  • Target version changed from 11.1 to 11.1-BETA1

#17 Updated by survive - 12 months ago

Hi guys,

Just spun up a 11.1 box & found the netdata service.

One thing, there's a new release, 1.8.0 in the ports tree.

here's more info on what's new:

https://github.com/firehol/netdata/releases/tag/v1.8.0

I've been running 1.8.0 on my filers since it was released & it works fine here.

-Will

#18 Updated by Dru Lavigne 12 months ago

Survive: please create a separate ticket asking for the updated version (as this one is already resolved and shipped in BETA1).

#19 Updated by Bonnie Follweiler 12 months ago

  • Needs QA changed from Yes to No
  • QA Status Test Passes FreeNAS added
  • QA Status deleted (Not Tested)

Also available in: Atom PDF