feat: add location tier presets (3, 6, 15) to Globalping settings

## Changes

### Server
- Expand LOCATION_MAP to support city/country-level locations for the
  15-location tier (US East/West, Toronto, London, Frankfurt, Amsterdam,
  Warsaw, Tokyo, Singapore, Mumbai, Sydney, Brazil, Santiago, Johannesburg,
  Dubai)
- Add globalpingLocationsTier field to Settings type, Mongoose model,
  repository mapper, and Joi validation (valid: 3, 6, 15, default: 6)
- Update getGlobalpingLocations endpoint to return locations based on
  the configured tier from settings
- Pass settingsService to MonitorController for tier lookup

### Client
- Add tier selector (radio buttons) to SettingsGlobalping component
  with descriptions for each option:
  - 3 locations: North America, Europe, Asia
  - 6 locations: all continents
  - 15 locations: city-level global coverage
- Add rate limits info box explaining credit usage per tier:
  - Without token: 250 tests/hour
  - With free token: 500 tests/hour
  - GitHub sponsors: higher limits
- Add all translation keys for tier labels, descriptions, and rate info

## Benefits
- Admins can choose the right balance of coverage vs API usage
- Rate limit info helps users decide whether they need authentication
This commit is contained in:
gorkem-bwl committed 2026-02-19 10:31:15 -05:00
1 parent 134c2ebbf4
commit 27c3a9e12b
12 files changed
+202 -10

No files matched your search

+17 -2
View File
@@ -957,10 +957,25 @@
"title": "Google PageSpeed API key"
},
"globalpingSettings": {
"description": "Enter your Globalping API key to enable multi-location uptime monitoring. This allows checking your monitors from different geographic regions.",
"description": "Configure Globalping to run uptime checks from multiple geographic regions worldwide.",
"labelApiKeySet": "API key is set. Click Reset to change it.",
"labelApiKey": "Globalping API key",
"title": "Globalping API key"
"optionalLabel": "(Optional)",
"title": "Globalping",
"locationsTierTitle": "Global locations",
"locationsTierDescription": "Choose how many probe locations are available when creating monitors.",
"tier3Label": "3 locations — core regions",
"tier3Description": "North America, Europe, Asia",
"tier6Label": "6 locations — all continents",
"tier6Description": "North America, Europe, Asia, South America, Oceania, Africa",
"tier15Label": "15 locations — city level",
"tier15Description": "US East, US West, Canada, UK, Germany, Netherlands, Poland, Japan, Singapore, India, Australia, Brazil, Chile, South Africa, UAE",
"rateLimitsTitle": "Rate limits",
"rateLimitsDescription": "Globalping limits how many tests you can run per hour. Each location check on each monitor uses 1 credit per interval.",
"rateLimitNoAuth": "Without a token: 250 tests per hour (no authentication needed)",
"rateLimitAuth": "With a free token: 500 tests per hour (sign in at dash.globalping.io)",
"rateLimitSponsor": "GitHub sponsors: higher limits based on sponsorship tier + hosting probes",
"rateLimitsNote": "For example, 3 monitors with 5 locations each, checked every minute, uses 15 credits per minute (900/hour). Choose your tier accordingly."
},
"saveButtonLabel": "Save",
"statsSettings": {