diff --git a/Dockerfile b/Dockerfile index 4fdd42c..7bf6370 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM fedora:40 -COPY push-exporter /usr/local/bin/ +COPY metric-collector /usr/local/bin/ ENTRYPOINT ["/usr/local/bin/"] diff --git a/README.md b/README.md index c905d22..b6688c4 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# push-exporter +# metric-collector Collect metrics from exporters and send them to [Pushgateway][Pushgateway]. ## Getting started ```bash -push-exporter run --jobs node --sources http://127.0.0.1:9100/metrics \ +metric-collector run --jobs node --sources http://127.0.0.1:9100/metrics \ --push-to http://127.0.0.1:9091/metrics ``` diff --git a/Taskfile.yaml b/Taskfile.yaml index d9ecc13..d0a7cec 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -7,17 +7,17 @@ tasks: fast-build: cmds: - - go build -o bin/push-exporter . + - go build -o bin/metric-collector . build: cmds: - - GOOS=linux GOARCH=amd64 go build -o bin/linux-amd64/push-exporter . - - GOOS=linux GOARCH=arm64 go build -o bin/linux-arm64/push-exporter . - - GOOS=darwin GOARCH=arm64 go build -o bin/darwin-arm64/push-exporter . + - GOOS=linux GOARCH=amd64 go build -o bin/linux-amd64/metric-collector . + - GOOS=linux GOARCH=arm64 go build -o bin/linux-arm64/metric-collector . + - GOOS=darwin GOARCH=arm64 go build -o bin/darwin-arm64/metric-collector . docker: deps: - build cmds: - - docker buildx build --platform linux/amd64 --load -t registry.smtx.io/fanyang/push-exporter:x86_64 -f Dockerfile bin/linux-amd64 - - docker buildx build --platform linux/arm64 --load -t registry.smtx.io/fanyang/push-exporter:arm64 -f Dockerfile bin/linux-arm64 + - docker buildx build --platform linux/amd64 --load -t registry.smtx.io/fanyang/metric-collector:x86_64 -f Dockerfile bin/linux-amd64 + - docker buildx build --platform linux/arm64 --load -t registry.smtx.io/fanyang/metric-collector:arm64 -f Dockerfile bin/linux-arm64 diff --git a/app.go b/app.go index 507f79d..b3c2d13 100644 --- a/app.go +++ b/app.go @@ -3,7 +3,7 @@ package main import "github.com/urfave/cli/v2" var app = &cli.App{ - Name: "push-exporter", + Name: "metric-collector", EnableBashCompletion: true, Commands: []*cli.Command{ CmdRun, diff --git a/docker-compose.yml b/docker-compose.yml index de48025..447b34d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,5 @@ version: "3" services: - push-exporter: - image: registry.smtx.io/fanyang/push-exporter:x86_64 + metric-collector: + image: registry.smtx.io/fanyang/metric-collector:x86_64 restart: always diff --git a/go.mod b/go.mod index f943a0d..58acd34 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/zperf/push-exporter +module github.com/zperf/metric-collector go 1.23.1