diff --git a/.gitignore b/.gitignore index 1a3bc3a..aa7c2e7 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,6 @@ ipld-ethcl-indexer.log report.json cover.profile temp/* +.vscode/* pkg/beaconclient/ssz-data/ *.test \ No newline at end of file diff --git a/example.ipld-ethcl-indexer-config.json b/example.ipld-ethcl-indexer-config.json index 64e7600..0929773 100644 --- a/example.ipld-ethcl-indexer-config.json +++ b/example.ipld-ethcl-indexer-config.json @@ -8,7 +8,7 @@ "driver": "PGX" }, "bc": { - "address": "10.203.8.51", + "address": "localhost", "port": 5052, "type": "lighthouse", "bootRetryInterval": 30, @@ -17,7 +17,7 @@ "connectionProtocol": "http" }, "t": { - "skipSync": false + "skipSync": true }, "log": { "level": "debug", diff --git a/pkg/beaconclient/metrics.go b/pkg/beaconclient/metrics.go index ebee265..4a56fe6 100644 --- a/pkg/beaconclient/metrics.go +++ b/pkg/beaconclient/metrics.go @@ -46,8 +46,11 @@ func CreateBeaconClientMetrics() *BeaconClientMetrics { func prometheusRegisterHelper(name string, help string, varPointer *uint64) { prometheus.MustRegister(prometheus.NewCounterFunc( prometheus.CounterOpts{ - Name: name, - Help: help, + Namespace: "beacon_client", + Subsystem: "", + Name: name, + Help: help, + ConstLabels: map[string]string{}, }, func() float64 { return float64(atomic.LoadUint64(varPointer))