Skip to content

Commit

Permalink
fix: fixed inconsistent dashboard charts
Browse files Browse the repository at this point in the history
  • Loading branch information
mehreentahir16 committed Sep 24, 2021
1 parent 82958f7 commit d82c883
Show file tree
Hide file tree
Showing 21 changed files with 222 additions and 201 deletions.
2 changes: 1 addition & 1 deletion src/data/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
url: https://opensource.newrelic.com/nerdpacks/

- title: Instant observability
icon: nr-build-apps
icon:
url: '/instant-observability'
pages:
- title: Build a quickstart
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/instant-observability/cache-hits.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/instant-observability/errors.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/instant-observability/json-dashboard.png
Binary file not shown.
Binary file added src/images/instant-observability/keys-chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/instant-observability/keys.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/instant-observability/lab.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -84,24 +84,24 @@ This takes you to the same **Add to your dashboard** page. Add another chart to
Run the following query to observe the **average response time** of flashDB queries.

```sql
SELECT average(fdb_create_responses), average(fdb_read_responses), average(fdb_update_responses), average(fdb_delete_responses) FROM Metric SINCE 30 MINUTES AGO TIMESERIES
SELECT average(fdb_create_responses), average(fdb_read_responses), average(fdb_update_responses), average(fdb_delete_responses) FROM Metric TIMESERIES
```

![average response time chart](../../../images/instant-observability/average-response-time.png )
![average response time chart](../../../images/instant-observability/average-response-time-chart.png )

Here, you the observe average response time for different flashDB queries for past 30 minutes. Click **Save** to add this chart to your dashboard. Follow the same procedure to add the rest of the charts.
Here, you the observe average response time for different flashDB queries. Click **Save** to add this chart to your dashboard. Follow the same procedure to add the rest of the charts.

### Errors

For the Errors chart, use the following query:

```sql
SELECT sum(fdb_create_errors), sum(fdb_read_errors), sum(fdb_update_errors), sum(fdb_delete_errors) FROM Metric SINCE 60 MINUTES AGO TIMESERIES
SELECT sum(fdb_create_errors), sum(fdb_read_errors), sum(fdb_update_errors), sum(fdb_delete_errors) FROM Metric TIMESERIES
```

Here, you observe errors for all database transactions for the past one hour.
Here, you observe errors for all database queries.

![errors chart](../../../images/instant-observability/errors.png )
![errors chart](../../../images/instant-observability/errors-chart.png )

### Database size

Expand All @@ -120,28 +120,28 @@ This chart shows you the database size.
For the cache hits charts, use the following query:

```sql
SELECT sum(fdb_cache_hits) FROM Metric SINCE 30 MINUTES AGO TIMESERIES
SELECT sum(fdb_cache_hits) FROM Metric TIMESERIES
```

![cache hits chart](../../../images/instant-observability/cache-hits.png )
![cache hits chart](../../../images/instant-observability/cache-hits-chart.png )

Here, you observe the total number of cache hits for past 30 minutes using line chart.
Here, you observe the total number of cache hits using line chart.

### Keys

Use the following query to get keys chart.

```sql
SELECT count(fdb_keys) FROM Metric SINCE 5 MINUTES AGO TIMESERIES
SELECT count(fdb_keys) FROM Metric TIMESERIES
```

![keys chart](../../../images/instant-observability/keys.png )
![keys chart](../../../images/instant-observability/keys-chart.png )

Here, you observe the flashDB key count for past 5 minutes.
Here, you observe the flashDB key count.

Your final dashboard will look similar to the following:

![dashboard with charts](../../../images/instant-observability/dashboard-final.png )
![dashboard with charts](../../../images/instant-observability/final-dashboard.png )

## Summary

Expand Down
Loading

0 comments on commit d82c883

Please sign in to comment.