Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: one URL, mobile and desktop #19

Open
roman-vohnik opened this issue May 28, 2019 · 1 comment
Open

Question: one URL, mobile and desktop #19

roman-vohnik opened this issue May 28, 2019 · 1 comment

Comments

@roman-vohnik
Copy link

Hi there, first of all thanks for awesome work on this project!

Can I somehow add some configurable additional key or label next to URL? I need to test one URL once for mobile (it's default) and secend time with desktop settings. If I add them simply like in next config, URL is correctly tested twice, but in grafana, they are of course under same url key - I cannot filter them by mobile/desktop.

	"cron": "*/5 * * * *",
	"urls": [
		{
			"url": "https://www.example.com",
			"plugins": [
				{
					"name": "lighthouse",
					"report": true
				}
			]
		},
		{
			"url": "https://www.example.com",
			"plugins": [
				{
					"name": "lighthouse",
					"report": true,
					"config": {
						"extends": "lighthouse:default",
						"settings": {
							"emulatedFormFactor": "desktop"
						}
					}
		  		}
			]
		}
	]
}

I am thinking about this workaround, but I am not sure - make another docker-compose with own influxdb and lighthouse with desktop. So there will be two influxdb instances connected to grafana, lighhouse in each of them.

@vlastoun
Copy link

vlastoun commented Jun 5, 2019

i had that issue few months ago and i forked and changed some logic and i can add tags to my configuration.... i will upload my solution...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants