boyney123 / garie-lighthouse

Lighthouse Garie plugin. Polls websites to checkout performance metrics also supports webhooks.
MIT License
50 stars 24 forks source link

Question: one URL, mobile and desktop #19

Open roman-vohnik opened 5 years ago

roman-vohnik commented 5 years ago

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 commented 5 years ago

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...