Skip to content

ALGO-62 Integrated mlops agent#16

Merged
zeryx merged 7 commits into
developfrom
integrated-mlops-agent
Jun 17, 2022
Merged

ALGO-62 Integrated mlops agent#16
zeryx merged 7 commits into
developfrom
integrated-mlops-agent

Conversation

@zeryx
Copy link
Copy Markdown
Contributor

@zeryx zeryx commented Jun 14, 2022

This PR adds the mlops agent client-side interface logic to the ADK. Exposing a mlops variable to the .init() function.

requires the environment_validator in langpacks to validate.

algorithmiaio/langpacks#228 check this out to test

to test:
./tools/environment_validator.py -g python3 -s python39 -d java11 -d mlops-agent -t dependency -n python39-mlops
will need to add an environment variable to the template file to validate.

@zeryx zeryx requested review from aslisabanci and dr-kenny June 14, 2022 02:46
@zeryx zeryx self-assigned this Jun 14, 2022
Comment thread adk/mlops.py Outdated
Comment thread adk/ADK.py
self.write_to_pipe(result, pprint=pprint)

def mlops_init(self):
mlops_token = os.environ.get("DATAROBOT_MLOPS_API_TOKEN", None)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there a reason you aren't using the same env var as the monitoring agent itself? This might make things simpler, unless you specifically don't want them to be the same. That would be just MLOPS_API_TOKEN.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, in the event that there are other MLOPS API tokens from different orgs; wanting to be very clear about what this token is used for so it's not confused with any algorithmia token

Comment thread adk/mlops.py Outdated
@zeryx zeryx requested a review from lemonez June 15, 2022 16:49
Copy link
Copy Markdown

@lemonez lemonez left a comment

Choose a reason for hiding this comment

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

👍🏼

@zeryx zeryx merged commit 5f65010 into develop Jun 17, 2022
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.

3 participants