Create Your First Dashboard
This guide walks you through creating your first dashboard in Scout. You'll learn how to explore available metrics, build queries correctly, and visualize your telemetry data in Grafana.
Prerequisites​
- Access to Scout dashboard with Grafana
- Telemetry data flowing from your instrumented applications
- Basic understanding of your services and environments
Step 1: Start from the Metrics Collected Dashboard​
Before creating a dashboard, explore the pre-built Metrics Collected dashboard to understand what data is available.
- Open the Metrics Collected dashboard
- Select:
- Environment - Choose the desired environment (e.g., production, staging)
- Service Name - Pick the service you want to monitor
- Find the metric you want to visualize (from the list or search)
- Use this dashboard to inspect:
- Last 5 values of the metric
- Resource Attributes and Attributes - Note these for filtering later
Note: Record the metric name and relevant attributes. You'll use these when writing queries later.
Step 2: Create a New Dashboard and Add a Panel​
- Go to Dashboards → New → New Dashboard
- Add a New Panel
Step 3: Configure Data Source and Query Settings​
Always Select DS_ScoutAltCH for Data Source​
Always choose DS_ScoutAltCH as your data source.
Query Settings by Table​
Configure the query settings based on which table you're using. The key difference is the Timestamp Column setting.
| Table | Database | Column Type | Timestamp Column | Date Column |
|---|---|---|---|---|
otel_metrics_sum | <org name> | DateTime64 | TimeUnix | Leave default |
otel_metrics_gauge | <org name> | DateTime64 | TimeUnix | Leave default |
otel_metrics_histogram | <org name> | DateTime64 | TimeUnix | Leave default |
otel_metrics_summary | <org name> | DateTime64 | TimeUnix | Leave default |
otel_logs | <org name> | DateTime64 | TimestampTime | Leave default |
otel_traces | <org name> | DateTime64 | Timestamp | Leave default |
Important: For metrics tables, use
TimeUnix. For logs, useTimestampTime. For traces, useTimestamp.
Step 4: Write Your Query​
Use this template for your query:
SELECT ...
FROM $table
WHERE $timeFilter
AND ServiceName = '<service_name>'
AND <MetricName|SpanName> = '<metric_name>'
AND ResourceAttributes['environment'] = '<environment>'
Required WHERE Conditions​
Each query must include the following WHERE conditions:
$timeFilter- Grafana's time range filter (always required)ServiceName = 'value'- The service you're monitoring<MetricName|SpanName> = 'value'- UseMetricNamefor metrics/logs,SpanNamefor tracesResourceAttributes['environment'] = 'value'- The environment (e.g., production, staging)
Time Series Configuration​
For time series queries, make sure the Step field below the query is set
to 1m (1 minute).
Adding More Filters​
You can add more filters based on Attributes or ResourceAttributes for
deeper insights:
AND Attributes['http.method'] = 'GET'
AND ResourceAttributes['host.name'] = 'server-01'
Step 5: Example Panel Query​
Here's a complete example for a CPU usage metric (gauge):
SELECT
$timeSeries AS t,
avg(Value) AS cpu_usage
FROM otel_metrics_gauge
WHERE $timeFilter
AND ServiceName = 'backend-service'
AND MetricName = 'system.cpu.usage'
AND ResourceAttributes['environment'] = 'production'
GROUP BY t
ORDER BY t
Step 6: Save and Organize​
Once your panel displays data correctly:
- Click Apply to save the panel
- Click Save dashboard (disk icon in top right)
- Give your dashboard a descriptive name
- Save it in the Drafts folder initially
- Review the dashboard with your team or QA
- Move it to the appropriate folder once approved
Recommended Folder Organization​
- Drafts - Work-in-progress dashboards
- Production - Approved production monitoring dashboards
- Development - Development environment dashboards
- Team-specific folders - Organized by team or service
Dashboard Creation Checklist​
Before finalizing your dashboard, verify:
- Data Source =
DS_ScoutAltCH - Correct table and timestamp settings
-
$timeFilterincluded in query - Step =
1mfor time series - Required filters: ServiceName, MetricName/SpanName, environment
- Dashboard saved under correct folder
Best Practices​
Query Performance​
- Always include
$timeFilterto limit data scanning - Add ServiceName filter to reduce query scope
- Use specific metric names rather than wildcards
Dashboard Organization​
- Group related panels together
- Use descriptive panel titles and descriptions
- Keep dashboards focused on specific services or use cases
Troubleshooting​
No Data Displayed​
- Verify the time range includes data
- Check that ServiceName matches exactly (case-sensitive)
- Confirm MetricName is spelled correctly
- Verify environment filter matches your data
Query Errors​
- Ensure
$timeFilteris included in WHERE clause - Verify table name matches query settings
- Check timestamp column is correctly configured
- Validate SQL syntax (commas, quotes, brackets)
Related Guides​
- Creating Alerts with LogX - Set up alerts based on your dashboard queries
- Quick Start - Get Scout set up and sending data
References​
- Grafana Dashboard Documentation - Learn about dashboard basics and panel types
- Time Series Panel - Understanding time series visualizations in Grafana