erigon-pulse/diagnostics
naviechan d475bab15f
Add diagnostics endpoint for flags (#7417)
To expose context flags through diagnostic endpoint
`/debug/metrics/flags`.

The current `/debug/metrics/cmdline` only provides the command run by
user. In the case when user runs Erigon using config file, `cmdline`’s
info does not truly reflect the ‘launch setting' and flags set that
Erigon is running on.

## Example

### Command
```
erigon --datadir /tmp/data --config test.yaml
```
### Pseudo config file (in yaml)
```
datadir : '/tmp/data'
chain : "sepolia"
http : true
metrics: true
private.api.addr : "localhost:9090"

http.api : ["eth","debug","net"]
```
### Output
```
SUCCESS
chain=sepolia
config=test.yaml
datadir=/tmp/data
http=true
http.api=eth,debug,net
metrics=true
private.api.addr=localhost:9090
```
2023-05-01 15:38:00 +01:00
..
block_body_download.go [Diagnostics] initial support for body downloader visualisation (#7373) 2023-04-23 18:56:37 +01:00
CHANGELOG.md Add diagnostics endpoint for flags (#7417) 2023-05-01 15:38:00 +01:00
cmd_line.go [Diagnostics] expose command line args via metrics (#7271) 2023-04-06 15:34:06 +00:00
db_access.go Mock of Erigon support - step 1 (#6930) 2023-02-22 12:38:22 +00:00
flags.go Add diagnostics endpoint for flags (#7417) 2023-05-01 15:38:00 +01:00
logs_access.go [Diagnostics] Re-enable log support, more reliable reconnection (#7286) 2023-04-10 07:35:24 +00:00
version.go Add diagnostics endpoint for flags (#7417) 2023-05-01 15:38:00 +01:00