32 Commits

Author SHA1 Message Date
Nawaz Dhandala
991a8a6f97 fix lint 2026-03-01 12:48:17 +00:00
Nawaz Dhandala
098a4e624f Probe fixes 2026-03-01 12:41:42 +00:00
Nawaz Dhandala
2eec57befd refactor(proxy-config): robust hostname/port extraction, normalize ports, and tidy formatting
- Improve extractHostnameAndPort and splitHostAndPort to handle IPv6 brackets, single-colon ports, and trimmed port values; return explicit result objects.
- Normalize host/port parsing logic and ensure port values are trimmed before use.
- Consolidate import formatting and split long method signatures for readability.
- Minor formatting/whitespace cleanups in Probe Config, Alive, Register, Monitor, and NO_PROXY parsing.
2025-10-24 15:12:12 +01:00
Nawaz Dhandala
f403c6a9e9 feat(proxy): add NO_PROXY support and use request URL for proxy agent selection
- Parse NO_PROXY / no_proxy in Probe Config into a trimmed list
- Wire NO_PROXY into UI docs, Helm chart values, and probe Docker/compose examples
- Add NO_PROXY env var to Helm probe template when provided
- Pass target URL to ProxyConfig.getRequestProxyAgents / getHttpProxyAgent / getHttpsProxyAgent so proxy selection is per-request
- Update probe calls (Alive, Metrics, FetchList, FetchMonitorTest, Register, Monitor ingest/reporting, Api/Website/Ssl monitors) to use local URL variables and supply them to proxy helpers
- Minor refactors to avoid inline URL construction where reused
2025-10-24 15:02:36 +01:00
Nawaz Dhandala
6d5bc111ba Refactor comments across multiple files to improve clarity and consistency
- Updated comments in Probe/Config.ts to use block comments for proxy configuration.
- Refactored comments in PortMonitor.ts, SyntheticMonitor.ts, and OnlineCheck.ts to block comments for better readability.
- Adjusted comments in ProbeIngest/API/Monitor.ts and ProbeIngest/API/Probe.ts to block comments for clarity.
- Standardized comments in various data migration scripts to block comments for consistency.
- Modified eslint.config.js to enforce multiline comment style as an error.
2025-10-02 11:53:55 +01:00
Nawaz Dhandala
332a479c22 feat: Improve proxy configuration handling and logging in monitors 2025-09-01 14:50:52 +01:00
Simon Larsen
27fd99f2e8 feat: Update proxy configuration to support separate HTTP and HTTPS proxy URLs 2025-09-01 14:40:54 +01:00
Simon Larsen
518768078a feat: Implement proxy configuration for HTTP requests and add ProxyConfig utility 2025-09-01 13:56:29 +01:00
Simon Larsen
86e95f99ff feat: Add PROXY_URL configuration option for probe and update example env file 2025-09-01 12:52:50 +01:00
Simon Larsen
1abf1df1ee refactor: format PORT initialization and improve import structure in Config and Index 2025-01-01 18:24:30 +00:00
Simon Larsen
f1afab0b52 feat: add configurable port for probe services and update initialization 2025-01-01 18:04:19 +00:00
Simon Larsen
9e117f34d4 Add PROBE_MONITOR_RETRY_LIMIT environment variable and update monitor retry logic 2024-12-09 10:28:22 +00:00
Simon Larsen
4fc2029a61 Add backward compatibility for /ingestor route in Nginx and ProbeIngest; update Probe configuration for new URL structure 2024-11-21 17:53:35 +00:00
Simon Larsen
815ae7161d Rename Ingestor to ProbeIngest; update configurations, routes, and Docker support; add new request types and workflows 2024-11-21 17:18:22 +00:00
Simon Larsen
dea6c55365 refactor: Update import statements for CommonUI to use Common/UI 2024-08-07 15:50:32 -06:00
Simon Larsen
0e53e26695 refactor: Update PROBE_MONITOR_FETCH_LIMIT default value to 10
This commit updates the default value of the PROBE_MONITOR_FETCH_LIMIT variable in the Config.ts file from 1 to 10. This change ensures that the monitor fetch limit is set to a more reasonable value, improving the efficiency of the monitoring process.
2024-07-04 21:05:03 +01:00
Simon Larsen
70a2a3993b refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files 2024-06-14 12:09:53 +01:00
Simon Larsen
faf0641503 refactor: Update package.json and Encryption.ts to use latest version of crypto-js 2024-05-29 15:25:09 +01:00
Simon Larsen
5f7dcf7433 refactor: Update timeout handling in monitor scripts
This commit updates the timeout handling in the monitor scripts to use the `WorkflowScriptTimeoutInMS` and `PROBE_CUSTOM_CODE_MONITOR_SCRIPT_TIMEOUT_IN_MS` values from the environment configuration. This ensures that the monitor scripts have consistent and configurable timeout values, improving the reliability and performance of the monitoring system.
2024-05-22 20:06:32 +01:00
Simon Larsen
4335377285 Add HOSTNAME environment variable to Probe Config and update Probe Index and Email Template Type 2024-03-29 16:47:56 +00:00
Simon Larsen
b9b3580ca3 Add check for ONEUPTIME_URL in Config.ts 2024-01-29 12:54:43 +00:00
Simon Larsen
5137a07167 Update ONEUPTIME_URL in probe configuration and docker-compose file 2024-01-29 12:15:34 +00:00
Simon Larsen
301d7f124c fix fmt 2023-10-14 12:01:06 +01:00
Simon Larsen
0453d995ba if no ingestor then connect to oneuptime 2023-10-13 19:49:20 +01:00
Simon Larsen
34817a1066 probe-api to ingestor 2023-10-09 18:54:23 +01:00
Simon Larsen
206c7d9bf1 add try catch in cron time parser 2023-09-22 16:36:04 +01:00
Simon Larsen
e409f3ec0e add limit to probe 2023-08-07 15:22:45 +01:00
Simon Larsen
7dd77a505c add threads to probe 2023-08-06 21:54:12 +01:00
Simon Larsen
99c9b58c81 add monitor list api 2023-05-05 13:02:23 +01:00
Simon Larsen
18665f81fd probe registration complete 2023-05-03 11:54:25 +01:00
Simon Larsen
27420261a0 add probe docker file 2023-05-02 15:29:22 +01:00
Simon Larsen
43a4a9b3db fix compile 2022-04-26 14:23:33 +01:00