1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-13 19:03:52 +02:00
openwrt-packages/utils/prometheus/Makefile
Paul Spooren 08ba430c7d prometheus: bump to 2.22.0
As announced in the 2.21.0 release notes, the experimental gRPC API v2
has been removed.

[CHANGE] web: Remove APIv2. #7935
[ENHANCEMENT] React UI: Implement missing TSDB head stats section. #7876
[ENHANCEMENT] UI: Add Collapse all button to targets page. #6957
[ENHANCEMENT] UI: Clarify alert state toggle via checkbox icon. #7936
[ENHANCEMENT] Add rule_group_last_evaluation_samples and
    prometheus_tsdb_data_replay_duration_seconds metrics. #7737 #7977
[ENHANCEMENT] Gracefully handle unknown WAL record types. #8004
[ENHANCEMENT] Issue a warning for 64 bit systems running 32 bit
    binaries. #8012
[BUGFIX] Adjust scrape timestamps to align them to the intended
    schedule, effectively reducing block size. Workaround for a regression
    in go1.14+. #7976
[BUGFIX] promtool: Ensure alert rules are marked as restored in unit
    tests. #7661
[BUGFIX] Eureka: Fix service discovery when compiled in 32-bit. #7964
[BUGFIX] Don't do literal regex matching optimisation when case
    insensitive. #8013
[BUGFIX] Fix classic UI sometimes running queries for instant query when
    in range query mode. #7984

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-10-18 10:18:53 -10:00

64 lines
1.8 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=prometheus
PKG_VERSION:=2.22.0
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/prometheus/prometheus/tar.gz/v${PKG_VERSION}?
PKG_HASH:=9390cbd338d253956184d0f0a6719d21cb5719f0319fc48ee08d5bd48fc87cc2
PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Paul Spooren <mail@aparcar.org>
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
GO_PKG:=github.com/prometheus/prometheus/
GO_PKG_BUILD_PKG:=github.com/prometheus/prometheus/cmd/prometheus/
GO_PKG_LDFLAGS_X:=\
github.com/prometheus/common/version.Version=v$(PKG_VERSION) \
github.com/prometheus/common/version.Revision=$(PKG_VERSION) \
github.com/prometheus/common/version.Branch="release" \
github.com/prometheus/common/version.BuildUser=openwrt \
github.com/prometheus/common/version.BuildDate=$(SOURCE_DATE_EPOCH)
include $(INCLUDE_DIR)/package.mk
include ../../lang/golang/golang-package.mk
define Package/prometheus/Default
TITLE:=Monitoring system & time series database
USERID:=prometheus=112:prometheus=112
URL:=http://prometheus.io
DEPENDS:=$(GO_ARCH_DEPENDS)
endef
define Package/prometheus
$(call Package/prometheus/Default)
SECTION:=utils
CATEGORY:=Utilities
endef
define Package/prometheus/description
Prometheus, a Cloud Native Computing Foundation project, is a systems and
service monitoring system. It collects metrics from configured targets at given
intervals, evaluates rule expressions, displays the results, and can trigger
alerts if some condition is observed to be true.
endef
define Package/prometheus/install
$(call GoPackage/Package/Install/Bin,$(1))
$(CP) ./files/* $(1)/
endef
define Package/prometheus/conffiles
/etc/prometheus.yml
endef
$(eval $(call GoBinPackage,prometheus))
$(eval $(call BuildPackage,prometheus))