Skip to content

Commit

Permalink
Rename to metric-collector
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyang89 committed Sep 23, 2024
1 parent c3b867a commit 393ebba
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM fedora:40

COPY push-exporter /usr/local/bin/
COPY metric-collector /usr/local/bin/

ENTRYPOINT ["/usr/local/bin/"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
```

Expand Down
12 changes: 6 additions & 6 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/zperf/push-exporter
module github.com/zperf/metric-collector

go 1.23.1

Expand Down

0 comments on commit 393ebba

Please sign in to comment.