Skip to content

Commit

Permalink
Merge pull request #51 from samcm/feat/repo-move
Browse files Browse the repository at this point in the history
feat(ethpandaops): Prepare repo move
  • Loading branch information
samcm authored Oct 27, 2022
2 parents 3c22a7a + d4cbdf9 commit 73754d3
Show file tree
Hide file tree
Showing 28 changed files with 48 additions and 47 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
# list of Docker images to use as base name for tags
images: |
samcm/ethereum-metrics-exporter
ethpandaops/ethereum-metrics-exporter
# generate Docker tags based on the following events/attributes
tags: |
type=schedule
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ Flags:
* [The Merge overview dashboard](https://grafana.com/grafana/dashboards/16395)

### Docker
Available as a docker image at `samcm/ethereum-metrics-exporter`
Available as a docker image at `ethpandaops/ethereum-metrics-exporter`

**Quick start**
```
docker run -d -it --name ethereum-metrics-exporter -p 9090:9090 -it samcm/ethereum-metrics-exporter --consensus-url=http://localhost:5052 --execution-url=http://localhost:8545
docker run -d -it --name ethereum-metrics-exporter -p 9090:9090 -it ethpandaops/ethereum-metrics-exporter --consensus-url=http://localhost:5052 --execution-url=http://localhost:8545
````
**With a config file**
```
docker run -d -it --name ethereum-metrics-exporter -v $HOST_DIR_CHANGE_ME/config.yaml:/opt/exporter/config.yaml -p 9090:9090 -it samcm/ethereum-metrics-exporter --config /opt/exporter/config.yaml
docker run -d -it --name ethereum-metrics-exporter -v $HOST_DIR_CHANGE_ME/config.yaml:/opt/exporter/config.yaml -p 9090:9090 -it ethpandaops/ethereum-metrics-exporter --config /opt/exporter/config.yaml

```
### Kubernetes via Helm
Expand All @@ -71,7 +71,7 @@ Coming soon.
1. Clone the repo
```sh
go get github.com/samcm/ethereum-metrics-exporter
go get github.com/ethpandaops/ethereum-metrics-exporter
```
2. Change directories
```sh
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"os"

"github.com/samcm/ethereum-metrics-exporter/pkg/exporter"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"gopkg.in/yaml.v2"
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/samcm/ethereum-metrics-exporter
module github.com/ethpandaops/ethereum-metrics-exporter

go 1.17

// replace github.com/samcm/ethereum-metrics-exporter/pkg/exporter => ./pkg/ethereum-metrics-exporter
// replace github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter => ./pkg/ethereum-metrics-exporter

require (
github.com/spf13/cobra v1.4.0
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os/signal"
"syscall"

"github.com/samcm/ethereum-metrics-exporter/cmd"
"github.com/ethpandaops/ethereum-metrics-exporter/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/consensus/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/http"
"time"

"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/api/types"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/api/types"
"github.com/sirupsen/logrus"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/exporter/consensus/beacon/beacon.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
v1 "github.com/attestantio/go-eth2-client/api/v1"
"github.com/attestantio/go-eth2-client/spec"
"github.com/attestantio/go-eth2-client/spec/phase0"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/api"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/api/types"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/beacon/state"
"github.com/go-co-op/gocron"
"github.com/nats-io/nats.go"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/api"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/api/types"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/beacon/state"
"github.com/sirupsen/logrus"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/exporter/consensus/beacon/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package beacon
import (
v1 "github.com/attestantio/go-eth2-client/api/v1"
"github.com/attestantio/go-eth2-client/spec/phase0"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/api/types"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/beacon/state"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/api/types"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/beacon/state"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions pkg/exporter/consensus/beacon/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

v1 "github.com/attestantio/go-eth2-client/api/v1"
"github.com/attestantio/go-eth2-client/spec/phase0"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/api/types"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/beacon/state"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/api/types"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/beacon/state"
)

// Official beacon events that are proxied
Expand Down
4 changes: 2 additions & 2 deletions pkg/exporter/consensus/jobs/beacon.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
eth2client "github.com/attestantio/go-eth2-client"
v1 "github.com/attestantio/go-eth2-client/api/v1"
"github.com/attestantio/go-eth2-client/spec"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/api"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/api"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/consensus/jobs/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

eth2client "github.com/attestantio/go-eth2-client"
v1 "github.com/attestantio/go-eth2-client/api/v1"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/consensus/jobs/forks.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package jobs
import (
"context"

"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/sirupsen/logrus"

"github.com/attestantio/go-eth2-client/spec/phase0"
Expand Down
4 changes: 2 additions & 2 deletions pkg/exporter/consensus/jobs/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package jobs
import (
"context"

"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/api/types"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/api/types"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/sirupsen/logrus"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/exporter/consensus/jobs/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"math/big"
"time"

"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/beacon/state"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/beacon/state"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/consensus/jobs/syncstatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package jobs
import (
"context"

"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/sirupsen/logrus"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/exporter/consensus/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"

eth2client "github.com/attestantio/go-eth2-client"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/api"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/jobs"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/api"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/jobs"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/execution/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/p2p"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/execution/api/types"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/execution/api/types"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/execution/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"time"

"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/onrik/ethrpc"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/sirupsen/logrus"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/exporter/execution/jobs/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"time"

"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/execution/api/types"
"github.com/onrik/ethrpc"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/execution/api/types"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/execution/jobs/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"time"

"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/onrik/ethrpc"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/execution/jobs/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"time"

"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/onrik/ethrpc"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/execution/jobs/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"time"

"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/onrik/ethrpc"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/execution/jobs/syncstatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"time"

"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/onrik/ethrpc"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/execution/jobs/txpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"time"

"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/onrik/ethrpc"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/execution/jobs/web3.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"time"

"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/onrik/ethrpc"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/sirupsen/logrus"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/exporter/execution/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"

"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/execution/jobs"
"github.com/onrik/ethrpc"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/execution/api"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/execution/jobs"
"github.com/sirupsen/logrus"
)

Expand Down
12 changes: 6 additions & 6 deletions pkg/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ import (

eth2client "github.com/attestantio/go-eth2-client"
ehttp "github.com/attestantio/go-eth2-client/http"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/api"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/disk"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/execution"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/pair"
"github.com/nats-io/nats-server/v2/server"
"github.com/nats-io/nats.go"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/rs/zerolog"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/api"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/disk"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/execution"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/pair"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/pair/pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"time"

"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethpandaops/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/onrik/ethrpc"
"github.com/prometheus/client_golang/prometheus"
"github.com/samcm/ethereum-metrics-exporter/pkg/exporter/consensus/beacon"
"github.com/sirupsen/logrus"
)

Expand Down

0 comments on commit 73754d3

Please sign in to comment.