deploy.yaml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. - &linux
  2. id: deploy-linux-generic
  3. meta: &linux_meta
  4. name: Linux
  5. link: ''
  6. categories:
  7. - deploy.operating-systems
  8. icon_filename: 'linux.png'
  9. keywords:
  10. - linux
  11. most_popular: true
  12. install_description: 'Run the following command on your node to install and claim Netdata:'
  13. methods:
  14. - &ks_wget
  15. method: wget
  16. commands:
  17. - channel: nightly
  18. command: >
  19. wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh
  20. --nightly-channel{% if $showClaimingOptions %} --claim-token {% claim_token %} --claim-rooms {% $claim_rooms %} --claim-url {% claim_url %}{% /if %}
  21. - channel: stable
  22. command: >
  23. wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh
  24. --stable-channel{% if $showClaimingOptions %} --claim-token {% claim_token %} --claim-rooms {% $claim_rooms %} --claim-url {% claim_url %}{% /if %}
  25. - &ks_curl
  26. method: curl
  27. commands:
  28. - channel: nightly
  29. command: >
  30. curl https://my-netdata.io/kickstart.sh > /tmp/netdata-kickstart.sh && sh /tmp/netdata-kickstart.sh
  31. --nightly-channel{% if $showClaimingOptions %} --claim-token {% claim_token %} --claim-rooms {% $claim_rooms %} --claim-url {% claim_url %}{% /if %}
  32. - channel: stable
  33. command: >
  34. curl https://my-netdata.io/kickstart.sh > /tmp/netdata-kickstart.sh && sh /tmp/netdata-kickstart.sh
  35. --stable-channel{% if $showClaimingOptions %} --claim-token {% claim_token %} --claim-rooms {% $claim_rooms %} --claim-url {% claim_url %}{% /if %}
  36. additional_info: &ref_containers >
  37. Did you know you can also deploy Netdata on your OS using {% goToCategory navigateToSettings=$navigateToSettings categoryId="deploy.docker-kubernetes" %}Kubernetes{% /goToCategory %} or {% goToCategory categoryId="deploy.docker-kubernetes" %}Docker{% /goToCategory %}?
  38. related_resources: {}
  39. platform_info:
  40. group: ''
  41. distro: ''
  42. quick_start: 1
  43. - <<: *linux
  44. id: deploy-ubuntu
  45. meta:
  46. <<: *linux_meta
  47. name: Ubuntu
  48. link: https://ubuntu.com/
  49. icon_filename: 'ubuntu.png'
  50. most_popular: false
  51. platform_info:
  52. group: 'include'
  53. distro: 'ubuntu'
  54. quick_start: -1
  55. - <<: *linux
  56. id: deploy-debian
  57. meta:
  58. <<: *linux_meta
  59. name: Debian
  60. link: https://www.debian.org/
  61. icon_filename: 'debian.svg'
  62. most_popular: false
  63. platform_info:
  64. group: 'include'
  65. distro: 'debian'
  66. quick_start: -1
  67. - <<: *linux
  68. id: deploy-fedora
  69. meta:
  70. <<: *linux_meta
  71. name: Fedora
  72. link: https://www.fedoraproject.org/
  73. icon_filename: 'fedora.png'
  74. most_popular: false
  75. platform_info:
  76. group: 'include'
  77. distro: 'fedora'
  78. quick_start: -1
  79. - <<: *linux
  80. id: deploy-rhel
  81. meta:
  82. <<: *linux_meta
  83. name: Red Hat Enterprise Linux
  84. link: https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux
  85. icon_filename: 'rhel.png'
  86. most_popular: false
  87. platform_info:
  88. group: 'include'
  89. distro: 'rhel'
  90. quick_start: -1
  91. - <<: *linux
  92. id: deploy-rockylinux
  93. meta:
  94. <<: *linux_meta
  95. name: Rocky Linux
  96. link: https://rockylinux.org/
  97. icon_filename: 'rocky.svg'
  98. most_popular: false
  99. platform_info:
  100. group: 'include'
  101. distro: 'rockylinux'
  102. quick_start: -1
  103. - <<: *linux
  104. id: deploy-alpinelinux
  105. meta:
  106. <<: *linux_meta
  107. name: Alpine Linux
  108. link: https://www.alpinelinux.org/
  109. icon_filename: 'alpine.svg'
  110. most_popular: false
  111. platform_info:
  112. group: 'include'
  113. distro: 'alpinelinux'
  114. quick_start: -1
  115. - <<: *linux
  116. id: deploy-amazonlinux
  117. meta:
  118. <<: *linux_meta
  119. name: Amazon Linux
  120. link: https://aws.amazon.com/amazon-linux-2/
  121. icon_filename: 'amazonlinux.png'
  122. most_popular: false
  123. platform_info:
  124. group: 'include'
  125. distro: 'amazonlinux'
  126. quick_start: -1
  127. - <<: *linux
  128. id: deploy-archlinux
  129. meta:
  130. <<: *linux_meta
  131. name: Arch Linux
  132. link: https://archlinux.org/
  133. icon_filename: 'archlinux.png'
  134. most_popular: false
  135. platform_info:
  136. group: 'include'
  137. distro: 'archlinux'
  138. quick_start: -1
  139. - <<: *linux
  140. id: deploy-centos
  141. meta:
  142. <<: *linux_meta
  143. name: CentOS
  144. link: https://www.centos.org/
  145. icon_filename: 'centos.png'
  146. most_popular: false
  147. platform_info:
  148. group: 'include'
  149. distro: 'centos'
  150. quick_start: -1
  151. - <<: *linux
  152. id: deploy-manjarolinux
  153. meta:
  154. <<: *linux_meta
  155. name: Manjaro Linux
  156. link: https://manjaro.org/
  157. icon_filename: 'manjaro.png'
  158. most_popular: false
  159. platform_info:
  160. group: 'include'
  161. distro: 'archlinux'
  162. quick_start: -1
  163. - <<: *linux
  164. id: deploy-oraclelinux
  165. meta:
  166. <<: *linux_meta
  167. name: Oracle Linux
  168. link: https://www.oracle.com/linux/
  169. icon_filename: 'oraclelinux.svg'
  170. most_popular: false
  171. platform_info:
  172. group: 'include'
  173. distro: 'oraclelinux'
  174. quick_start: -1
  175. - <<: *linux
  176. id: deploy-opensuse
  177. meta:
  178. <<: *linux_meta
  179. name: SUSE Linux
  180. link: https://www.suse.com/
  181. icon_filename: 'openSUSE.png'
  182. most_popular: false
  183. platform_info:
  184. group: 'include'
  185. distro: 'opensuse'
  186. quick_start: -1
  187. - id: deploy-macos
  188. meta:
  189. name: macOS
  190. link: ''
  191. categories:
  192. - deploy.operating-systems
  193. icon_filename: 'apple.svg'
  194. most_popular: true
  195. keywords:
  196. - macOS
  197. - mac
  198. - apple
  199. install_description: 'Run the following command on your Intel based OSX, macOS servers to install and claim Netdata:'
  200. methods:
  201. - *ks_curl
  202. additional_info: *ref_containers
  203. related_resources: {}
  204. platform_info:
  205. group: 'include'
  206. distro: 'macos'
  207. quick_start: 5
  208. - id: deploy-docker
  209. meta:
  210. name: Docker
  211. link: 'https://www.docker.com/'
  212. categories:
  213. - deploy.docker-kubernetes
  214. icon_filename: 'docker.svg'
  215. most_popular: true
  216. keywords:
  217. - docker
  218. - container
  219. - containers
  220. install_description: |
  221. Install and connect new Docker containers
  222. Find the commands for `docker run`, `docker compose` or `Docker Swarm`. On the last two you can copy the configs, then run `docker-compose up -d` in the same directory as the `docker-compose.yml`
  223. > Netdata container requires different privileges and mounts to provide functionality similar to that provided by Netdata installed on the host. More info [here](https://learn.netdata.cloud/docs/installing/docker?_gl=1*f2xcnf*_ga*MTI1MTUwMzU0OS4xNjg2NjM1MDA1*_ga_J69Z2JCTFB*MTY5MDMxMDIyMS40MS4xLjE2OTAzMTAzNjkuNTguMC4w#create-a-new-netdata-agent-container)
  224. > Netdata will use the hostname from the container in which it is run instead of that of the host system. To change the default hostname check [here](https://learn.netdata.cloud/docs/agent/packaging/docker?_gl=1*i5weve*_ga*MTI1MTUwMzU0OS4xNjg2NjM1MDA1*_ga_J69Z2JCTFB*MTY5MDMxMjM4Ny40Mi4xLjE2OTAzMTIzOTAuNTcuMC4w#change-the-default-hostname)
  225. methods:
  226. - method: Docker CLI
  227. commands:
  228. - channel: nightly
  229. command: |
  230. docker run -d --name=netdata \
  231. --pid=host \
  232. --network=host \
  233. -v netdataconfig:/etc/netdata \
  234. -v netdatalib:/var/lib/netdata \
  235. -v netdatacache:/var/cache/netdata \
  236. -v /etc/passwd:/host/etc/passwd:ro \
  237. -v /etc/group:/host/etc/group:ro \
  238. -v /proc:/host/proc:ro \
  239. -v /sys:/host/sys:ro \
  240. -v /etc/os-release:/host/etc/os-release:ro \
  241. -v /var/run/docker.sock:/var/run/docker.sock:ro \
  242. --restart unless-stopped \
  243. --cap-add SYS_PTRACE \
  244. --cap-add SYS_ADMIN \
  245. --security-opt apparmor=unconfined \
  246. {% if $showClaimingOptions %}
  247. -e NETDATA_CLAIM_TOKEN={% claim_token %} \
  248. -e NETDATA_CLAIM_URL={% claim_url %} \
  249. -e NETDATA_CLAIM_ROOMS={% $claim_rooms %} \
  250. {% /if %}
  251. netdata/netdata:edge
  252. - channel: stable
  253. command: |
  254. docker run -d --name=netdata \
  255. --pid=host \
  256. --network=host \
  257. -v netdataconfig:/etc/netdata \
  258. -v netdatalib:/var/lib/netdata \
  259. -v netdatacache:/var/cache/netdata \
  260. -v /etc/passwd:/host/etc/passwd:ro \
  261. -v /etc/group:/host/etc/group:ro \
  262. -v /proc:/host/proc:ro \
  263. -v /sys:/host/sys:ro \
  264. -v /etc/os-release:/host/etc/os-release:ro \
  265. -v /var/run/docker.sock:/var/run/docker.sock:ro \
  266. --restart unless-stopped \
  267. --cap-add SYS_PTRACE \
  268. --cap-add SYS_ADMIN \
  269. --security-opt apparmor=unconfined \
  270. {% if $showClaimingOptions %}
  271. -e NETDATA_CLAIM_TOKEN={% claim_token %} \
  272. -e NETDATA_CLAIM_URL={% claim_url %} \
  273. -e NETDATA_CLAIM_ROOMS={% $claim_rooms %} \
  274. {% /if %}
  275. netdata/netdata:stable
  276. - method: Docker Compose
  277. commands:
  278. - channel: nightly
  279. command: |
  280. version: '3'
  281. services:
  282. netdata:
  283. image: netdata/netdata:edge
  284. container_name: netdata
  285. pid: host
  286. network_mode: host
  287. restart: unless-stopped
  288. cap_add:
  289. - SYS_PTRACE
  290. - SYS_ADMIN
  291. security_opt:
  292. - apparmor:unconfined
  293. volumes:
  294. - netdataconfig:/etc/netdata
  295. - netdatalib:/var/lib/netdata
  296. - netdatacache:/var/cache/netdata
  297. - /etc/passwd:/host/etc/passwd:ro
  298. - /etc/group:/host/etc/group:ro
  299. - /proc:/host/proc:ro
  300. - /sys:/host/sys:ro
  301. - /etc/os-release:/host/etc/os-release:ro
  302. - /var/run/docker.sock:/var/run/docker.sock:ro
  303. {% if $showClaimingOptions %}
  304. environment:
  305. - NETDATA_CLAIM_TOKEN={% claim_token %}
  306. - NETDATA_CLAIM_URL={% claim_url %}
  307. - NETDATA_CLAIM_ROOMS={% $claim_rooms %}
  308. {% /if %}
  309. volumes:
  310. netdataconfig:
  311. netdatalib:
  312. netdatacache:
  313. - channel: stable
  314. command: |
  315. version: '3'
  316. services:
  317. netdata:
  318. image: netdata/netdata:stable
  319. container_name: netdata
  320. pid: host
  321. network_mode: host
  322. restart: unless-stopped
  323. cap_add:
  324. - SYS_PTRACE
  325. - SYS_ADMIN
  326. security_opt:
  327. - apparmor:unconfined
  328. volumes:
  329. - netdataconfig:/etc/netdata
  330. - netdatalib:/var/lib/netdata
  331. - netdatacache:/var/cache/netdata
  332. - /etc/passwd:/host/etc/passwd:ro
  333. - /etc/group:/host/etc/group:ro
  334. - /proc:/host/proc:ro
  335. - /sys:/host/sys:ro
  336. - /etc/os-release:/host/etc/os-release:ro
  337. - /var/run/docker.sock:/var/run/docker.sock:ro
  338. {% if $showClaimingOptions %}
  339. environment:
  340. - NETDATA_CLAIM_TOKEN={% claim_token %}
  341. - NETDATA_CLAIM_URL={% claim_url %}
  342. - NETDATA_CLAIM_ROOMS={% $claim_rooms %}
  343. {% /if %}
  344. volumes:
  345. netdataconfig:
  346. netdatalib:
  347. netdatacache:
  348. - method: Docker Swarm
  349. commands:
  350. - channel: nightly
  351. command: |
  352. version: '3'
  353. services:
  354. netdata:
  355. image: netdata/netdata:edge
  356. container_name: netdata
  357. ports:
  358. - 19999:19999
  359. restart: unless-stopped
  360. cap_add:
  361. - SYS_PTRACE
  362. security_opt:
  363. - apparmor:unconfined
  364. volumes:
  365. - netdataconfig:/etc/netdata
  366. - netdatalib:/var/lib/netdata
  367. - netdatacache:/var/cache/netdata
  368. - /etc/passwd:/host/etc/passwd:ro
  369. - /etc/group:/host/etc/group:ro
  370. - /proc:/host/proc:ro
  371. - /sys:/host/sys:ro
  372. - /etc/os-release:/host/etc/os-release:ro
  373. - /etc/hostname:/etc/hostname:ro
  374. {% if $showClaimingOptions %}
  375. environment:
  376. - NETDATA_CLAIM_TOKEN={% claim_token %}
  377. - NETDATA_CLAIM_URL={% claim_url %}
  378. - NETDATA_CLAIM_ROOMS={% $claim_rooms %}
  379. {% /if %}
  380. deploy:
  381. mode: global
  382. volumes:
  383. netdataconfig:
  384. netdatalib:
  385. netdatacache:
  386. - channel: stable
  387. command: |
  388. version: '3'
  389. services:
  390. netdata:
  391. image: netdata/netdata:stable
  392. container_name: netdata
  393. ports:
  394. - 19999:19999
  395. restart: unless-stopped
  396. cap_add:
  397. - SYS_PTRACE
  398. security_opt:
  399. - apparmor:unconfined
  400. volumes:
  401. - netdataconfig:/etc/netdata
  402. - netdatalib:/var/lib/netdata
  403. - netdatacache:/var/cache/netdata
  404. - /etc/passwd:/host/etc/passwd:ro
  405. - /etc/group:/host/etc/group:ro
  406. - /proc:/host/proc:ro
  407. - /sys:/host/sys:ro
  408. - /etc/os-release:/host/etc/os-release:ro
  409. - /etc/hostname:/etc/hostname:ro
  410. {% if $showClaimingOptions %}
  411. environment:
  412. - NETDATA_CLAIM_TOKEN={% claim_token %}
  413. - NETDATA_CLAIM_URL={% claim_url %}
  414. - NETDATA_CLAIM_ROOMS={% $claim_rooms %}
  415. {% /if %}
  416. deploy:
  417. mode: global
  418. volumes:
  419. netdataconfig:
  420. netdatalib:
  421. netdatacache:
  422. additional_info: ''
  423. related_resources: {}
  424. platform_info:
  425. group: 'no_include'
  426. distro: 'docker'
  427. quick_start: 3
  428. - id: deploy-kubernetes
  429. meta:
  430. name: Kubernetes (Helm)
  431. link: ''
  432. categories:
  433. - deploy.docker-kubernetes
  434. icon_filename: 'kubernetes.svg'
  435. keywords:
  436. - kubernetes
  437. - container
  438. - Orchestrator
  439. install_description: |
  440. **Use helm install to install Netdata on your Kubernetes cluster**
  441. For a new installation use `helm install` or for existing clusters add the content below to your `override.yaml` and then run `helm upgrade -f override.yml netdata netdata/netdata`
  442. methods:
  443. - method: Helm
  444. commands:
  445. - channel: nightly
  446. command: |
  447. helm install netdata netdata/netdata \
  448. --set image.tag=latest{% if $showClaimingOptions %} \
  449. --set parent.claiming.enabled="true" \
  450. --set parent.claiming.token={% claim_token %} \
  451. --set parent.claiming.rooms={% $claim_rooms %} \
  452. --set child.claiming.enabled="true" \
  453. --set child.claiming.token={% claim_token %} \
  454. --set child.claiming.rooms={% $claim_rooms %}{% /if %}
  455. - channel: stable
  456. command: |
  457. helm install netdata netdata/netdata \
  458. --set image.tag=stable{% if $showClaimingOptions %} \
  459. --set parent.claiming.enabled="true" \
  460. --set parent.claiming.token={% claim_token %} \
  461. --set parent.claiming.rooms={% $claim_rooms %} \
  462. --set child.claiming.enabled="true" \
  463. --set child.claiming.token={% claim_token %} \
  464. --set child.claiming.rooms={% $claim_rooms %}{% /if %}
  465. - method: Existing Cluster
  466. commands:
  467. - channel: nightly
  468. command: |
  469. image:
  470. tag: latest
  471. restarter:
  472. enabled: true
  473. {% if $showClaimingOptions %}
  474. parent:
  475. claiming:
  476. enabled: true
  477. token: {% claim_token %}
  478. rooms: {% $claim_rooms %}
  479. child:
  480. claiming:
  481. enabled: true
  482. token: {% claim_token %}
  483. rooms: {% $claim_rooms %}
  484. {% /if %}
  485. - channel: stable
  486. command: |
  487. image:
  488. tag: stable
  489. restarter:
  490. enabled: true
  491. {% if $showClaimingOptions %}
  492. parent:
  493. claiming:
  494. enabled: true
  495. token: {% claim_token %}
  496. rooms: {% $claim_rooms %}
  497. child:
  498. claiming:
  499. enabled: true
  500. token: {% claim_token %}
  501. rooms: {% $claim_rooms %}
  502. {% /if %}
  503. additional_info: ''
  504. related_resources: {}
  505. most_popular: true
  506. platform_info:
  507. group: ''
  508. distro: ''
  509. quick_start: 4
  510. - id: deploy-windows
  511. meta:
  512. name: Windows
  513. link: 'https://www.microsoft.com/en-us/windows'
  514. categories:
  515. - deploy.operating-systems
  516. icon_filename: 'windows.svg'
  517. keywords:
  518. - windows
  519. install_description: |
  520. 1. Install [Windows Exporter](https://github.com/prometheus-community/windows_exporter) on every Windows host you want to monitor.
  521. 2. Install Netdata agent on Linux, FreeBSD or Mac.
  522. 3. Configure Netdata to collect data remotely from your Windows hosts by adding one job per host to windows.conf file. See the [configuration section](https://learn.netdata.cloud/docs/data-collection/monitor-anything/System%20Metrics/Windows-machines#configuration) for details.
  523. 4. Enable [virtual nodes](https://learn.netdata.cloud/docs/data-collection/windows-systems#virtual-nodes) configuration so the windows nodes are displayed as separate nodes.
  524. methods:
  525. - *ks_wget
  526. - *ks_curl
  527. additional_info: ''
  528. related_resources: {}
  529. most_popular: true
  530. platform_info:
  531. group: ''
  532. distro: ''
  533. quick_start: 2
  534. - id: deploy-freebsd
  535. meta:
  536. name: FreeBSD
  537. link: 'https://www.freebsd.org/'
  538. categories:
  539. - deploy.operating-systems
  540. icon_filename: 'freebsd.svg'
  541. most_popular: true
  542. keywords:
  543. - freebsd
  544. install_description: |
  545. ## Install dependencies
  546. Please install the following packages using the command below:
  547. ```pkg install bash e2fsprogs-libuuid git curl autoconf automake pkgconf pidof liblz4 libuv json-c cmake gmake```
  548. This step needs root privileges. Please respond in the affirmative for any relevant prompts during the installation process.
  549. Run the following command on your node to install and claim Netdata:
  550. methods:
  551. - *ks_curl
  552. - method: fetch
  553. commands:
  554. - channel: nightly
  555. command: >
  556. fetch -o /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh
  557. --nightly-channel{% if $showClaimingOptions %} --claim-token {% claim_token %} --claim-rooms {% $claim_rooms %} --claim-url {% claim_url %}{% /if %}
  558. - channel: stable
  559. command: >
  560. fetch -o /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh
  561. --stable-channel{% if $showClaimingOptions %} --claim-token {% claim_token %} --claim-rooms {% $claim_rooms %} --claim-url {% claim_url %}{% /if %}
  562. additional_info: |
  563. Netdata can also be installed via [FreeBSD ports](https://www.freshports.org/net-mgmt/netdata).
  564. related_resources: {}
  565. platform_info:
  566. group: 'include'
  567. distro: 'freebsd'
  568. quick_start: 6