Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dumpconfig doesn't output config for metrics #22007

Closed
lightclient opened this issue Dec 11, 2020 · 7 comments · Fixed by #22083
Closed

dumpconfig doesn't output config for metrics #22007

lightclient opened this issue Dec 11, 2020 · 7 comments · Fixed by #22083
Assignees

Comments

@lightclient
Copy link
Member

lightclient commented Dec 11, 2020

System information

Geth version: v1.9.25
OS & Version: linux

Expected behaviour

Print config that turns on monitoring.

Actual behaviour

No observable change to output

Steps to reproduce the behaviour

$ diff <(geth --metrics --pprof dumpconfig) <(geth dumpconfig)
$
@rjl493456442
Copy link
Member

The metrics flags are not part of the config. Are they necessary for you in some special scenario?

@lightclient
Copy link
Member Author

No, not really. As a user, I just found it confusing that they weren't part of the configuration. I was trying to generate a few config.toml files for various scenarios and seems like --metrics should be configurable by the TOML.

@MysticRyuujin
Copy link
Contributor

I opened a similar issue a while back, seems to just be a continuation of that 🙂

#21262

@lightclient
Copy link
Member Author

Ah I see, nice catch. Also appears that --goerli isn't dumpable.

@MysticRyuujin
Copy link
Contributor

I think --goerli just modifies the network flag and maybe a couple others, the flag itself doesn't dump, but the RESULTS of the flag does get dumped.

@lightclient
Copy link
Member Author

@MysticRyuujin although it updates the config with the correct network ID, it doesn't start with the correct genesis block (starts with mainnet).

@11qu1d
Copy link

11qu1d commented Dec 16, 2020

Noticed this problem while trying to consolidate all config into a single file. At the moment i have to pass all the metrics config as flags and the rest in the config file. Not ideal if we want to keep things consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants