sitespeed.io icon indicating copy to clipboard operation
sitespeed.io copied to clipboard

docker-compose example not uploading data to dashboard

Open just-be-dev opened this issue 9 years ago • 2 comments

OS: OS X 10.11.6 Docker version 1.12.5, build 7392c3b docker-compose version 1.9.0, build 2585387

I'm following the directions for the docker-compose performance-dashboard and I'm not able to get the Up and running in 5 minutes section to work. The dashboard stands up, the tests run, it seems to upload the data to the dashboard, but I'm not actually seeing the data.

Here's the commands I've run:

curl -O https://raw.githubusercontent.com/sitespeedio/sitespeed.io/master/docker/docker-compose.yml
docker-compose up

# different window, same directory
docker-compose run sitespeed.io https://www.sitespeed.io/ --graphite.host=graphite

Output of docker-compose up

Attaching to sitespeed_graphite_1, sitespeed_sitespeed.io_1, sitespeed_grafana_1, sitespeed_grafana-setup_1
graphite_1       | *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Starting Grafana" logger=main version=4.0.2 commit=v4.0.2 compiled=2016-12-08T13:04:08+0000
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Config loaded from" logger=settings file=/usr/share/grafana/conf/defaults.ini
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Config loaded from" logger=settings file=/etc/grafana/grafana.ini
sitespeed.io_1   | Google Chrome 55.0.2883.87 
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Config overriden from command line" logger=settings arg="default.paths.data=/var/lib/grafana"
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Config overriden from command line" logger=settings arg="default.paths.logs=/var/log/grafana"
grafana-setup_1  | Waiting for Grafana API  
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Config overriden from command line" logger=settings arg="default.paths.plugins=/var/lib/grafana/plugins"
grafana-setup_1  |  
sitespeed.io_1   | Mozilla Firefox 50.1.0
graphite_1       | *** Running /etc/rc.local...
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Config overriden from Environment variable" logger=settings var="GF_SECURITY_ADMIN_USER=sitespeedio"
grafana-setup_1  | ------------------
sitespeed.io_1   | /usr/src/app/bin/sitespeed.js [options] <url>/<file>
grafana-setup_1  | Adding datasources
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Config overriden from Environment variable" logger=settings var="GF_SECURITY_ADMIN_PASSWORD=*********"
sitespeed.io_1   | 
graphite_1       | *** Booting runit daemon...
grafana-setup_1  | ------------------
sitespeed.io_1   | Browser
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Config overriden from Environment variable" logger=settings var="GF_USERS_ALLOW_SIGN_UP=false"
sitespeed.io_1   |   --browsertime.browser, -b, --browser                         Choose which Browser to use when you test.  [choices: "chrome", "firefox"] [default: "chrome"]
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Config overriden from Environment variable" logger=settings var="GF_USERS_ALLOW_ORG_CREATE=false"
graphite_1       | *** Runit started as PID 10
sitespeed.io_1   |   --browsertime.iterations, -n                                 How many times you want to test each page  [default: 3]
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Config overriden from Environment variable" logger=settings var="GF_AUTH_ANONYMOUS_ENABLED=true"
sitespeed.io_1   |   --browsertime.connectivity.profile, -c, --connectivity       The connectivity profile.  [choices: "3g", "3gfast", "3gslow", "2g", "cable", "native", "custom"] [default: "native"]
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Path Home" logger=settings path=/usr/share/grafana
sitespeed.io_1   |   --browsertime.connectivity.downstreamKbps, --downstreamKbps  This option requires --connectivity be set to "custom".
sitespeed.io_1   |   --browsertime.connectivity.upstreamKbps, --upstreamKbps      This option requires --connectivity be set to "custom".
sitespeed.io_1   |   --browsertime.connectivity.latency, --latency                This option requires --connectivity be set to "custom".
sitespeed.io_1   |   --browsertime.connectivity.tsproxy.port                      The port used for TSProxy  [default: 1080]
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Path Data" logger=settings path=/var/lib/grafana
sitespeed.io_1   |   --browsertime.connectivity.engine                            The engine for connectivity. TSProxy needs Python 2.7. TC (Linux Traffic Control) needs tc work. If you run inside Docker use tc.  [choices: "tc", "tsproxy"] [default: "tsproxy"]
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Path Logs" logger=settings path=/var/log/grafana
sitespeed.io_1   |   --browsertime.pageCompleteCheck                              Supply a Javascript that decides when the browser is finished loading the page and can start to collect metrics. The Javascript snippet is repeatedly queried to see if page has completed loading (indicated by the script returning true). Use it to fetch timings happening after the loadEventEnd.
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Path Plugins" logger=settings path=/var/lib/grafana/plugins
sitespeed.io_1   |   --browsertime.script, --script                               Add custom Javascript that collect metrics and run after the page has finished loading. Note that --script can be passed multiple times if you want to collect multiple metrics. The metrics will automatically be pushed to the summary/detailed summary and each individual page + sent to Graphite/InfluxDB.
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Initializing DB" logger=sqlstore dbtype=sqlite3
sitespeed.io_1   |   --browsertime.selenium.url                                   Configure the path to the Selenium server when fetching timings using browsers. If not configured the supplied NodeJS/Selenium version is used.
sitespeed.io_1   |   --browsertime.viewPort                                       The browser view port size WidthxHeight like 400x300  [default: "1366x708"]
sitespeed.io_1   |   --browsertime.userAgent                                      The full User Agent string, defaults to the User Agent used by the browsertime.browser option.
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Starting DB migration" logger=migrator
sitespeed.io_1   |   --browsertime.preScript, --preScript                         Selenium script(s) to run before you test your URL (use it for login, warm the cache, etc). Note that --preScript can be passed multiple times.
sitespeed.io_1   |   --browsertime.postScript, --postScript                       Selenium script(s) to run after you test your URL (use it for logout etc). Note that --postScript can be passed multiple times.
sitespeed.io_1   |   --browsertime.delay                                          Delay between runs, in milliseconds. Use it if your web server needs to rest between runs :)
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Executing migration" logger=migrator id="copy data account to org"
sitespeed.io_1   |   --browsertime.speedIndex, --speedIndex                       Calculate SpeedIndex. Requires FFMpeg and python dependencies  [boolean]
sitespeed.io_1   |   --browsertime.video, --video                                 Record a video. Requires FFMpeg to be installed  [boolean]
sitespeed.io_1   |   --browsertime.preURL, --preURL                               A URL that will be accessed first by the browser before the URL that you wanna analyze. Use it to fill the cache.
sitespeed.io_1   | 
sitespeed.io_1   | Crawler
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Skipping migration condition not fulfilled" logger=migrator id="copy data account to org"
sitespeed.io_1   |   --crawler.depth, -d     How deep to crawl (1=only one page, 2=include links from first page, etc.)
sitespeed.io_1   |   --crawler.maxPages, -m  The max number of pages to test. Default is no limit.
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Executing migration" logger=migrator id="copy data account_user to org_user"
sitespeed.io_1   | 
sitespeed.io_1   | Graphite
sitespeed.io_1   |   --graphite.host                The Graphite host used to store captured metrics.
sitespeed.io_1   |   --graphite.port                The Graphite port used to store captured metrics.  [default: 2003]
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Skipping migration condition not fulfilled" logger=migrator id="copy data account_user to org_user"
sitespeed.io_1   |   --graphite.namespace           The namespace key added to all captured metrics.  [default: "sitespeed_io.default"]
sitespeed.io_1   |   --graphite.includeQueryParams  Whether to include query paramaters from the URL in the Graphite keys or not  [boolean] [default: false]
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Starting plugin search" logger=plugins
sitespeed.io_1   | 
sitespeed.io_1   | Plugins
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Initializing CleanUpService" logger=cleanup
sitespeed.io_1   |   --plugins.list     List all configured plugins in the log.  [boolean] [default: false]
sitespeed.io_1   |   --plugins.disable  Disable a plugin. Use it to disable generating html or screenshots.  [array]
sitespeed.io_1   |   --plugins.load     Extra plugins that you want to run. Relative or absolute path to the plugin.  [array]
sitespeed.io_1   | 
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Initializing Alerting" logger=alerting.engine
sitespeed.io_1   | Budget
sitespeed.io_1   |   --budget         Path to the JSON budget file.
sitespeed.io_1   |   --budget.output  The output format of the budget.  [choices: "junit", "tap"]
sitespeed.io_1   | 
sitespeed.io_1   | Metrics
sitespeed.io_1   |   --metrics.list        List all possible metrics in the data folder (metrics.txt).  [boolean] [default: false]
sitespeed.io_1   |   --metrics.filterList  List all configured filters for metrics in the data folder (configuredMetrics.txt)  [boolean] [default: false]
grafana_1        | t=2017-01-05T14:46:38+0000 lvl=info msg="Initializing HTTP Server" logger=server address=0.0.0.0:3000 protocol=http subUrl=
sitespeed.io_1   |   --metrics.filter      Add/change/remove filters for metrics. If you want to send all metrics, use: *+ . If you want to remove all current metrics and send only the coach score: *- coach.summary.score.*  [array]
sitespeed.io_1   | 
sitespeed.io_1   | WebPageTest
sitespeed.io_1   |   --webpagetest.host          The domain of your WebPageTest instance.  [default: "https://www.webpagetest.org"]
sitespeed.io_1   |   --webpagetest.key           The API key for you WebPageTest instance.
sitespeed.io_1   |   --webpagetest.location      The location for the test  [default: "Dulles:Chrome"]
sitespeed.io_1   |   --webpagetest.connectivity  The connectivity for the test.  [default: "Cable"]
sitespeed.io_1   |   --webpagetest.runs          The number of runs per URL.  [default: 3]
sitespeed.io_1   |   --webpagetest.custom        Execute arbitrary Javascript at the end of a test to collect custom metrics.
sitespeed.io_1   |   --webpagetest.script        Path to a script file
sitespeed.io_1   | 
sitespeed.io_1   | gpsi
sitespeed.io_1   |   --gpsi.key  The key to use Google Page Speed Insight
sitespeed.io_1   | 
sitespeed.io_1   | Slack
sitespeed.io_1   |   --slack.hookUrl       WebHook url for the Slack team (check https://<your team>.slack.com/apps/manage/custom-integrations).
sitespeed.io_1   |   --slack.userName      User name to use when posting status to Slack.  [default: "Sitespeed.io"]
sitespeed.io_1   |   --slack.channel       The slack channel without the # (if something else than the default channel for your hook).
sitespeed.io_1   |   --slack.type          Send summary for a run, metrics from all URLs, only on errors or all to Slack.  [choices: "summary", "url", "error", "all"] [default: "all"]
sitespeed.io_1   |   --slack.limitWarning  The limit to get a warning in Slack using the limitMetric  [default: 80]
sitespeed.io_1   |   --slack.limitError    The limit to get a error in Slack using the limitMetric  [default: 90]
sitespeed.io_1   |   --slack.limitMetric   The metric that will be used to set warning/error  [choices: "coachScore", "speedIndex", "firstVisualChange"] [default: "coachScore"]
sitespeed.io_1   | 
sitespeed.io_1   | HTML
sitespeed.io_1   |   --html.showAllWaterfallSummary  Set to true to show all waterfalls on page summary HTML report  [boolean] [default: false]
sitespeed.io_1   | 
sitespeed.io_1   | text
sitespeed.io_1   |   --summary         Show brief text summary to stdout  [boolean] [default: false]
sitespeed.io_1   |   --summary-detail  Show longer text summary to stdout  [boolean] [default: false]
sitespeed.io_1   | 
sitespeed.io_1   | Options:
sitespeed.io_1   |   --version, -V   Show version number  [boolean]
sitespeed.io_1   |   --debug         Debug mode logs all internal messages to the console.  [boolean] [default: false]
sitespeed.io_1   |   --verbose, -v   Verbose mode prints progress messages to the console. Enter up to three times (-vvv) to increase the level of detail.  [count]
sitespeed.io_1   |   --mobile        Access pages as mobile a fake mobile device. Set UA and width/height. For Chrome it will use device Apple iPhone 6.  [boolean] [default: false]
sitespeed.io_1   |   --outputFolder  The folder where the result will be stored.
sitespeed.io_1   |   --firstParty    A regex running against each request and categorize it as first vs third party URL. (ex: ".*sitespeed.*")
sitespeed.io_1   |   --utc           Use Coordinated Universal Time for timestamps  [boolean] [default: false]
sitespeed.io_1   |   --config        Path to JSON config file
sitespeed.io_1   |   --help, -h      Show help  [boolean]
sitespeed.io_1   | 
sitespeed.io_1   | Read the docs at https://www.sitespeed.io/documentation/sitespeed.io/
sitespeed.io_1   | 
sitespeed.io_1   | urlOrFile
sitespeed_sitespeed.io_1 exited with code 1
grafana-setup_1  | Datasource already exists: /datasources/graphite.json
grafana-setup_1  |  
grafana-setup_1  | ------------------
grafana-setup_1  | Adding dashboards
grafana-setup_1  | ------------------
grafana-setup_1  |  
grafana-setup_1  | /dashboards/3rdvs1stparty.json
grafana-setup_1  | {"pluginId":"","title":"3rd vs 1st party","imported":true,"importedUri":"db/3rd-vs-1st-party","slug":"","importedRevision":1,"revision":1,"description":"","path":"","removed":false} 
grafana-setup_1  |  
grafana-setup_1  | /dashboards/pageCostEstimator.json
grafana-setup_1  | {"pluginId":"","title":"Page Cost Estimator","imported":true,"importedUri":"db/page-cost-estimator","slug":"","importedRevision":1,"revision":1,"description":"","path":"","removed":false} 
grafana-setup_1  |  
grafana-setup_1  | /dashboards/pageSummary.json
grafana-setup_1  | {"pluginId":"","title":"Page summary","imported":true,"importedUri":"db/page-summary","slug":"","importedRevision":1,"revision":1,"description":"","path":"","removed":false} 
grafana-setup_1  |  
grafana-setup_1  | /dashboards/siteSummary.json
grafana-setup_1  | {"pluginId":"","title":"Site summary","imported":true,"importedUri":"db/site-summary","slug":"","importedRevision":1,"revision":1,"description":"","path":"","removed":false} 
grafana-setup_1  |  
grafana-setup_1  | /dashboards/timings.json
grafana-setup_1  | {"pluginId":"","title":"Timings","imported":true,"importedUri":"db/timings","slug":"","importedRevision":1,"revision":1,"description":"","path":"","removed":false} 
grafana-setup_1  |  
grafana-setup_1  | /dashboards/visualMetrics.json
grafana-setup_1  | {"pluginId":"","title":"Visual metrics","imported":true,"importedUri":"db/visual-metrics","slug":"","importedRevision":1,"revision":1,"description":"","path":"","removed":false} 
grafana-setup_1  |  
grafana-setup_1  | /dashboards/wptPageSummary.json
grafana-setup_1  | {"pluginId":"","title":"WebPageTest page summary","imported":true,"importedUri":"db/webpagetest-page-summary","slug":"","importedRevision":1,"revision":1,"description":"","path":"","removed":false} 
grafana-setup_1  |  
grafana-setup_1  | /dashboards/wptSiteSummary.json
grafana-setup_1  | {"pluginId":"","title":"WebPageTest site summary","imported":true,"importedUri":"db/webpagetest-site-summary","slug":"","importedRevision":1,"revision":1,"description":"","path":"","removed":false} 
grafana-setup_1  |  
grafana-setup_1  | ------------------
grafana-setup_1  | Done!
grafana-setup_1  | ------------------
sitespeed_grafana-setup_1 exited with code 0

Output of docker-compose run (with args)

Google Chrome 55.0.2883.87 
Mozilla Firefox 50.1.0
[2017-01-05 14:47:08] Versions OS: linux 4.4.39-moby nodejs: v6.9.1 sitespeed.io: 4.3.2 browsertime: 1.0.0-beta.19 coach: 0.30.1
[2017-01-05 14:47:08] Starting chrome for analysing https://www.sitespeed.io/ 3 time(s)
[2017-01-05 14:47:08] Testing url https://www.sitespeed.io/ run 1
[2017-01-05 14:47:12] Testing url https://www.sitespeed.io/ run 2
[2017-01-05 14:47:17] Testing url https://www.sitespeed.io/ run 3
[2017-01-05 14:47:21] 9 requests, 90.56 kb, firstPaint: 583ms (±19.37ms), DOMContentLoaded: 567ms (±16.20ms), Load: 714ms (±13.82ms), rumSpeedIndex: 612 (±9.65) (3 runs)
[2017-01-05 14:47:21] Send data to Graphite graphite:2003
[2017-01-05 14:47:21] Send data to Graphite graphite:2003
[2017-01-05 14:47:21] Send data to Graphite graphite:2003
[2017-01-05 14:47:21] Send data to Graphite graphite:2003
[2017-01-05 14:47:21] Send data to Graphite graphite:2003
[2017-01-05 14:47:21] Send data to Graphite graphite:2003
[2017-01-05 14:47:21] Send data to Graphite graphite:2003
[2017-01-05 14:47:21] Render HTML for 1 page(s) 
[2017-01-05 14:47:23] HTML stored in /sitespeed.io/sitespeed-result/www.sitespeed.io/2017-01-05-14-47-08
[2017-01-05 14:47:23] Finished analysing https://www.sitespeed.io/

Can anyone spot an issue that I'm missing?

just-be-dev avatar Jan 05 '17 14:01 just-be-dev

@zephraph Check #1409 and #1407, it's not just you having a problem chuck :)

Geekaylee avatar Jan 05 '17 14:01 Geekaylee

Thanks, I'll close this in favor of those.

just-be-dev avatar Jan 05 '17 14:01 just-be-dev