From 98294f0f82d3e336919be1d907838a0251dc7405 Mon Sep 17 00:00:00 2001 From: Tomohiro Taira Date: Mon, 2 Dec 2019 15:26:55 +0900 Subject: [PATCH 1/3] Fix typo --- lib/jitsi-videobridge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jitsi-videobridge.go b/lib/jitsi-videobridge.go index 5c679e5..ca3149d 100644 --- a/lib/jitsi-videobridge.go +++ b/lib/jitsi-videobridge.go @@ -230,7 +230,7 @@ func (p JitsiVideobridgePlugin) GraphDefinition() map[string]mp.Graphs { } } -// FetchMetrics fetches metrics from Jitsi Videobridge Colibri REST float64erface +// FetchMetrics fetches metrics from Jitsi Videobridge Colibri REST interface func (p JitsiVideobridgePlugin) FetchMetrics() (map[string]float64, error) { url := fmt.Sprintf("http://%v:%v/colibri/stats", p.Host, p.Port) res, err := http.Get(url) From e9fc789e675a53e7db7cc72684f0752cec33a3db Mon Sep 17 00:00:00 2001 From: Tomohiro Taira Date: Tue, 10 Dec 2019 12:24:15 +0900 Subject: [PATCH 2/3] Update installaton --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e8276cd..e58a1f6 100644 --- a/README.md +++ b/README.md @@ -34,13 +34,13 @@ Installation Latest release: ``` -$ mkr plugin install tomohiro/mackerel-plugin-jitsi-videobridge +$ mkr plugin install mackerel-plugin-jitsi-videobridge ``` Specified release version: ``` -$ mkr plugin install tomohiro/mackerel-plugin-jitsi-videobridge@v0.0.1 +$ mkr plugin install mackerel-plugin-jitsi-videobridge@v0.0.1 ``` From 41e626f51a9e27e630dff60efcd4c76b1683bb34 Mon Sep 17 00:00:00 2001 From: Tomohiro Taira Date: Tue, 10 Dec 2019 15:24:18 +0900 Subject: [PATCH 3/3] Add LDFLAGS --- Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 8f782e0..79da57a 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,11 @@ PACKAGE = $(shell basename $(PWD)) VERSION = $(shell git describe --abbrev=0 --tags) # Build information -DIST_DIR = $(PWD)/dist -ASSETS_DIR = $(DIST_DIR)/$(VERSION) -XC_OS = "linux darwin" -XC_ARCH = "386 amd64" +DIST_DIR = $(PWD)/dist +ASSETS_DIR = $(DIST_DIR)/$(VERSION) +XC_OS = "linux darwin" +XC_ARCH = "386 amd64" +BUILD_FLAGS = "-w -s" # Tasks help: @@ -50,7 +51,10 @@ test: deps dist: deps @echo "===> Shipping packages as release assets..." - goxz -d $(ASSETS_DIR) -z -os $(XC_OS) -arch $(XC_ARCH) + goxz -d $(ASSETS_DIR) -z -os $(XC_OS) -arch $(XC_ARCH) --build-ldflags=$(BUILD_LDFLAGS) + pushd $(ASSETS_DIR); \ + shasum -a 256 *.zip > ./$(VERSION)_SHA256SUMS; \ + popd release: @echo "===> Publishing release assets to GitHub..."