#self-hosting netdata

1 messages · Page 1 of 1 (latest)

limber lynx
#

okay so

#

@lean patrol regarding this #💬general message

#

should it be
destination = 1.2.3.4
or with the port after too?

#

it worked without the port

lean patrol
#

default port is 19999

limber lynx
#

yeah it worked

#

i got the node here now

#

i ran it as a docker container, if i want to run it directly with the script

wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh

lean patrol
#

good, it is pretty easy in fact:

  • create key, enable this key on parent
  • configure the key and dest IP address on children
limber lynx
#

would this script work then?

lean patrol
#

i don't get the question, the script will try to install ND directly on the host

limber lynx
#

yeah, where do i find the stream.conf then?

#

and how do i restart it? is it running as a service?

lean patrol
#

yes, as a service - systemctl restart netdata

limber lynx
#

alright

#

lets try that

#

found it in /etc/netdata

#

now it makes sense for me 🙂

lean patrol
#

you go to /etc/netdata/ or /opt/netdata/etc/netdata/ depends on the distro. /etc/netdata if we have native packages for this system (e.g. debian, ubuntu, centos), and /opt/netdata/etc/netdata/ if we don't - static build would be installed.

limber lynx
#

the docs made it a little more complicated then it was

#

this would not work when its selfhosted or i can't like get into the settings on the dashboard

#

@lean patrol

lean patrol
#

Almost nothing is configured via UI at the moment, you need to use configuration files for everything. We plan to fix it, but for now only terminal + config files.

limber lynx
#

oh alright, if you don't mind do you know how to setup discord alerts?

#

to the webhook

limber lynx
lean patrol
#

no, you need to configure them on the parent instance.

limber lynx
#

lets check

limber lynx
#

what should that be?

#

a channel in discord?

lean patrol
#

I guess that should be a Discord channel name

limber lynx
#

does this look right?

limber lynx
#

do you know what it alerts on? same alerts as on dashboard?

#

sorry, when i did docker-compose down and then up all nodes went gone

#

that should not happend right?

lean patrol
#

what?

limber lynx
#

i restarted the parent netdata

#

and the childs went missing

lean patrol
#

they will reconnect

limber lynx
#

oh alright

#

just takes some time maybe?

lean patrol
#

just in case - make sure you don't delete stream.conf

limber lynx
lean patrol
#

There is something we are missing, just restart can't result in such problem.

limber lynx
#

hmm

#

when i installed on a new it connected

#

lets try restart docker now

limber lynx
#

okay seems to be fixed

#

👍

limber lynx
#

this is quite easy when you just understand first time

#

can i get it so it alerts if any node go offline? @lean patrol

lean patrol
#

You can have "Unreachable node" notification if connected to the Netdata cloud. You need just to connect the parent instance.

limber lynx
#

or just one?

#

like would all show up or only parent?

#

@lean patrol also sorry if i seems stupid but how would the best way be to add it to netdata cloud?

lean patrol
#

open the parent dashboard and check top right corner

#

sing-in => Connect to netdata

limber lynx
#

yeah

lean patrol
#

only the parent

limber lynx
#

should i run that in netdata vm?

lean patrol
#

yes

limber lynx
#

woah it worked

#

would it not be better to add the discord alerts thru here now instead?

#

@lean patrol

#

or does it not matter?

#

and how do i add Unreachable node notification?

lean patrol
#

bottof left corner click on your profile and go to Notifications

#

there you configure notifications per space - alerts/unreachable/alerts + uncreachable

limber lynx
#

yeah

#

done

lean patrol
#

well there are 2 options: Netdata parent sends notifications (that is what you did) or ND cloud sends them (less avialable notification methods but we try to add more)

limber lynx
#

ND cloud do support discord so that would work

limber lynx
#

Worked thanks @lean patrol

lean patrol
#

Great! It was fast - from " I am new with netdata" to configuring streaming and connecting to Cloud 😸

limber lynx
#

Is there anything else you would do?

lean patrol
#

nah just explore Netdata

limber lynx
#

Alright

lean patrol
#

we recently added system journal plugin, check https://www.youtube.com/watch?v=-PLUjVXwC4Q

📜 Read the detailed documentation of our new Function here:
https://learn.netdata.cloud/docs/data-collection/systemd-journal

🔎 Check out this new Function live at our demo space!!
https://app.netdata.cloud/spaces/netdata-demo/

The systemd journal plugin by Netdata makes viewing, exploring and analyzing systemd journal logs simple and efficient...

▶ Play video
limber lynx
#

one more question, its not secured with SSL as its local but its connected to cloud. that be fine right?

lean patrol
#

but it is not available in Docker now, will be soon

limber lynx
#

i am not using docker, i changed

lean patrol
#

Netdata-Cloud connection is secure

limber lynx
#

it worked much better with restarting without docker

lean patrol
#

Netdata-Netdata (streaming) is not without SSL

lean patrol
#

but if that is your local network that not a big problem

#

but anyway with SSL is better but it requires additional configuration on both parent and children

limber lynx
#

There is not like and secrets 🙂

lean patrol
#

also check Function tab

limber lynx
#

alright

#

whats that?

lean patrol
#

when u connected to the Cloud you can see Top-like table with processes

#

for each node

limber lynx
#

yeah

#

nice

lean patrol
#

as i said just explore the UI

limber lynx
#

yep

#

Are you developer of netdata?

lean patrol
#

one of, yes

limber lynx
#

nice job

#

sorry. one more question, why can I have however many nodes I want with parent child but not direct to cloud? @lean patrol

lean patrol
#

can you rephrase?

limber lynx
#

ehh

#

okay so

#

if i want to add nodes to the cloud without doing the parent and child streaming, there is a maximum of 5 active nodes right?

#

why can I have ”unlimited” nodes with the parent child streaming?

lean patrol
limber lynx
#

ah alright, nevermind just wanted to ask

lean patrol
#

I see, you are right. Parent-child is open-source Agent only, hence the unlimited number of nodes (but it requires parent/child). Also cloudless setup is limited in the number of features - for instance Functions don't work. Also we are working on configuring Agents through UI - this will be Cloud only feature too at least in the beginning. ND Cloud doesn't store your data (Agents store it locally), it is mainly for accessing your nodes from any place + additional features (that can't be on Agents because require authentication, etc)

#

But I am not the best person to answer such question because I am just one of developer of Netdata Agent. Ask in #💬general about Cloud stuff