Skip to content

update promlog to latest version#4876

Merged
simonpasquier merged 7 commits intoprometheus:masterfrom
alexander-yu:update-promlog
Nov 23, 2018
Merged

update promlog to latest version#4876
simonpasquier merged 7 commits intoprometheus:masterfrom
alexander-yu:update-promlog

Conversation

@alexander-yu
Copy link
Contributor

@alexander-yu alexander-yu commented Nov 17, 2018

Revendor prometheus/common for the latest promlog version, in order to support changes from prometheus/common#136 (and prometheus/common#156); this resolves #3219 (i.e. adding JSON support for log output format).

Note: when revendoring (via go mod) promlog, this ended up retrieving the latest version of the entire prometheus/common repo; is there a good way of having a more granular update? I'm unsure what effects there are for updating the other parts of the prometheus/common repo (running tests locally with make test didn't seem to cause any errors).

Signed-off-by: Alex Yu <yu.alex96@gmail.com>
Signed-off-by: Alex Yu <yu.alex96@gmail.com>
Signed-off-by: Alex Yu <yu.alex96@gmail.com>
@simonpasquier
Copy link
Member

when revendoring (via go mod) promlog, this ended up retrieving the latest version of the entire prometheus/common repo;

This is working as intended regarding Go modules. I would say that in general, the old way of mixing different revisions for packages from the same repository (module) was more prone to errors.

Signed-off-by: Alex Yu <yu.alex96@gmail.com>
Signed-off-by: Alex Yu <yu.alex96@gmail.com>
Signed-off-by: Alex Yu <yu.alex96@gmail.com>
@alexander-yu
Copy link
Contributor Author

Updated again so we only need to initialize the config; also modified remote_storage_adapter/main.go to use kingpin, since promlog's AddFlags method requires a kingpin application.

@brian-brazil
Copy link
Contributor

That looks good bar Simon's comments.

Signed-off-by: Alex Yu <yu.alex96@gmail.com>
@alexander-yu
Copy link
Contributor Author

Cleaned up the imports as per Simon's CR.

@simonpasquier
Copy link
Member

LGTM

@simonpasquier simonpasquier added this to the v2.6.0 milestone Nov 23, 2018
@simonpasquier simonpasquier merged commit 5dcce32 into prometheus:master Nov 23, 2018
@simonpasquier
Copy link
Member

Merging since Brian already gave approval. Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2.0.0-beta.5 removes log.format flag

3 participants