You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sample-dashboard/README.md
+21-28Lines changed: 21 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,36 +4,42 @@ A dashboard providing Ruby on Rails performance insights based on
4
4
[Free Software](https://www.fsf.org/about/what-is-free-software), ready to
5
5
run inside your data-center.
6
6
7
-

7
+

8
8
9
-
By default it measures (in various forms):
9
+
By default it measures (in various forms) performance of:
10
10
11
-
- Controller Action Runtime
12
-
- View/Partial Render Runtime
13
-
- Database Query Runtime
11
+
- Controller Actions
12
+
- View/Partial Rendering
13
+
- Database Queries
14
+
- ActiveJobs
15
+
- ActionMailers
14
16
15
-
It provides an overview and you can also drill down into numbers on a per request basis. Of course you can use all the awesome features that Influx (Downsampling/Data Retention), Grafana (Alerts, Annotations) and influxdb-rails (custom tags) provide and extend this to your needs. Use your freedom and run, copy, distribute, study, change and improve this software!
17
+
The dashboards provide an overview and various ways to drill down into numbers on a per request or per action basis. Of course you can use all the awesome features that Influx (Downsampling/Data Retention), Grafana (Alerts, Annotations) and influxdb-rails (custom tags) provide and extend this to your needs. Use your freedom and run, copy, distribute, study, change and improve this software!
16
18
17
19
## Requirements
18
20
19
-
To be able to measure performance you need the following things available:
21
+
To be able to measure performance of your Ruby on Rails application you need to have the following things available:
-[Ruby On Rails Performance Overview](https://grafana.com/dashboards/10428/)
33
+
- Performance insights into individual requests, see [Ruby On Rails Performance per Request](https://grafana.com/dashboards/10429/)
34
+
- Performance of individual actions, see [Ruby On Rails Performance per Action](https://grafana.com/grafana/dashboards/11031)
35
+
-[Ruby On Rails Health Overview](https://grafana.com/grafana/dashboards/14115)
36
+
-[Ruby on Rails ActiveJob Overview](https://grafana.com/grafana/dashboards/14116)
37
+
-[Ruby on Rails Slowlog by Request](https://grafana.com/grafana/dashboards/14118)
38
+
-[Ruby on Rails Slowlog by Action](https://grafana.com/grafana/dashboards/14117)
39
+
-[Ruby on Rails Slowlog by SQL](https://grafana.com/grafana/dashboards/14119)
32
40
33
41
You can also paste the `.json` files from this repository.
34
42
35
-
In the unlikely case that you need to change the dashboard *UID*s during import you can configure the *UID* the `Overview` dashboard uses to link to the `Request` dashboard in the [variables](https://grafana.com/docs/reference/templating/#adding-a-variable). Just paste whatever *UID* you've set up for the `Request` dashboard.
36
-
37
43
## Demo
38
44
39
45
This repository includes a [docker-compose](https://docs.docker.com/compose/) demo setup that brings a simple rails app, influxdb and grafana.
@@ -54,19 +60,6 @@ Go to http://0.0.0.0:4000 and do some things. Every request to the rails app wil
54
60
55
61
You can also use the dashboard with any other rails app you already have. Follow our [install instructions](https://github.com/influxdata/influxdb-rails/#installation), the default configuration works with the demo InfluxDB running on localhost:8086.
56
62
57
-
To be able to view individual requests you have to enable request ID tags in your application. Something like:
0 commit comments