You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2013-2017 OpenWrt.org
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=prometheus-node-exporter-lua
  6. PKG_VERSION:=2017.05.07
  7. PKG_RELEASE:=1
  8. PKG_MAINTAINER:=Christian Simon <simon@swine.de>
  9. PKG_LICENSE:=Apache-2.0
  10. include $(INCLUDE_DIR)/package.mk
  11. define Package/prometheus-node-exporter-lua
  12. SECTION:=utils
  13. CATEGORY:=Utilities
  14. TITLE:=Provides system statistics as Prometheus scraping endpoint
  15. DEPENDS:=+luasocket
  16. URL:=https://github.com/rbo/openwrt_exporter
  17. PKGARCH:=all
  18. endef
  19. define Package/prometheus-node-exporter-lua/conffiles
  20. /etc/config/prometheus-node-exporter-lua
  21. endef
  22. define Package/prometheus-node-exporter-lua/description
  23. Provides node metrics as Prometheus scraping endpoint.
  24. This service is a lightweight rewrite in LUA of the offical Prometheus node_exporter.
  25. endef
  26. Build/Compile=
  27. define Package/prometheus-node-exporter-lua/install
  28. $(INSTALL_DIR) $(1)/etc/config
  29. $(INSTALL_CONF) ./files/etc/config/prometheus-node-exporter-lua $(1)/etc/config/prometheus-node-exporter-lua
  30. $(INSTALL_DIR) $(1)/etc/init.d
  31. $(INSTALL_BIN) ./files/etc/init.d/prometheus-node-exporter-lua $(1)/etc/init.d/prometheus-node-exporter-lua
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) ./files/usr/bin/prometheus-node-exporter-lua $(1)/usr/bin/prometheus-node-exporter-lua
  34. endef
  35. $(eval $(call BuildPackage,prometheus-node-exporter-lua))