mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Update ONEUPTIME_URL in probe configuration and docker-compose file
This commit is contained in:
parent
90a8b7b015
commit
5137a07167
@ -10,7 +10,7 @@ To begin with you need to create a custom probe in your Project Settings > Probe
|
||||
To run a probe, please make sure you have docker installed. You can run custom probe by:
|
||||
|
||||
```
|
||||
docker run --name oneuptime-probe --network host -e PROBE_KEY=<probe-key> -e PROBE_ID=<probe-id> -e INGESTOR_URL=https://oneuptime.com -d oneuptime/probe:release
|
||||
docker run --name oneuptime-probe --network host -e PROBE_KEY=<probe-key> -e PROBE_ID=<probe-id> -e ONEUPTIME_URL=https://oneuptime.com -d oneuptime/probe:release
|
||||
|
||||
```
|
||||
|
||||
|
@ -8,7 +8,9 @@ if (!process.env['INGESTOR_URL']) {
|
||||
}
|
||||
|
||||
export let INGESTOR_URL: URL = URL.fromString(
|
||||
process.env['INGESTOR_URL'] || 'https://oneuptime.com'
|
||||
process.env['ONEUPTIME_URL'] ||
|
||||
process.env['INGESTOR_URL'] ||
|
||||
'https://oneuptime.com'
|
||||
);
|
||||
|
||||
// If probe api does not have the path. Add it.
|
||||
|
@ -144,11 +144,13 @@ GLOBAL_PROBE_1_NAME="Probe-1"
|
||||
GLOBAL_PROBE_1_DESCRIPTION="Global probe to monitor oneuptime resources"
|
||||
GLOBAL_PROBE_1_MONITORING_WORKERS=5
|
||||
GLOBAL_PROBE_1_MONITOR_FETCH_LIMIT=10
|
||||
GLOBAL_PROBE_1_ONEUPTIME_URL=ingestor:3400
|
||||
|
||||
GLOBAL_PROBE_2_NAME="Probe-2"
|
||||
GLOBAL_PROBE_2_DESCRIPTION="Global probe to monitor oneuptime resources"
|
||||
GLOBAL_PROBE_2_MONITORING_WORKERS=5
|
||||
GLOBAL_PROBE_2_MONITOR_FETCH_LIMIT=10
|
||||
GLOBAL_PROBE_2_ONEUPTIME_URL=ingestor:3400
|
||||
|
||||
SMS_DEFAULT_COST_IN_CENTS=
|
||||
CALL_DEFAULT_COST_IN_CENTS_PER_MINUTE=
|
||||
|
@ -255,7 +255,7 @@ services:
|
||||
PROBE_DESCRIPTION: ${GLOBAL_PROBE_1_DESCRIPTION}
|
||||
PROBE_MONITORING_WORKERS: ${GLOBAL_PROBE_1_MONITORING_WORKERS}
|
||||
PROBE_KEY: ${GLOBAL_PROBE_1_KEY}
|
||||
INGESTOR_URL: http://${INGESTOR_HOSTNAME}
|
||||
ONEUPTIME_URL: ${GLOBAL_PROBE_1_ONEUPTIME_URL}
|
||||
PROBE_MONITOR_FETCH_LIMIT: ${GLOBAL_PROBE_1_MONITOR_FETCH_LIMIT}
|
||||
logging:
|
||||
driver: "local"
|
||||
@ -273,7 +273,7 @@ services:
|
||||
PROBE_DESCRIPTION: ${GLOBAL_PROBE_2_DESCRIPTION}
|
||||
PROBE_MONITORING_WORKERS: ${GLOBAL_PROBE_2_MONITORING_WORKERS}
|
||||
PROBE_KEY: ${GLOBAL_PROBE_2_KEY}
|
||||
INGESTOR_URL: http://${INGESTOR_HOSTNAME}
|
||||
ONEUPTIME_URL: ${GLOBAL_PROBE_2_ONEUPTIME_URL}
|
||||
PROBE_MONITOR_FETCH_LIMIT: ${GLOBAL_PROBE_2_MONITOR_FETCH_LIMIT}
|
||||
logging:
|
||||
driver: "local"
|
||||
|
Loading…
Reference in New Issue
Block a user