deploy.yaml 20 KB

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