snapcraft.yaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. name: netdata # you probably want to 'snapcraft register <name>'
  2. base: core22 # the base snap is the execution environment for this snap
  3. version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
  4. summary: Netdata Agent
  5. description: |
  6. Netdata is distributed, real-time, performance and health monitoring for
  7. systems and applications. It provides insights of everything happening on the
  8. systems it runs using interactive web dashboards.
  9. grade: devel # must be 'stable' to release into candidate/stable channels
  10. confinement: strict # use 'strict' once you have the right plugs and slots
  11. layout:
  12. /opt/netdata/bin:
  13. symlink: $SNAP/opt/netdata/bin
  14. /opt/netdata/etc:
  15. symlink: $SNAP_COMMON/etc
  16. /opt/netdata/share:
  17. symlink: $SNAP/opt/netdata/share
  18. /opt/netdata/usr:
  19. symlink: $SNAP/opt/netdata/usr
  20. /opt/netdata/var:
  21. symlink: $SNAP_DATA/var
  22. parts:
  23. netdata:
  24. plugin: nil
  25. build-packages:
  26. - wget
  27. override-pull: |
  28. wget https://get.netdata.cloud/kickstart.sh
  29. override-build: |
  30. sh ./kickstart.sh --static-only --dont-start-it
  31. mkdir -p $SNAPCRAFT_PART_INSTALL/opt
  32. mv /opt/netdata $SNAPCRAFT_PART_INSTALL/opt/netdata
  33. stage-packages:
  34. - wget
  35. prime:
  36. - -opt/netdata/var/cache/netdata/.keep
  37. - -opt/netdata/var/lib/netdata/.keep
  38. - -opt/netdata/var/log/netdata/.keep
  39. apps:
  40. agent:
  41. command: opt/netdata/bin/netdata -u root -P /opt/netdata/var/run/netdata.pid -D
  42. daemon: simple
  43. plugs:
  44. - docker-support
  45. - kubernetes-support
  46. - login-session-observe
  47. - mount-observe
  48. - network-observe
  49. - network-setup-observe
  50. - network
  51. - network-bind
  52. - system-observe
  53. claim:
  54. command: opt/netdata/bin/netdata-claim.sh
  55. plugs:
  56. - network
  57. cli:
  58. command: opt/netdata/bin/netdatacli
  59. log2journal:
  60. command: opt/netdata/bin/log2journal
  61. systemd-cat-native:
  62. command: opt/netdata/bin/systemd-cat-native