Docs > Configuration > Report Builder > Working with Reports

Working with Reports

Introduction

To access Report Builder, Navigate from the left navigation menu

Configure Observability > Report Builder

All Reports created by the admin will be listed under the Report Builder, This functionality allows you to generate reports; for instance, generating a Long term data storage report is accessible via the report builder.

The following fields will be displayed.

  • Name: This field displays the name of the report.
  • Status: This indicates whether the report is currently active or inactive.
  • Schedule: If applicable, this field will display the frequency at which the report is set to generate (e.g., weekly, daily, or monthly). Additionally, it will indicate the specific time if the report has been initiated to generate either periodically or as a one-time scheduled report.  Administrators can configure this.
  • Created At: Shows the date and time when the report was first created.
  • Modified At:  Indicates the date and time of the most recent modification.
  • Actions: There are three action buttons under this.
    • Edit: Modify the report, manage permissions, or make copies.
    • Delete: Delete the respective report.
    • Preview and Generate Reports: This allows you to preview and generate reports.

In addition, there are other options available at the top of the table.

  1. Search BoxUsers can locate a specific report by entering its name into the search box.
  2. Add FiltersUsers can perform searches by applying filters, including Name,  Status, Created at, and Modified at. Multiple filters can be applied simultaneously.
  3. Enable: To enable a report, select its checkbox, which activates the ‘Enable’ button. Click Enable to make the report accessible for users to generate. You can enable multiple reports simultaneously.
  4. DisableTo disable a report, select its checkbox, which activates the ‘Disable’ button. Click DisableDisabled reports are not available for users to generate reports. You can disable multiple reports simultaneously.
  5. DeleteCheck the report’s checkbox, then click DeleteYou can delete multiple reports together.
  6. + Create New ReportThis button will enable the users to create a new Report.

Creating New Report

To create a report:

  1. Click on the + button (Create New Report).

  1. On clicking, you will be redirected to the following page.

Creating a Report consists of two steps and an optional step:

Step 1: Basic Details

Step 2: Manage Report Contents

Step 3: Schedule to Generate and Distribute 

Step 1: Basic Details

Enter the following details and click on the next tab

  • Name of the Report
  • Description (Optional)

Step 2: Manage Report Contents

This section has 3 tabs to select the source of the Report. The following are the sources:

  1. Dashboard
  2. Data Source
  3. Data Model

💡Note: Only one source can be chosen at a time for generating reports.

Now, let’s generate the reports using each of these sources.

Dashboard

  • Pick the dashboard you need for making reports.
  • To create reports from a dashboard, tick the checkbox next to its name.
  • The chosen dashboard appears on the right in the ‘Sort Dashboard’ section.
  • You can arrange the order of dashboards there.

💡Note: You can select up to 3 dashboards at once for generating reports. To replace a selected dashboard, click delete, and then proceed with your desired selections.

Time Filter

From the Time Filter option, set the exact time range for the reports you want to generate.

Additionally, you can download the instant reports. Just click the Download button to get the report.

When you click Download,  the report will be downloaded directly to your local system from the user interface.

Now, let’s create the Reports using the Data Source.

Data Source

Before selecting the data source, select the Database:

  • ES
  • PSQL
  • Hyperscale

Following are the supported data sources:

Es contain:

  • NoSQL DSL query
  • NoSQL Timelion query

PSQL contains:

  • Internal Storage SQL query
  • Long Term Storage SQL query

ES Database

a) NoSQL Timelion Query

The user can provide the ES Timelion query in the ES Query.

Design the Report by choosing a column filter, this is used to select the column you would like to display on the generated report, corresponding change will be shown in the table. You can choose up to five filters.

Select the type of report as Table, Chart, or Both. In the case of a Chart, choose the chart type from Line Chart, Vertical Bar Chart, and Area Chart, along with specifying the field you want to represent on the X and Y axes, respectively.

💡Note: Only numerical values are available under the Y-axis.

On clicking Applya report preview will be displayed. This helps to get a view of the report before even scheduling the report.

b) NoSQL DSL Query

Similarly, you should provide the NoSQL Query along with the respective index for that query. Configure the report by choosing the column filter. Select the type of report as Table, Chart, or Both. In the case of a Chart, choose the chart type from Line Chart, Vertical Bar Chart, and Area Chart, along with specifying the field you want to represent on the X and Y axes, respectively. Click on Apply and the report preview will be displayed.

You can refer to the annexure, for a sample Elasticsearch Queries

PSQL Database

a) Long-Term Storage SQL Query:

For the Long-Term Storage SQL Query, the user can provide the Long-term data store query. Configure the report by choosing the column filter. Select the type of report as Table, Chart, or Both. In the case of a Chart, choose the chart type from Line Chart, Vertical Bar Chart, and Area Chart, along with specifying the field you want to represent on the X and Y axes, respectively. Click on Apply and the report preview will be displayed.

b) Internal Storage SQL Query:

For the Internal Storage SQL Query, the user can provide the MySQL query. Configure the report by choosing the column filter. Select the type of report as Table, Chart, or Both. In the case of a Chart, choose the chart type from Line Chart, Vertical Bar Chart, and Area Chart, along with specifying the field you want to represent on the X and Y axes, respectively. Click on Apply and the report preview will be displayed.

You can refer to the annexure, for a sample Long-term storage Queries

HyperScale Database

Hyperscale database provide the provision of creating reports using data model query. For the HyperScale database select the data store as hyperscale, user can provide the SQL query. Configure the report by choosing the column filter. Select the type of report as Table, Chart, or Both. In the case of a Chart, choose the chart type from Line Chart, Vertical Bar Chart, and Area Chart, along with specifying the field you want to represent on the X and Y axes, respectively. Click on Apply,  and the report preview will be displayed.

Data Summarization for Long term data storage

The user can generate a report based on the raw data, daily data, hourly data, and weekly data.

Users need to write queries with the raw table name irrespective of the time period. If the query has a time filter, the system will identify the table from which the data has to be fetched as per the time period.

  • Sample query: Select * from rawdata where time>= ‘$start_time’ and time<=’$end_time’;

Therefore, this is all about creating reports using a Data source. Now, let’s move on to creating Reports using the Data Model.

Data Model

Select the required Data Model and Metric. Click on Submit to preview the data.

Step 3: Schedule to Generate and Distribute 

The step consists of 3 collapsible sections as follows:

  1. Manage Schedule
  2. Report Format
  3. Configure Distribution Channels

Manage Schedule

This section is used for the scheduling frequency of the report.

Click on the Radio button to toggle Schedule Reports.

  • Schedule At: For one-time scheduling, select “Schedule At” time.

  • Periodic schedule: For regular reports, choose the  Recurring Schedule Option.

Report Format

  • Pick the format: PDF and/or CSV. (The user can generate the same report in both formats simultaneously).

💡Note: The CSV format can not be used to generate Reports for

 1. Dashboard as a report

 2. Long-term data storage report using chart

Configure Distribution Channels 

  • Email Subject 
  • Email Description (Optional)
  • Email Groups (Optional)
  • Email ID (Optional)

After setting everything, click Finish to create the Report. You’ll see the new Report on the Report Builder page.

Analytics Reports Preferences

This feature lets you choose how date fields appear in reports. The default format is DD/MM/YYYY hh:mm: ss.

Delete Report

You can delete the reports either using the Delete button at the top or under the Action column.

  • Check the report’s checkbox, then click Delete.
  • You can delete multiple reports together.
  • Confirm the deletion in the window that appears.

💡Note: There are two instances to delete the report: one is from the report listing page under Report Builder, and the other is deleting the generated reports.

Enable/Disable Reports

To enable a report, select its checkbox, which activates the ‘Enable’ button. Click Enable to make the report accessible for users to generate. You can enable multiple reports simultaneously.

To disable a report, select its checkbox, which activates the ‘Disable’ button. Click DisableDisabled reports are not available for users to generate reports. You can disable multiple reports simultaneously.

View

To view how the Report is configured, click on the clickable report name.

On clicking, you will be redirected to the following page. Here you would only be able to view the reports.

Preview and Generate

You can Preview and Generate reports from this tab. To learn more about generating reports refer to Report Generation page. 

Edit

To Edit the Report, click on the Edit button located under the Action column of the respective Report.

On clicking, you will be redirected to the following page. Here, you can make desired changes in the report configuration at any step.

To make any changes in Reports, the following action buttons are available in the top right corner.

  1. Permissions
  2. Duplicate Report

Permissions

With object-level permissions, the user who has admin permission will be able to edit and delete the report. Click on Permissions to manage Object Level Permissions in Reports.

The screen will look like this.

For every role, you can give 3 types of permission.

  • View: The selected user can only view the Reports.
  • Modify: The selected can also modify and make changes to the Reports.
  • None: There are no permissions given.

Duplicate Reports

This option will allow you to duplicate existing reports if you wish to use the existing reports as a template.

On clicking the Duplicate report the pop-up will appear, and by default, the report name will be suffixed as  ” _copy”  to have uniqueness. For example, a duplicate DataModel report will be named DataModel_copy. Users can also rename the report at a  later time.

Click on Save to make a copy of the report.

Preventing Duplicate Report Generation

If a report generation is in progress, the user will be notified that they can’t generate the same report again, until the initial report generation is successful.

Annexure

The Annexure will provide you with some of the sample queries when creating the Report Template using different data sources.

Sample Query

All possible combinations are supported, including Joins, Aggregations, Renaming column names, Mathematical Operations, and Operators.

1.  PSQL Queries

a.  Longterm storage query:

    • select * from availabilitydata;

b. Internal storage query:

    • select * from vusoft_vusoftreports;

2.  Elasticsearch Queries:

  1. Sample NOSQL DSL Query:

Here, the user needs to provide an index along with the query, multiple buckets like Date Histogram, Terms, Significant Terms, Data range, filters, etc., and multiple metrics like sum, count, average count, min, max, etc. aggregations are supported.

Query – {‘_source’: [‘alert_id’, ‘Alert-Rule-Name’, ‘alarm_state’], ‘size’: 100}

Index – vunet-1-1-notification-*

  1. Sample NOSQL Timelion Query:

Here, the user needs to provide an elastic search query including the index and with a time field. Also, multiple buckets like Date Histogram, Terms, Significant Terms, Data range, filters, etc., and multiple metrics like sum, count, average count, min, max, etc. aggregations are supported.

.es(index=vunet-1-1-notification-*, q=*,size=10, timeseries=False)

 

Resources

Browse through our resources to learn how you can accelerate digital transformation within your organisation.

Quick Links