Create a Custom Dashboard
- Download Custom_dashboard_script.zip.It contains:
Directory Description templatesContains jsontemplates to create the dashboard files.dashboardDashboard jsonfiles are created here. It contains the samplejsonfiles.main.pyPython script to create the dashboards. readme.mdDescription 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_dashboardapp_dashboardOptional Application Name Name of the Application with OpenAI backend calls. none openai_app_1Yes OpenAI Endpoints Host Name The hostname of the OpenAI endpoint. api.openai.comapi.openai.comOptional OpenAI Endpoints Port The port of the OpenAI endpoint. 443443Optional 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_dashboardtier_dashboardOptional Application Name Name of the Application with OpenAI backend calls. none openai_app_1Yes Tier Name Name of the Tier exposed to OpenAI backend calls. none openai_tier_1Yes Business Transaction Name The name of the business transaction reported to the host. This is to capture API Response time metric. noneopenai_btYes OpenAI Endpoints Host Name The hostname of the OpenAI endpoint. api.openai.comapi.openai.comOptional OpenAI Endpoints Port The port of the OpenAI endpoint. 443443Optional 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_Appmoderation_app_dashboardOptional Application Name Name of the Application with OpenAI backend calls. none openai_app_1Yes 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_Tiermoderation_tier_dashboardOptional Application Name Name of the Application with OpenAI backend calls. none openai_app_1Yes Tier Name Name of the Tier exposed to OpenAI backend calls. none openai_tier_1Yes - Import the dashboard in the Controller UI.