-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[Bug]: Instructions to install netdata from source, are incomplete and confusing. #12427
Comments
@ktsaou Just making sure I understand this: You want us to make it easier for people who do not have experience dealing with building things by hand to build and install Netdata in a way we officially do not provide support for? To clarify a bit further: The only reason we have these documents at all is to make life easier for people who are packaging Netdata (for example, the people who maintain Netdata in the FreeBSD Ports Tree, which is what you should be using on FreeBSD). IOW, this is technical documentation, not user documentation, so while it is out of date, it does not need to be ‘easy’ for a normal user to follow. |
I want our documentation to be accurate and work for our users.
I don't agree this is the only reason. There are many reasons. Top of my mind:
I am sure we can find more use cases.
All our documentation is technical. Our users are technical by nature and they need technical documents. Both of the pages posted above, say a lot, but they are overcomplicated, time consuming to follow and incomplete. |
WE DO NOT OFFICIALLY SUPPORT BUILDING NETDATA BY HAND. We cannot support this sanely because we’ve backed ourselves into a corner with our complicated mess of split repositories and secondary components, and there is no ‘simple’ way to install by hand. Anybody who meets both of the first two categories should be reporting a bug, and probably can’t use the And anybody who falls into the third or fourth categories can be safely assumed to be knowledgeable enough that we do not need to sugarcoat things for them. Our audience here is not normal users, it’s the type of people who are already comfortable with building things from source themselves.
I should probably better clarify what I mean here: This is documentation for package maintainers and Netdata developers, not end-users. We can and should assume a minimum level of actual competence here.
Building Netdata is by it’s very nature complex and time consuming. No matter how well we write our docs, the processes of building and installing by hand will be complex and time consuming. I agree that they are out of date and that does need to be fixed though. |
Thank you. This is what I said in the first place. |
Okay, I just caught up with the thread. While I can update the docs, I can tell you directly: @Ferroin I just saw that you opened a PR for this. Thank you very much! |
@kickoke Actually, I havne’t opened one for this yet, the one you probably saw is adding documentation for how to build the packages using our own package build infrastructure for testing purposes, which is unrelated to this. I should have a PR up for this later today. |
The above can be simplified as:
I am not sure about the implications of |
Another issue with these instructions, is that the source is compiled as |
We can’t avoid that for the |
@DShreve2 This one has gone stale so assigning it to you! If the instructions have been updated recently we can close it, otherwise a PR can be created to reflect the requested changes? |
Bug description
There are quite a few documentation pages on installing netdata from source:
Still the steps are quite simple and straight forward.
sudo su
orsu - root
To become user
root
. You may use any other method to become userroot
and run the following commands.Install
git
to your operating systemDepending on the operating system, a different command may be required.
cd /usr/src
Enter the directory we are going to put the source code of netdata.
git clone https://github.com/netdata/netdata.git netdata.git
Clone the netdata source from github. This will create the directory
netdata.git
.cd netdata.git
Enter the source directory just downloaded.
git submodule update --init --recursive
Download the git submodules required by netdata.
This command is missing from all documentation pages.
./packaging/installer/install-required-packages.sh netdata
Install the required packages (compilers, libraries, etc) to build netdata on this system.
Documentation pages are instructing users to run a network version of it, but it is already in the source tree downloaded.
./netdata-installer.sh
Compile and install netdata. It will also start it.
To claim this netdata and connect it to netdata cloud, the following are also needed:
TOKEN
ROOMS
netdata-claim.sh -token=TOKEN -rooms=ROOMS -url=https://app.netdata.cloud
Replace
TOKEN
andROOMS
with your keys.Expected behavior
Have precise instructions on how to install netdata from source.
Steps to reproduce
Try to install netdata from source, using any of the instructions provided by our documentation.
Installation method
from source
System info
Tested on FreeBSD # uname -a; uname -K FreeBSD freebsd 12.3-RELEASE FreeBSD 12.3-RELEASE r371126 GENERIC amd64 1203000
Netdata build info
Additional info
No response
The text was updated successfully, but these errors were encountered: