Class: Mysqlcollector::Template
- Defined in:
- lib/mysqlcollector/template.rb
Instance Method Summary collapse
Instance Method Details
#grafana ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/mysqlcollector/template.rb', line 5 def grafana path = File.(File.join(Dir.pwd, '/assets/grafana_dashboard.json')) file = File.open(path, 'r') file.each_line do |line| puts line end file.close end |