pg_insights 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +183 -0
- data/Rakefile +8 -0
- data/app/assets/javascripts/pg_insights/application.js +436 -0
- data/app/assets/javascripts/pg_insights/health.js +104 -0
- data/app/assets/javascripts/pg_insights/results/chart_renderer.js +126 -0
- data/app/assets/javascripts/pg_insights/results/table_manager.js +378 -0
- data/app/assets/javascripts/pg_insights/results/view_toggles.js +25 -0
- data/app/assets/javascripts/pg_insights/results.js +13 -0
- data/app/assets/stylesheets/pg_insights/application.css +750 -0
- data/app/assets/stylesheets/pg_insights/health.css +501 -0
- data/app/assets/stylesheets/pg_insights/results.css +682 -0
- data/app/controllers/pg_insights/application_controller.rb +4 -0
- data/app/controllers/pg_insights/health_controller.rb +110 -0
- data/app/controllers/pg_insights/insights_controller.rb +77 -0
- data/app/controllers/pg_insights/queries_controller.rb +44 -0
- data/app/helpers/pg_insights/application_helper.rb +4 -0
- data/app/helpers/pg_insights/insights_helper.rb +190 -0
- data/app/jobs/pg_insights/application_job.rb +4 -0
- data/app/jobs/pg_insights/health_check_job.rb +45 -0
- data/app/jobs/pg_insights/health_check_scheduler_job.rb +52 -0
- data/app/jobs/pg_insights/recurring_health_checks_job.rb +49 -0
- data/app/models/pg_insights/application_record.rb +5 -0
- data/app/models/pg_insights/health_check_result.rb +46 -0
- data/app/models/pg_insights/query.rb +10 -0
- data/app/services/pg_insights/health_check_service.rb +298 -0
- data/app/services/pg_insights/insight_query_service.rb +21 -0
- data/app/views/layouts/pg_insights/application.html.erb +58 -0
- data/app/views/pg_insights/health/index.html.erb +324 -0
- data/app/views/pg_insights/insights/_chart_view.html.erb +25 -0
- data/app/views/pg_insights/insights/_column_panel.html.erb +18 -0
- data/app/views/pg_insights/insights/_query_examples.html.erb +32 -0
- data/app/views/pg_insights/insights/_query_panel.html.erb +36 -0
- data/app/views/pg_insights/insights/_result.html.erb +15 -0
- data/app/views/pg_insights/insights/_results_info.html.erb +19 -0
- data/app/views/pg_insights/insights/_results_panel.html.erb +13 -0
- data/app/views/pg_insights/insights/_results_table.html.erb +45 -0
- data/app/views/pg_insights/insights/_stats_view.html.erb +3 -0
- data/app/views/pg_insights/insights/_table_controls.html.erb +21 -0
- data/app/views/pg_insights/insights/_table_view.html.erb +5 -0
- data/app/views/pg_insights/insights/index.html.erb +5 -0
- data/config/default_queries.yml +85 -0
- data/config/routes.rb +22 -0
- data/lib/generators/pg_insights/clean_generator.rb +74 -0
- data/lib/generators/pg_insights/install_generator.rb +176 -0
- data/lib/pg_insights/engine.rb +40 -0
- data/lib/pg_insights/version.rb +3 -0
- data/lib/pg_insights.rb +83 -0
- data/lib/tasks/pg_insights.rake +172 -0
- metadata +124 -0
metadata
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pg_insights
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mezbah Alam
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2025-06-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '6.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '6.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: chartkick
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5.1'
|
41
|
+
description: PgInsights provides a plug-and-play insights dashboard for analyzing
|
42
|
+
PostgreSQL performance and query data inside any Rails application.
|
43
|
+
email:
|
44
|
+
- mezbah@infolily.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- MIT-LICENSE
|
50
|
+
- README.md
|
51
|
+
- Rakefile
|
52
|
+
- app/assets/javascripts/pg_insights/application.js
|
53
|
+
- app/assets/javascripts/pg_insights/health.js
|
54
|
+
- app/assets/javascripts/pg_insights/results.js
|
55
|
+
- app/assets/javascripts/pg_insights/results/chart_renderer.js
|
56
|
+
- app/assets/javascripts/pg_insights/results/table_manager.js
|
57
|
+
- app/assets/javascripts/pg_insights/results/view_toggles.js
|
58
|
+
- app/assets/stylesheets/pg_insights/application.css
|
59
|
+
- app/assets/stylesheets/pg_insights/health.css
|
60
|
+
- app/assets/stylesheets/pg_insights/results.css
|
61
|
+
- app/controllers/pg_insights/application_controller.rb
|
62
|
+
- app/controllers/pg_insights/health_controller.rb
|
63
|
+
- app/controllers/pg_insights/insights_controller.rb
|
64
|
+
- app/controllers/pg_insights/queries_controller.rb
|
65
|
+
- app/helpers/pg_insights/application_helper.rb
|
66
|
+
- app/helpers/pg_insights/insights_helper.rb
|
67
|
+
- app/jobs/pg_insights/application_job.rb
|
68
|
+
- app/jobs/pg_insights/health_check_job.rb
|
69
|
+
- app/jobs/pg_insights/health_check_scheduler_job.rb
|
70
|
+
- app/jobs/pg_insights/recurring_health_checks_job.rb
|
71
|
+
- app/models/pg_insights/application_record.rb
|
72
|
+
- app/models/pg_insights/health_check_result.rb
|
73
|
+
- app/models/pg_insights/query.rb
|
74
|
+
- app/services/pg_insights/health_check_service.rb
|
75
|
+
- app/services/pg_insights/insight_query_service.rb
|
76
|
+
- app/views/layouts/pg_insights/application.html.erb
|
77
|
+
- app/views/pg_insights/health/index.html.erb
|
78
|
+
- app/views/pg_insights/insights/_chart_view.html.erb
|
79
|
+
- app/views/pg_insights/insights/_column_panel.html.erb
|
80
|
+
- app/views/pg_insights/insights/_query_examples.html.erb
|
81
|
+
- app/views/pg_insights/insights/_query_panel.html.erb
|
82
|
+
- app/views/pg_insights/insights/_result.html.erb
|
83
|
+
- app/views/pg_insights/insights/_results_info.html.erb
|
84
|
+
- app/views/pg_insights/insights/_results_panel.html.erb
|
85
|
+
- app/views/pg_insights/insights/_results_table.html.erb
|
86
|
+
- app/views/pg_insights/insights/_stats_view.html.erb
|
87
|
+
- app/views/pg_insights/insights/_table_controls.html.erb
|
88
|
+
- app/views/pg_insights/insights/_table_view.html.erb
|
89
|
+
- app/views/pg_insights/insights/index.html.erb
|
90
|
+
- config/default_queries.yml
|
91
|
+
- config/routes.rb
|
92
|
+
- lib/generators/pg_insights/clean_generator.rb
|
93
|
+
- lib/generators/pg_insights/install_generator.rb
|
94
|
+
- lib/pg_insights.rb
|
95
|
+
- lib/pg_insights/engine.rb
|
96
|
+
- lib/pg_insights/version.rb
|
97
|
+
- lib/tasks/pg_insights.rake
|
98
|
+
homepage: https://github.com/mezbahalam/pg_insights
|
99
|
+
licenses:
|
100
|
+
- MIT
|
101
|
+
metadata:
|
102
|
+
homepage_uri: https://github.com/mezbahalam/pg_insights
|
103
|
+
source_code_uri: https://github.com/mezbahalam/pg_insights
|
104
|
+
changelog_uri: https://github.com/mezbahalam/pg_insights/blob/main/CHANGELOG.md
|
105
|
+
post_install_message:
|
106
|
+
rdoc_options: []
|
107
|
+
require_paths:
|
108
|
+
- lib
|
109
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
requirements: []
|
120
|
+
rubygems_version: 3.4.19
|
121
|
+
signing_key:
|
122
|
+
specification_version: 4
|
123
|
+
summary: PostgreSQL insights dashboard engine for Rails applications.
|
124
|
+
test_files: []
|