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

Override config metrics enable with cli #1658

Merged
merged 11 commits into from
Feb 2, 2023
Merged

Conversation

bstrzele
Copy link
Collaborator

@bstrzele bstrzele commented Jan 11, 2023

Allows using metrics_enable param in CLI even with config. CLI will overwrite config setting if defined. Added warning in the logs.
JIRA:CVS-99880

src/config.cpp Outdated Show resolved Hide resolved
@dtrawins
Copy link
Collaborator

check also ovms --help output and make sure metrics params are in server settings section.

@dkalinowski
Copy link
Collaborator

Missing ticket ID and description

src/modelmanager.cpp Outdated Show resolved Hide resolved
"Flag enabling metrics endpoint on rest_port.",
cxxopts::value<bool>()->default_value("false"),
"METRICS")
("metrics_list",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we include information that when used, config.json cannot contain metric configuration? @dtrawins

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would keep it short but indeed documentation should be adjusted in https://github.com/openvinotoolkit/model_server/blob/develop/docs/parameters.md
A note in https://github.com/openvinotoolkit/model_server/blob/main/docs/metrics.md could be also useful that configuration can not be duplicated.

src/config.cpp Outdated Show resolved Hide resolved
src/modelmanager.cpp Outdated Show resolved Hide resolved
src/test/ovmsconfig_test.cpp Outdated Show resolved Hide resolved
src/modelmanager.cpp Show resolved Hide resolved
@dtrawins dtrawins merged commit 3d3e754 into develop Feb 2, 2023
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.

None yet

3 participants