Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
feat: link to monitor url
Browse files Browse the repository at this point in the history
  • Loading branch information
zac-li committed Aug 9, 2023
1 parent 5c14276 commit 215a666
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions examples/job/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ lcserve job list langchain-1bde192651
lcserve job get my-job-7787b langchain-1bde192651
```

To access the logs from job executions, refer to the `Job Logs` section of the monitoring dashboard. You can find the link to this dashboard by running:

```bash
lcserve status langchain-1bde192651
```

## 👀 What's next?

- [Learn more about Langchain](https://python.langchain.com/docs/)
Expand Down
6 changes: 3 additions & 3 deletions lcserve/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
DOCARRAY_VERSION = '0.21.0'

ServingGatewayConfigFile = 'servinggateway_config.yml'
APP_LOGS_URL = "[https://cloud.jina.ai/](https://cloud.jina.ai/user/flows?action=detail&id={app_id}&tab=logs)"
APP_MONITOR_URL = "[https://cloud.jina.ai/](https://cloud.jina.ai/user/flows?action=detail&id={app_id}&tab=monitor)"
PRICING_URL = "****{cph}**** ([Read about pricing here](https://github.com/jina-ai/langchain-serve#-pricing))"
INIT_MODULE = '__init__'

Expand Down Expand Up @@ -725,8 +725,8 @@ def _replace_wss_with_https(endpoint: str):
_add_row('Phase', status.get('phase', ''))
_add_row('Endpoint', endpoint)
_add_row(
'App logs',
Markdown(APP_LOGS_URL.format(app_id=app_id), justify='center'),
'App Monitoring',
Markdown(APP_MONITOR_URL.format(app_id=app_id), justify='center'),
)
_add_row(
'Base credits (per hour)',
Expand Down

0 comments on commit 215a666

Please sign in to comment.