kyletaylored / fastly-dashboard

Create a Grafana environment using only Lando.
2 stars 1 forks source link

Lando tooling, and or additional Run steps #10

Open ccharlton opened 4 years ago

ccharlton commented 4 years ago

Lando could help on RUN to :

ccharlton commented 4 years ago

Tooling snippets for .lando.yml from what I was playing with earlier:

tooling:

  dashboard-install:
    service: grafana
    description: Install script for Grafana dashboard and plugins
    cmd:
      - /app/install.sh

  dashboard-import-data:
    service: database
    description: Import data into dashboard (.csv, .log)
    cmd:
      - mysqlimport --ignore-lines=1 --fields-terminated-by=, --local -u DBUSER -p DBNAME FILENAME.csv

  dashboard-list-plugins:
    service: grafana
    description: List all installed Grafana dashboard plugins
    cmd:
      - grafana-cli plugins ls

  dashboard-update-plugins:
    service: grafana
    description: Update all installed Grafana dashboard plugins
    cmd:
      - lando dashboard-list-plugins
      - grafana-cli plugins update-all
kyletaylored commented 4 years ago

I would say yes to data import/export, but not the updating or headless Chrome. We're already pulling the latest Grafana, so if we really need to, we could just stick it at a version (including the plugin). And for saving the report, I found this Chrome extension called SingleFile that will save full webpages into a single HTML file, so we can either use that or just take a screenshot. I don't think the overhead of headless Chrome would be worth it.