Run Metribay yourself
Self-hosted, Lično izdanje, je Metribay na tvom serveru. Besplatno, open source, Apache-2.0.
Is it right for you?
Section titled “Is it right for you?”| Self-hosted | Metribay Cloud | |
|---|---|---|
| Cost | Free | See Plans and billing |
| People | One person | Teams with roles |
| Workspaces | One, in the background | Up to 5 |
| Projects and data sources | No limit | 10 and 50 active |
| Integrations | All seven | All seven |
| Updates, backups, uptime | You | Us |
| Google sign-in button | Your own Google app | Provided when available |
Self-hosting ako znaš PHP app i sopstveni hardver. Cloud ako ne želiš server ops ili tim.
Requirements
Section titled “Requirements”- PHP 8.5+ sa cURL, OpenSSL, PDO (SQLite or PostgreSQL), intl, mbstring
- Composer 2
- SQLite or PostgreSQL
- systemd/Supervisor + cron za pozadinske procese
- Node 24 samo za rebuild frontend-a; release uključuje assets
Install
Section titled “Install”-
Iz root-a repozitorijuma, pa app:
Terminal window ./scripts/setup.shcd standalone -
Nalog (lozinka se pita privatno):
Terminal window -
Web server. Brzi lokalni:
Terminal window php artisan serve --host=127.0.0.1 --port=8000Produkcija:
standalone/publicpreko HTTPS. -
Queue worker + scheduler:
Terminal window php artisan queue:work --timeout=900php artisan schedule:workProdukcija: process manager + cron
php artisan schedule:runsvakog minuta.
Sign in sa install email/password. Registration off — jedan nalog.
How collection runs
Section titled “How collection runs”Scheduler: collection svaka 4h, uptime hourly, full history weekly — kao Cloud. Treba queue worker + scheduler.
Ručni sync:
php artisan metribay:sync # queue every active data sourcephp artisan metribay:sync --kind=github # only one providerphp artisan metribay:sync --except=uptimerobotphp artisan metribay:sync --source=12 # one data source by IDphp artisan metribay:sync --full # reread the whole history windowphp artisan metribay:sync --inline # run now, without the queueConnecting providers
Section titled “Connecting providers”Sopstveni credentials po integration guides. Ništa kroz Metribay servere.
Poveži Google za Analytics/Search Console — sopstveni OAuth client:
-
Google Cloud: enable Analytics Admin, Analytics Data, Search Console APIs.
-
OAuth Web application, redirect:
https://metribay.example.com/integrations/google/callback -
.env:METRIBAY_GOOGLE_CLIENT_ID=your-client-idMETRIBAY_GOOGLE_CLIENT_SECRET=your-client-secretMETRIBAY_GOOGLE_REDIRECT_URI=https://metribay.example.com/integrations/google/callback
Google app u testing: sign-in ističe posle 7 dana. Service accounts ne.
Production checklist
Section titled “Production checklist”-
HTTPS,
APP_ENV=production,APP_DEBUG=false -
.env, DB, backup-i van public web-a -
Nikad keširaj signed-in stranice na CDN/proxy
-
Posle update-a:
Terminal window php artisan migrate --forcephp artisan vendor:publish --tag=metribay-assets --forcephp artisan queue:restart -
Mail transport za password reset
Backups
Section titled “Backups”- Database. SQLite online backup; PostgreSQL
pg_dump. APP_KEY. Šifruje credentials — bez key-a DB backup ne pomaže. Ne menjaj key bez plana re-encrypt.
Testiraj restore. Configuration export pomaže ali nije pun backup — nema history/credentials.
Moving to Metribay Cloud
Section titled “Moving to Metribay Cloud”Export configuration, Cloud sign up, connected accounts ista imena, import. Cloud ponovo skuplja istoriju u history window-u.