Once your account has been created, you'll be on your account dashboard. There, you should launch your Grafana instance by clicking the "Launch" button.
At this point, you'll be redirected to your Grafana instance. There, you must go to "Connections" and add a new connection of type "Hosted prometheus Metrics".
When creating a new connection, choose "Via Grafana Agent".
Next, follow the wizard, install the agent, and create a new config.
Follow, the steps to create the config file, and start the agent on your server. To keep the agent running, you might use something like Supervisord (Laravel Forge users can just create a daemon)
In the scrape_configs key of the config, you should add a job to scrape the /prometheus endpoint of your Laravel application. For example:
global:scrape_interval: 10sconfigs: - name: hosted-prometheusscrape_configs: - job_name: laravelscrape_interval: 10smetrics_path: /prometheusstatic_configs: - targets: ['your-app.com']remote_write: - url: <filled in by the wizard>basic_auth:username: <filled in by the wizard>password: <filled in by the wizard>
Of course, you should replace your-app.com with the domain of your application.