Add a port of VictoriaMetrics, fast, cost-effective, and scalable

monitoring solution and time series database.

Based on the work of:	Oleg Ginzburg
This commit is contained in:
Alexey Dokuchaev 2021-04-10 07:20:02 +00:00
parent 88305b6f9b
commit da7851dcc6
10 changed files with 342 additions and 2 deletions

2
GIDs
View File

@ -228,7 +228,7 @@ exaddos:*:285:exaddos
rancid:*:286:
webdis:*:287:
ntopng:*:288:
# free: 289
victoria-metrics:*:289:
# free: 290
# free: 291
# free: 292

2
UIDs
View File

@ -233,7 +233,7 @@ exaddos:*:285:285::0:0:exaddos daemon user:/nonexistent:/usr/sbin/nologin
rancid:*:286:286::0:0:RANCID daemon user:/usr/local/var/rancid:/bin/sh
webdis:*:287:287::0:0:webdis daemon user:/nonexistent:/usr/sbin/nologin
ntopng:*:288:288::0:0:ntopng daemon user:/nonexistent:/usr/sbin/nologin
# free: 289
victoria-metrics:*:289:289::0:0:VictoriaMetrics user:/nonexistent:/usr/sbin/nologin
# free: 290
# free: 291
# free: 292

View File

@ -374,6 +374,7 @@
SUBDIR += unifi-poller
SUBDIR += unifi5
SUBDIR += unifi6
SUBDIR += victoria-metrics
SUBDIR += virt-viewer
SUBDIR += wdiag
SUBDIR += whatmask

View File

@ -0,0 +1,49 @@
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
PORTNAME= victoria-metrics
DISTVERSIONPREFIX= v
DISTVERSION= 1.58.0
CATEGORIES= net-mgmt
MAINTAINER= danfe@FreeBSD.org
COMMENT= Fast, cost-effective, and scalable time series database
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake go:modules,no_targets
USE_RC_SUBR= ${PORTNAME}
MAKE_ENV= PKG_TAG=${DISTVERSIONPREFIX}${DISTVERSION} \
BUILDINFO_TAG=edd1590 GOOS=${OPSYS:tl}
ALL_TARGET= ${PORTNAME}-pure
USE_GITHUB= yes
GH_ACCOUNT= VictoriaMetrics
GH_PROJECT= VictoriaMetrics
.include "${.CURDIR}/Makefile.deps"
USERS= ${PORTNAME}
GROUPS= ${PORTNAME}
VICTORIA_DATA?= /var/db/${PORTNAME}
SUB_LIST+= VICTORIA_DATA=${VICTORIA_DATA} \
VICTORIA_USER=${USERS}
PLIST_SUB+= VICTORIA_DATA=${VICTORIA_DATA} \
VICTORIA_GROUP=${GROUPS} \
VICTORIA_USER=${USERS}
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/bin/${PORTNAME}-pure \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${VICTORIA_DATA}
do-install-DOCS-on:
@cd ${INSTALL_WRKSRC}/docs && ${RM} robots.txt vm*
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${INSTALL_WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,63 @@
# Generated with `make gomod-vendor'
GH_TUPLE= \
VictoriaMetrics:fastcache:v1.5.8:victoriametrics_fastcache/vendor/github.com/VictoriaMetrics/fastcache \
VictoriaMetrics:fasthttp:v1.0.14:victoriametrics_fasthttp/vendor/github.com/VictoriaMetrics/fasthttp \
VictoriaMetrics:metrics:v1.17.2:victoriametrics_metrics/vendor/github.com/VictoriaMetrics/metrics \
VictoriaMetrics:metricsql:v0.14.0:victoriametrics_metricsql/vendor/github.com/VictoriaMetrics/metricsql \
VividCortex:ewma:v1.1.1:vividcortex_ewma/vendor/github.com/VividCortex/ewma \
aws:aws-sdk-go:v1.38.15:aws_aws_sdk_go/vendor/github.com/aws/aws-sdk-go \
beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \
census-instrumentation:opencensus-go:v0.23.0:census_instrumentation_opencensus_go/vendor/go.opencensus.io \
cespare:xxhash:v2.1.1:cespare_xxhash/vendor/github.com/cespare/xxhash/v2 \
cheggaaa:pb:v3.0.7:cheggaaa_pb/vendor/github.com/cheggaaa/pb/v3 \
cpuguy83:go-md2man:v2.0.0:cpuguy83_go_md2man/vendor/github.com/cpuguy83/go-md2man/v2 \
fatih:color:v1.10.0:fatih_color/vendor/github.com/fatih/color \
go-kit:kit:v0.10.0:go_kit_kit/vendor/github.com/go-kit/kit \
go-logfmt:logfmt:v0.5.0:go_logfmt_logfmt/vendor/github.com/go-logfmt/logfmt \
go-yaml:yaml:v2.4.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
golang:appengine:v1.6.7:golang_appengine/vendor/google.golang.org/appengine \
golang:groupcache:41bb18bfe9da:golang_groupcache/vendor/github.com/golang/groupcache \
golang:lint:83fdc39ff7b5:golang_lint/vendor/golang.org/x/lint \
golang:mod:v0.4.2:golang_mod/vendor/golang.org/x/mod \
golang:net:a5a99cb37ef4:golang_net/vendor/golang.org/x/net \
golang:oauth2:2e8d93401602:golang_oauth2/vendor/golang.org/x/oauth2 \
golang:protobuf:v1.5.2:golang_protobuf/vendor/github.com/golang/protobuf \
golang:snappy:v0.0.3:golang_snappy/vendor/github.com/golang/snappy \
golang:sync:036812b2e83c:golang_sync/vendor/golang.org/x/sync \
golang:sys:5e06dd20ab57:golang_sys/vendor/golang.org/x/sys \
golang:text:v0.3.6:golang_text/vendor/golang.org/x/text \
golang:tools:v0.1.0:golang_tools/vendor/golang.org/x/tools \
golang:xerrors:5ec99f83aff1:golang_xerrors/vendor/golang.org/x/xerrors \
google:go-genproto:e86de6bf7a46:google_go_genproto/vendor/google.golang.org/genproto \
googleapis:gax-go:v2.0.5:googleapis_gax_go/vendor/github.com/googleapis/gax-go \
googleapis:google-api-go-client:v0.44.0:googleapis_google_api_go_client/vendor/google.golang.org/api \
googleapis:google-cloud-go:v0.81.0:googleapis_google_cloud_go/vendor/cloud.google.com/go \
googleapis:google-cloud-go:storage/v1.14.0:googleapis_google_cloud_go/vendor/cloud.google.com/go \
grpc:grpc-go:v1.37.0:grpc_grpc_go/vendor/google.golang.org/grpc \
influxdata:influxdb:v1.8.4:influxdata_influxdb/vendor/github.com/influxdata/influxdb \
jmespath:go-jmespath:v0.4.0:jmespath_go_jmespath/vendor/github.com/jmespath/go-jmespath \
jstemmer:go-junit-report:v0.9.1:jstemmer_go_junit_report/vendor/github.com/jstemmer/go-junit-report \
klauspost:compress:v1.11.13:klauspost_compress/vendor/github.com/klauspost/compress \
mattn:go-colorable:v0.1.8:mattn_go_colorable/vendor/github.com/mattn/go-colorable \
mattn:go-isatty:v0.0.12:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
mattn:go-runewidth:v0.0.12:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \
matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \
oklog:ulid:v1.3.1:oklog_ulid/vendor/github.com/oklog/ulid \
pkg:errors:v0.9.1:pkg_errors/vendor/github.com/pkg/errors \
prometheus:client_golang:v1.10.0:prometheus_client_golang/vendor/github.com/prometheus/client_golang \
prometheus:client_model:v0.2.0:prometheus_client_model/vendor/github.com/prometheus/client_model \
prometheus:common:v0.20.0:prometheus_common/vendor/github.com/prometheus/common \
prometheus:procfs:v0.6.0:prometheus_procfs/vendor/github.com/prometheus/procfs \
prometheus:prometheus:3ad25a6dc3d9:prometheus_prometheus/vendor/github.com/prometheus/prometheus \
protocolbuffers:protobuf-go:v1.26.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \
rivo:uniseg:v0.2.0:rivo_uniseg/vendor/github.com/rivo/uniseg \
russross:blackfriday:v2.1.0:russross_blackfriday/vendor/github.com/russross/blackfriday/v2 \
uber-go:atomic:v1.7.0:uber_go_atomic/vendor/go.uber.org/atomic \
urfave:cli:v2.3.0:urfave_cli/vendor/github.com/urfave/cli/v2 \
valyala:bytebufferpool:v1.0.0:valyala_bytebufferpool/vendor/github.com/valyala/bytebufferpool \
valyala:fastjson:v1.6.3:valyala_fastjson/vendor/github.com/valyala/fastjson \
valyala:fastrand:v1.0.0:valyala_fastrand/vendor/github.com/valyala/fastrand \
valyala:fasttemplate:v1.2.1:valyala_fasttemplate/vendor/github.com/valyala/fasttemplate \
valyala:gozstd:v1.9.0:valyala_gozstd/vendor/github.com/valyala/gozstd \
valyala:histogram:v1.1.2:valyala_histogram/vendor/github.com/valyala/histogram \
valyala:quicktemplate:v1.6.3:valyala_quicktemplate/vendor/github.com/valyala/quicktemplate

View File

@ -0,0 +1,122 @@
SHA256 (VictoriaMetrics-VictoriaMetrics-v1.58.0_GH0.tar.gz) = 21ea23788ac7b683d9d1f2788de7001699fcf440b0c3d0e877596f5d09143c5f
SIZE (VictoriaMetrics-VictoriaMetrics-v1.58.0_GH0.tar.gz) = 10768570
SHA256 (VictoriaMetrics-fastcache-v1.5.8_GH0.tar.gz) = 88debdec911d74a5a0a31cc3e6d4c5b5a27f16716520a0984867ee1b23aa9a75
SIZE (VictoriaMetrics-fastcache-v1.5.8_GH0.tar.gz) = 61655
SHA256 (VictoriaMetrics-fasthttp-v1.0.14_GH0.tar.gz) = c43cc96e8cb8366bc54a37a03acbfcc27cc3eb00d2b5d5cb7ad87a58c52bc4ab
SIZE (VictoriaMetrics-fasthttp-v1.0.14_GH0.tar.gz) = 199944
SHA256 (VictoriaMetrics-metrics-v1.17.2_GH0.tar.gz) = 14f73524e59841189f4bff890f7d88ce6a5afbe408b63092cbba44e3e748fee8
SIZE (VictoriaMetrics-metrics-v1.17.2_GH0.tar.gz) = 25853
SHA256 (VictoriaMetrics-metricsql-v0.14.0_GH0.tar.gz) = 9c1d140a4645c25e01dbea9a680a961cdd5e5104cdee8ba8bd4498dd268fc636
SIZE (VictoriaMetrics-metricsql-v0.14.0_GH0.tar.gz) = 47472
SHA256 (VividCortex-ewma-v1.1.1_GH0.tar.gz) = 3b2d62412b7ba2726a379cc0ae557595c027dc8206d0ef98f13831281b8f2b85
SIZE (VividCortex-ewma-v1.1.1_GH0.tar.gz) = 6042
SHA256 (aws-aws-sdk-go-v1.38.15_GH0.tar.gz) = bfce2e59eda22e16db729daa4cea5cb454cc4d645e78bbfc26183f56e645086b
SIZE (aws-aws-sdk-go-v1.38.15_GH0.tar.gz) = 18739846
SHA256 (beorn7-perks-v1.0.1_GH0.tar.gz) = 98db84bb0224a26094e6adba91b7ee7a1a7ace28cb648d818f8e779e6a19f825
SIZE (beorn7-perks-v1.0.1_GH0.tar.gz) = 10867
SHA256 (census-instrumentation-opencensus-go-v0.23.0_GH0.tar.gz) = cc9dc0234de1baacf1855cf19615b381ca2f2adb83a2871e7a9b8b74e46818cf
SIZE (census-instrumentation-opencensus-go-v0.23.0_GH0.tar.gz) = 176498
SHA256 (cespare-xxhash-v2.1.1_GH0.tar.gz) = 0ee31178d2c5a1249be4e26294a2f428008dc4e1ecbbfbe47f74e41026df1148
SIZE (cespare-xxhash-v2.1.1_GH0.tar.gz) = 9292
SHA256 (cheggaaa-pb-v3.0.7_GH0.tar.gz) = 677c2f921d59cb81e6e9a39b2c7e7414f831ad88815c1650a18dc40180450904
SIZE (cheggaaa-pb-v3.0.7_GH0.tar.gz) = 31086
SHA256 (cpuguy83-go-md2man-v2.0.0_GH0.tar.gz) = 50537880d42fc28b9c2e9aaa36b137349d43cc73d46436a499f8c928cd2fc576
SIZE (cpuguy83-go-md2man-v2.0.0_GH0.tar.gz) = 52021
SHA256 (fatih-color-v1.10.0_GH0.tar.gz) = a00342a7ffb8b119346dce56e152a111cbb9eab3970c429cc2ed4272aec2858e
SIZE (fatih-color-v1.10.0_GH0.tar.gz) = 1267532
SHA256 (go-kit-kit-v0.10.0_GH0.tar.gz) = c0fac2e37b981e4c18e4f210b92e1393bd59dadd7c7fc043ec46d1c9834eba85
SIZE (go-kit-kit-v0.10.0_GH0.tar.gz) = 274801
SHA256 (go-logfmt-logfmt-v0.5.0_GH0.tar.gz) = 76727000951c187d058289d8e83d3e2ad480a5d44c7c83b025b78b7eb6bf0258
SIZE (go-logfmt-logfmt-v0.5.0_GH0.tar.gz) = 11745
SHA256 (go-yaml-yaml-v2.4.0_GH0.tar.gz) = d8e94679e5fff6bd1a35e10241543929a5f3da44f701755babf99b3daf0faac0
SIZE (go-yaml-yaml-v2.4.0_GH0.tar.gz) = 73209
SHA256 (golang-appengine-v1.6.7_GH0.tar.gz) = c623d81235f7c9699e299b328191d813337dd57dcc800d7afdb5130e8c321a8f
SIZE (golang-appengine-v1.6.7_GH0.tar.gz) = 333007
SHA256 (golang-groupcache-41bb18bfe9da_GH0.tar.gz) = 1e89795970d6593affdafe1d09dcf947681ca1ea82528e8e4fb9974a77f2e394
SIZE (golang-groupcache-41bb18bfe9da_GH0.tar.gz) = 26101
SHA256 (golang-lint-83fdc39ff7b5_GH0.tar.gz) = 5014077abbc075c3b4b459f7ad98cc1c28f2ae6bde906a9d8ed19d8c8b97987a
SIZE (golang-lint-83fdc39ff7b5_GH0.tar.gz) = 31889
SHA256 (golang-mod-v0.4.2_GH0.tar.gz) = ce4131eb443ac67ededb139a43bae4fbb2c4b84843936495c6a6de92b8033917
SIZE (golang-mod-v0.4.2_GH0.tar.gz) = 104584
SHA256 (golang-net-a5a99cb37ef4_GH0.tar.gz) = 16cc55746ae8c23d894f28c93879e8915e2667c04cca2c4644b7acc8bedf6adb
SIZE (golang-net-a5a99cb37ef4_GH0.tar.gz) = 1249439
SHA256 (golang-oauth2-2e8d93401602_GH0.tar.gz) = 666f0dd6ef39ba66a52c7fc02c8730be742a5f14419fc7c3a70f0442f6a5bc92
SIZE (golang-oauth2-2e8d93401602_GH0.tar.gz) = 79381
SHA256 (golang-protobuf-v1.5.2_GH0.tar.gz) = 088cc0f3ba18fb8f9d00319568ff0af5a06d8925a6e6cb983bb837b4efb703b3
SIZE (golang-protobuf-v1.5.2_GH0.tar.gz) = 171702
SHA256 (golang-snappy-v0.0.3_GH0.tar.gz) = c22541bf48b252b55ea0e618a5887e3d4f95c6ec5e46bbd60d1020366ffa2580
SIZE (golang-snappy-v0.0.3_GH0.tar.gz) = 65976
SHA256 (golang-sync-036812b2e83c_GH0.tar.gz) = 75ac8fc16bdceb2496c4a9cc98584b70c29032d91a9e57a624acb073e3232fda
SIZE (golang-sync-036812b2e83c_GH0.tar.gz) = 18752
SHA256 (golang-sys-5e06dd20ab57_GH0.tar.gz) = 97d8695750a15cef175f72c6573cf64027600dda28243c311017c77ae71696e3
SIZE (golang-sys-5e06dd20ab57_GH0.tar.gz) = 1218868
SHA256 (golang-text-v0.3.6_GH0.tar.gz) = f66bebcf21985b0a713d67c6c35dfc9800d3b6d00d62b83ed0ce5b2ed4cb9760
SIZE (golang-text-v0.3.6_GH0.tar.gz) = 8351095
SHA256 (golang-tools-v0.1.0_GH0.tar.gz) = 88f66c1a7ff0f7fce20c0808d2769baa977f56f74197c9681cd864d0977e97a2
SIZE (golang-tools-v0.1.0_GH0.tar.gz) = 2683055
SHA256 (golang-xerrors-5ec99f83aff1_GH0.tar.gz) = 71975d658357e170fd6a41f92539cde8b39c9cd8bfe5931b6311bc5f5c0da0d7
SIZE (golang-xerrors-5ec99f83aff1_GH0.tar.gz) = 13664
SHA256 (google-go-genproto-e86de6bf7a46_GH0.tar.gz) = 83145258fc023231e4bd2bb3941f0358ed9c61e8cc68650c711a211fd75ac723
SIZE (google-go-genproto-e86de6bf7a46_GH0.tar.gz) = 8596017
SHA256 (googleapis-gax-go-v2.0.5_GH0.tar.gz) = 3089affe6f5e27f7a6d494cb399aa6baf232384f763f548ad5ddfbea0e88e59c
SIZE (googleapis-gax-go-v2.0.5_GH0.tar.gz) = 15328
SHA256 (googleapis-google-api-go-client-v0.44.0_GH0.tar.gz) = 4b90fc618dcc5712c05cea08ba78b34d9108a78a6f6162b0da8a98271a1770e8
SIZE (googleapis-google-api-go-client-v0.44.0_GH0.tar.gz) = 19986923
SHA256 (googleapis-google-cloud-go-storage-v1.14.0_GH0.tar.gz) = 368e85de49d201a1a7f7da58f597c5904a6665b733315b9b22eee9397dfe9bfe
SIZE (googleapis-google-cloud-go-storage-v1.14.0_GH0.tar.gz) = 3404588
SHA256 (grpc-grpc-go-v1.37.0_GH0.tar.gz) = ab96e0de7416d1d26ea5c98417d21cd72b2c66094b80ba3ab1d03f4a5aa728ca
SIZE (grpc-grpc-go-v1.37.0_GH0.tar.gz) = 1236791
SHA256 (influxdata-influxdb-v1.8.4_GH0.tar.gz) = 9f2c135c8f9f50ca469196e6b4e575e26f1a338538788e71b664212e03b4df7b
SIZE (influxdata-influxdb-v1.8.4_GH0.tar.gz) = 12071969
SHA256 (jmespath-go-jmespath-v0.4.0_GH0.tar.gz) = aa86d00b6836345eee196c13df2df084a18e0b1159935de9289f2ef6a7fe375d
SIZE (jmespath-go-jmespath-v0.4.0_GH0.tar.gz) = 128861
SHA256 (jstemmer-go-junit-report-v0.9.1_GH0.tar.gz) = 4999e6d8feefe5b89eb9c2b3845a3c0ecdb6f0b0ba4e9785567a43f8952fff15
SIZE (jstemmer-go-junit-report-v0.9.1_GH0.tar.gz) = 17764
SHA256 (klauspost-compress-v1.11.13_GH0.tar.gz) = 8fd1068d5f748178b7e71d26f50e38f66a0ee8c98fd57af4bdfac0e153f865e4
SIZE (klauspost-compress-v1.11.13_GH0.tar.gz) = 17455939
SHA256 (mattn-go-colorable-v0.1.8_GH0.tar.gz) = 1027954f9abbe06b6e117e3047af70204dd0eb4f8c27fcd459fb2574b279755f
SIZE (mattn-go-colorable-v0.1.8_GH0.tar.gz) = 9571
SHA256 (mattn-go-isatty-v0.0.12_GH0.tar.gz) = addbdc341d7685ed4cc8d2d8a8fd2bd9b784bde00d0ea99fb251039fc10c611c
SIZE (mattn-go-isatty-v0.0.12_GH0.tar.gz) = 4548
SHA256 (mattn-go-runewidth-v0.0.12_GH0.tar.gz) = 5fe59a999a3dffe33595d8e40806bcba11aa447cd73eb60a8b9a7f8b724a232f
SIZE (mattn-go-runewidth-v0.0.12_GH0.tar.gz) = 17354
SHA256 (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 2def0ee6f6b12b1efc0e3007d89f598608a072610e805c3655ea9d13c3ead49b
SIZE (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 37184
SHA256 (oklog-ulid-v1.3.1_GH0.tar.gz) = 499a6ee77ca473a44ad9f11425a8f87f6c02ff1221b11f24d13bee13ce632640
SIZE (oklog-ulid-v1.3.1_GH0.tar.gz) = 55582
SHA256 (pkg-errors-v0.9.1_GH0.tar.gz) = 56bfd893023daa498508bfe161de1be83299fcf15376035e7df79cbd7d6fa608
SIZE (pkg-errors-v0.9.1_GH0.tar.gz) = 13415
SHA256 (prometheus-client_golang-v1.10.0_GH0.tar.gz) = e7305f84aa6553d9dd4bfd148d29289df36a9df82dae7be3c6eda62feb56f3d1
SIZE (prometheus-client_golang-v1.10.0_GH0.tar.gz) = 176316
SHA256 (prometheus-client_model-v0.2.0_GH0.tar.gz) = 4ab1be9cdfa702d7f49beeb09a256bcc6a2aad55e8a0a37e7732a46934264e12
SIZE (prometheus-client_model-v0.2.0_GH0.tar.gz) = 10986
SHA256 (prometheus-common-v0.20.0_GH0.tar.gz) = fdb23e113db6d3f12654a8e2282a10aaa1806b8ca53c2fab26412d0d98cecd22
SIZE (prometheus-common-v0.20.0_GH0.tar.gz) = 123986
SHA256 (prometheus-procfs-v0.6.0_GH0.tar.gz) = 6ad7a23cf4db9fa5dbf2c5d8fbd0fbf5ffe48e3ddb7bf15f9359813d764ce73c
SIZE (prometheus-procfs-v0.6.0_GH0.tar.gz) = 169898
SHA256 (prometheus-prometheus-3ad25a6dc3d9_GH0.tar.gz) = f21f0a8a11de4211de5817834928db14ce4b45d3abd2a7625b7914d145cec918
SIZE (prometheus-prometheus-3ad25a6dc3d9_GH0.tar.gz) = 14465338
SHA256 (protocolbuffers-protobuf-go-v1.26.0_GH0.tar.gz) = 26218474bcf776ecf32d7d194c6bfaca8e7b4f0c087e5b595fd50fbb31409676
SIZE (protocolbuffers-protobuf-go-v1.26.0_GH0.tar.gz) = 1270215
SHA256 (rivo-uniseg-v0.2.0_GH0.tar.gz) = 3ad738b5c9162ede110d75b23564b6e40e52dd9150ebbced402f4f70be106197
SIZE (rivo-uniseg-v0.2.0_GH0.tar.gz) = 44036
SHA256 (russross-blackfriday-v2.1.0_GH0.tar.gz) = a13af0fc5305713f5154693feaf654d024689efea76390091a5e8c757335b4f4
SIZE (russross-blackfriday-v2.1.0_GH0.tar.gz) = 92896
SHA256 (uber-go-atomic-v1.7.0_GH0.tar.gz) = 4d655e90a23d023b36607e2ce94c3b7bf650d41c81c0faff32432581d9099ad1
SIZE (uber-go-atomic-v1.7.0_GH0.tar.gz) = 18566
SHA256 (urfave-cli-v2.3.0_GH0.tar.gz) = b17376246f1477157daab86d4a1562d6b004f5be0d15dfc61ebd8bb129384e6b
SIZE (urfave-cli-v2.3.0_GH0.tar.gz) = 3408283
SHA256 (valyala-bytebufferpool-v1.0.0_GH0.tar.gz) = 089013e3429ebe7fd2bc3527f003bf3f3f639891e5d8ba6a56010e3671465e1f
SIZE (valyala-bytebufferpool-v1.0.0_GH0.tar.gz) = 5025
SHA256 (valyala-fastjson-v1.6.3_GH0.tar.gz) = 1e1205eb75af6acee6d8ce741d3c0ff8f03ee4ce3b92375a9fd493ea2bdef350
SIZE (valyala-fastjson-v1.6.3_GH0.tar.gz) = 731249
SHA256 (valyala-fastrand-v1.0.0_GH0.tar.gz) = dd3d1950089bfbc5c5309cbcc2599c4135ad428ec633c8835e97e0257ad16575
SIZE (valyala-fastrand-v1.0.0_GH0.tar.gz) = 3320
SHA256 (valyala-fasttemplate-v1.2.1_GH0.tar.gz) = 14881149dfc3d49606728d0c8e704cfaeb7fbbf2c42d20e771cf1bbae9fb1044
SIZE (valyala-fasttemplate-v1.2.1_GH0.tar.gz) = 11550
SHA256 (valyala-gozstd-v1.9.0_GH0.tar.gz) = bbf3d6786dabe4114eb9e63188aaf423dc1e85ab786677f7f89a92df81e2c037
SIZE (valyala-gozstd-v1.9.0_GH0.tar.gz) = 4121696
SHA256 (valyala-histogram-v1.1.2_GH0.tar.gz) = 50548f502237069cb7771709e0d3714fc9454c480e6e327b98e1813e60fe5cab
SIZE (valyala-histogram-v1.1.2_GH0.tar.gz) = 4324
SHA256 (valyala-quicktemplate-v1.6.3_GH0.tar.gz) = ab712542eb13ff5b18606c32fbba33bb08696ae5796a9e5b6bdc869304d86c53
SIZE (valyala-quicktemplate-v1.6.3_GH0.tar.gz) = 632388

View File

@ -0,0 +1,17 @@
--- Makefile.orig 2021-04-08 06:35:50 UTC
+++ Makefile
@@ -1,5 +1,6 @@
PKG_PREFIX := github.com/VictoriaMetrics/VictoriaMetrics
+ifneq (,$(wildcard .git))
BUILDINFO_TAG ?= $(shell echo $$(git describe --long --all | tr '/' '-')$$( \
git diff-index --quiet HEAD -- || echo '-dirty-'$$(git diff-index -u HEAD | openssl sha1 | cut -c 10-17)))
@@ -7,6 +8,7 @@ PKG_TAG ?= $(shell git tag -l --points-at HEAD)
ifeq ($(PKG_TAG),)
PKG_TAG := $(BUILDINFO_TAG)
endif
+endif
GO_BUILDINFO = -X '$(PKG_PREFIX)/lib/buildinfo.Version=$(APP_NAME)-$(shell date -u +'%Y%m%d-%H%M%S')-$(BUILDINFO_TAG)'

View File

@ -0,0 +1,65 @@
#!/bin/sh
# PROVIDE: victoria_metrics
# REQUIRE: NETWORK
# BEFORE: DAEMON
. /etc/rc.subr
name="victoria_metrics"
desc="Fast, cost-effective, and scalable time series database"
rcvar="victoria_metrics_enable"
pidfile="/var/run/${name}.pid"
daemon_pidfile="/var/run/${name}-daemon.pid"
logdir="/var/log/${name}"
logfile="${logdir}/victoria_metrics.log"
command="%%PREFIX%%/bin/victoria-metrics"
victoria_metrics_args=${cbsd_mq_router_config-"--storageDataPath=%%VICTORIA_DATA%% --retentionPeriod=1 --httpListenAddr=:8428"}
victoria_metrics_user="%%VICTORIA_USER%%"
load_rc_config ${name}
start_cmd="start"
stop_cmd="stop"
status_cmd="status"
start()
{
[ ! -d ${logdir} ] && mkdir -p ${logdir}
touch ${logfile}
chown ${victoria_metrics_user} ${logdir} ${logfile}
/usr/sbin/daemon -u ${victoria_metrics_user} -f -R5 -p ${pidfile} -P ${daemon_pidfile} -o ${logfile} ${command} ${victoria_metrics_args}
}
stop()
{
if [ -f "${daemon_pidfile}" ]; then
pids=$( pgrep -F ${daemon_pidfile} 2>&1 )
_err=$?
[ ${_err} -eq 0 ] && kill -9 ${pids} && /bin/rm -f ${daemon_pidfile}
fi
if [ -f "${pidfile}" ]; then
pids=$( pgrep -F ${pidfile} 2>&1 )
_err=$?
[ ${_err} -eq 0 ] && kill -9 ${pids} && /bin/rm -f ${pidfile}
fi
}
status()
{
if [ -f "${pidfile}" ]; then
pids=$( pgrep -F ${pidfile} 2>&1 )
_err=$?
if [ ${_err} -eq 0 ]; then
echo "${name} is running as pid ${pids}"
exit 0
else
echo "wrong pid: ${pids}"
exit 1
fi
else
echo "no pidfile $pidfile"
exit 1
fi
}
run_rc_command "$1"

View File

@ -0,0 +1,8 @@
VictoriaMetrics is fast, cost-effective, and scalable monitoring solution
and time series database.
VictoriaMetrics can be used as long-term storage for Prometheus or for
vmagent. It also supports Prometheus querying API so it can be used as
Prometheus drop-in replacement in Grafana.
WWW: https://victoriametrics.github.io/

View File

@ -0,0 +1,15 @@
bin/victoria-metrics
%%PORTDOCS%%%%DOCSDIR%%/Articles.md
%%PORTDOCS%%%%DOCSDIR%%/BestPractices.md
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.md
%%PORTDOCS%%%%DOCSDIR%%/CaseStudies.md
%%PORTDOCS%%%%DOCSDIR%%/Cluster-VictoriaMetrics.md
%%PORTDOCS%%%%DOCSDIR%%/FAQ.md
%%PORTDOCS%%%%DOCSDIR%%/Home.md
%%PORTDOCS%%%%DOCSDIR%%/MetricsQL.md
%%PORTDOCS%%%%DOCSDIR%%/Quick-Start.md
%%PORTDOCS%%%%DOCSDIR%%/Release-Guide.md
%%PORTDOCS%%%%DOCSDIR%%/SampleSizeCalculations.md
%%PORTDOCS%%%%DOCSDIR%%/Single-server-VictoriaMetrics.md
%%PORTDOCS%%%%DOCSDIR%%/logo.png
@dir(%%VICTORIA_USER%%,%%VICTORIA_GROUP%%,750) %%VICTORIA_DATA%%