erigon-pulse/core
milen 34c0fe29ad
metrics: swap remaining VictoriaMetrics usages with erigon-lib/metrics (#8762)
# Background

Erigon currently uses a combination of Victoria Metrics and Prometheus
client for providing metrics.

We want to rationalize this and use only the Prometheus client library,
but we want to maintain the simplified Victoria Metrics methods for
constructing metrics.

This task is currently partly complete and needs to be finished to a
stage where we can remove the Victoria Metrics module from the Erigon
code base.

# Summary of changes

- Adds missing `NewCounter`, `NewSummary`, `NewHistogram`,
`GetOrCreateHistogram` functions to `erigon-lib/metrics` similar to the
interface VictoriaMetrics lib provides
- Minor tidy up for consistency inside `erigon-lib/metrics/set.go`
around return types (panic vs err consistency for funcs inside the
file), error messages, comments
- Replace all remaining usages of `github.com/VictoriaMetrics/metrics`
with `github.com/ledgerwatch/erigon-lib/metrics` - seamless (only import
changes) since interfaces match
2023-11-20 12:23:23 +00:00
..
allocs Support for --chain=holesky (#8064) 2023-08-26 16:31:29 +06:00
asm core: run tests in parallel (#8743) 2023-11-17 10:52:40 +07:00
forkid core: run tests in parallel (#8743) 2023-11-17 10:52:40 +07:00
rawdb core: run tests in parallel (#8743) 2023-11-17 10:52:40 +07:00
state metrics: swap remaining VictoriaMetrics usages with erigon-lib/metrics (#8762) 2023-11-20 12:23:23 +00:00
systemcontracts Remove CalcuttaBlock in favour of BlockAlloc (#8371) 2023-10-05 15:39:57 +02:00
types core: run tests in parallel (#8743) 2023-11-17 10:52:40 +07:00
vm core: run tests in parallel (#8743) 2023-11-17 10:52:40 +07:00
.gitignore Renamed chain => core 2014-12-04 10:28:02 +01:00
block_builder_parameters.go Support engine_forkchoiceUpdatedV3 with ParentBeaconBlockRoot (EIP-4788) (#7969) 2023-08-06 11:54:14 +02:00
block_validator_test.go core: run tests in parallel (#8743) 2023-11-17 10:52:40 +07:00
block_validator.go Simplify miner gas limit post EIP-1559. Default to 30M (#3205) 2022-01-05 16:36:24 +07:00
blockchain.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
blocks.go reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
bor_fee_log.go reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
chain_makers.go Introduce extra functions for BorSpans (no-op) (#8648) 2023-11-04 10:59:07 +00:00
error.go EIP-4844: Rename "data gas" to "blob gas" (#7937) 2023-07-28 12:12:05 +02:00
events.go reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
evm.go EIP-4844: rename "data hash" to "blob hash" (#7947) 2023-07-31 10:12:53 +02:00
gaspool.go EIP-4844: Rename "data gas" to "blob gas" (#7937) 2023-07-28 12:12:05 +02:00
genesis_test.go core: run tests in parallel (#8743) 2023-11-17 10:52:40 +07:00
genesis_write.go Fix wiring of AgraBlock into tx pool (#8555) 2023-10-23 11:03:46 +02:00
mkalloc.go Break dependency of ethcfg package to core/consensus/etc... move genesis struct to 'types' package (#7206) 2023-03-29 07:27:06 +00:00
rlp_test.go core: run tests in parallel (#8743) 2023-11-17 10:52:40 +07:00
skip_analysis.go move chainname and snapcfg packages to erigon-lib (#8508) 2023-10-18 13:37:39 +07:00
state_processor.go evm: no interface (#8376) 2023-10-05 12:23:08 +07:00
state_transition.go Replace eip1559FeeCollector with burntContract (#8553) 2023-10-22 16:23:40 +02:00
system_contract_lookup.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
tx_cacher.go Move ETL to erigon-lib (#2667) 2021-09-12 08:50:17 +01:00