Create a Custom Dashboard
- Download Custom_dashboard_script.zip.It contains:
Directory Description templates
Contains json
templates to create the dashboard files.dashboard
Dashboard json
files are created here. It contains the samplejson
files.main.py
Python script to create the dashboards. readme.md
Description of the solution. - Run the following command:The preceding command prompts you to specify the dashboard type (application or tier) that you want to create.
cd Custom_dashboard_script python3 main.py
- Based on your selected dashboard type, you will be prompted to specify the following
dashboard details.
Table 1. Application Level Dashboard Details Variable Description Default Possible Values Required Dashboard Name The dashboard name to be displayed onDashboard & Reportsin the Controller UI. OpenAI_App_dashboard
app_dashboard
Optional Application Name Name of the Application with OpenAI backend calls. none openai_app_1
Yes OpenAI Endpoints Host Name The hostname of the OpenAI endpoint. api.openai.com
api.openai.com
Optional OpenAI Endpoints Port The port of the OpenAI endpoint. 443
443
Optional Table 2. Tier Level Dashboard Details Variable Description Default Possible Values Required Dashboard Name The dashboard name to be displayed onDashboard & Reportsin the Controller UI. tier_dashboard
tier_dashboard
Optional Application Name Name of the Application with OpenAI backend calls. none openai_app_1
Yes Tier Name Name of the Tier exposed to OpenAI backend calls. none openai_tier_1
Yes Business Transaction Name The name of the business transaction reported to the host. This is to capture API Response time metric. none
openai_bt
Yes OpenAI Endpoints Host Name The hostname of the OpenAI endpoint. api.openai.com
api.openai.com
Optional OpenAI Endpoints Port The port of the OpenAI endpoint. 443
443
Optional Table 3. Application Level Moderation API Dashboard Details Variable Description Default Possible Values Required Dashboard Name The dashboard name to be displayed onDashboard & Reportsin the Controller UI. OpenAI_Moderation_App
moderation_app_dashboard
Optional Application Name Name of the Application with OpenAI backend calls. none openai_app_1
Yes Table 4. Tier Level Moderation Dashboard Details Variable Description Default Possible Values Required Dashboard Name The dashboard name to be displayed onDashboard & Reportsin the Controller UI. OpenAI_Moderation_Tier
moderation_tier_dashboard
Optional Application Name Name of the Application with OpenAI backend calls. none openai_app_1
Yes Tier Name Name of the Tier exposed to OpenAI backend calls. none openai_tier_1
Yes - Import the dashboard in the Controller UI.