Commit Graph

134 Commits

Author SHA1 Message Date
Simon Larsen
13b1998261
refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-04 19:56:45 -06:00
Simon Larsen
5c3175f9e7
refactor: Update monitor interfaces to use consistent naming
```
2024-08-04 18:01:04 -06:00
Simon Larsen
8caac12041
refactor: Update LogSeverity enum to use string values instead of enum values 2024-08-04 17:29:38 -06:00
Simon Larsen
d84cf5b8ec
refactor: Update LogSeverity enum to use string values instead of enum values
This refactor updates the LogSeverity enum to use string values instead of enum values. This change allows for better compatibility and flexibility when working with log severity levels. The enum values have been replaced with corresponding string values.

Files modified:
- Common/Types/Log/LogSeverity.ts
- Ingestor/API/OTelIngest.ts
- Ingestor/API/FluentIngest.ts
- Model/AnalyticsModels/Log.ts
- CommonUI/src/Components/LogsViewer/LogItem.tsx
- CommonUI/src/Components/LogsViewer/LogsViewer.tsx
- CommonUI/src/Components/Filters/DropdownFilter.tsx
- Common/Types/ObjectID.ts
- CommonUI/src/Components/Filters/FiltersForm.tsx
2024-08-04 16:41:07 -06:00
Simon Larsen
9b8a5c9c43
feat: Add lazy loading for images in SettingsRoutes 2024-08-02 13:44:59 -06:00
Simon Larsen
0d40be3db1
refactor: Update APIKeyView and TelemetryIngestionKeyView to use RouteUtil.populateRouteParams
This refactor updates the APIKeyView and TelemetryIngestionKeyView components to use the RouteUtil.populateRouteParams function when navigating to other routes. This ensures that route parameters are properly populated, improving the reliability and consistency of the navigation logic.

Files modified:
- Dashboard/src/Pages/Settings/APIKeyView.tsx
- Dashboard/src/Pages/Settings/TelemetryIngestionKeyView.tsx
2024-08-01 20:43:41 -06:00
Simon Larsen
8a77ae977e
refactor: Update OneUptime chart to use probes instead of probe for probe configuration 2024-08-01 19:25:54 -06:00
Simon Larsen
54b0f355dc
feat: Update OTelIngest to index attributes for telemetry types
This commit updates the OTelIngest module to index attributes for different telemetry types (Trace, Metric, and Log). It adds the necessary code to extract attributes from spans, metrics, and logs, and sends them to the OTelIngestService.indexAttributes() function. This ensures that the attributes are properly indexed for each telemetry type, improving the search and analysis capabilities of the system.

Files modified:
- Ingestor/API/OTelIngest.ts
- Ingestor/Service/OTelIngest.ts
2024-07-29 16:53:23 -06:00
Simon Larsen
9f8764d741
refactor: Add canReadOnRelationQuery property to TelemetryService's serviceColor
This commit adds the `canReadOnRelationQuery` property to the `serviceColor` field in the `TelemetryService` model. The `canReadOnRelationQuery` property allows for reading the `serviceColor` field when querying related data. This change enhances the functionality and flexibility of the `TelemetryService` model when working with related data.
2024-07-23 09:50:15 -06:00
Simon Larsen
f041a6cbbb
refactor: Update TelemetryIngest to include serviceName in TelemetryRequest
This commit updates the TelemetryIngest middleware to include the serviceName property in the TelemetryRequest interface. This change allows the middleware to access and use the service name when processing telemetry data. It improves the accuracy and completeness of the telemetry data handling.
2024-07-17 17:27:04 -06:00
Simon Larsen
5b00b5dac1
refactor: Update Monitor.ts to improve error handling and populate secrets
This commit refactors the Monitor.ts file to enhance error handling and populate secrets for monitors. It introduces try-catch blocks and proper logging to handle errors more effectively. Additionally, it populates secrets for monitors using the MonitorUtil.populateSecrets() function. These changes improve the reliability and security of the monitoring process.
2024-07-05 12:56:53 +01:00
Simon Larsen
d9ce813689
refactor: Update ingestor replica count based on configuration 2024-07-05 11:26:26 +01:00
Simon Larsen
93f1b97e88
refactor: Improve error handling in Monitor.ts
This commit refactors the Monitor.ts file to improve error handling. It removes commented out code and unused imports, ensuring a cleaner and more efficient codebase. This change enhances the maintainability and readability of the code.
2024-07-05 11:16:29 +01:00
Simon Larsen
c617e49a63
refactor: Update ingestor replica count based on configuration
This commit updates the ingestor replica count in the HelmChart/Public/oneuptime/templates/ingestor.yaml file based on the configuration. If the `$.Values.deployment.ingestor.replicaCount` value is provided, it sets the replicas to that value. Otherwise, it falls back to `$.Values.deployment.replicaCount`. This change ensures that the ingestor replica count is correctly configured, improving the scalability and performance of the application.
2024-07-05 10:51:19 +01:00
Simon Larsen
de7d06e5d7
refactor: Improve error handling in FetchListAndProbe
This commit refactors the FetchListAndProbe class to improve error handling. It adds try-catch blocks around the main logic and logs any errors that occur using the logger. Additionally, it includes a catch block to handle any errors thrown during the fetchListAndProbe function. This change ensures that errors are properly handled and logged, preventing potential issues with the monitoring process.
2024-07-05 10:18:03 +01:00
Simon Larsen
0ecf3fa1e0
refactor: Remove commented out code and unused imports in Monitor.ts 2024-07-05 09:54:34 +01:00
Simon Larsen
3f1479d8f5
refactor: Improve error handling in Semaphore.lock()
This commit refactors the Semaphore.lock() function in the MonitorStatusTimelineService and Monitor API files to improve error handling. It adds try-catch blocks around the lock() function calls and logs any errors that occur using the logger. This change ensures that errors during the locking process are properly handled and logged, preventing potential issues with mutex locking.
2024-07-05 09:05:36 +01:00
Simon Larsen
ad1e5fefc6
refactor: Improve error handling in Semaphore.lock()
This commit refactors the Semaphore.lock() function in the MonitorStatusTimelineService and Monitor API files to improve error handling. It adds try-catch blocks around the lock() function calls and logs any errors that occur using the logger. This change ensures that errors during the locking process are properly handled and logged, preventing potential issues with mutex locking.
2024-07-04 20:52:19 +01:00
Simon Larsen
56d3e7e1f2
chore: Update probeKey type to string in CustomProbeDocumentation and ProbeView components
This commit updates the probeKey prop type from ObjectID to string in the CustomProbeDocumentation and ProbeView components. The probeKey is used to identify the probe and was previously defined as ObjectID, but it should be a string. This change ensures that the probeKey is correctly passed and used throughout the components, improving the accuracy and reliability of the application.
2024-07-01 20:00:16 +01:00
Simon Larsen
34888e9b7f
chore: Update CustomProbeDocumentation component title
This commit updates the title of the CustomProbeDocumentation component from "Set up your Server Monitor (Linux/Mac)" to "Set up your Custom Probe". The new title accurately reflects the purpose of the component and improves the clarity of the user interface.
2024-07-01 17:51:28 +01:00
Simon Larsen
7c09423766
chore: Update ProbeStatusElement component to use connectionStatus field 2024-07-01 17:34:04 +01:00
Simon Larsen
7be603ef08
refactor: Update import statements for TimezoneUtil in multiple files 2024-06-17 17:22:00 +01:00
Simon Larsen
c4e4e7e488
refactor: Update import statements for TimezoneUtil in Monitor.ts
This commit updates the import statements in the Monitor.ts file. It changes the import statement for the TimezoneUtil module to import from "Common/Types/Timezone" instead of the previous import path. This change ensures that the correct module is imported, improving the accuracy and reliability of the code.
2024-06-17 16:14:08 +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
55d947fb39
refactor: Add isMonotonic column to Metric model
This code change adds a new column, 'isMonotonic', to the Metric model in the AnalyticsModels directory. The column is optional and represents whether the metric is monotonic. This change ensures that the necessary data is captured and stored correctly for metrics in the system.
2024-06-10 12:49:29 +01:00
Simon Larsen
77f1262ff5
refactor: Update Telemetry class to add gauge and histogram metrics
This code change updates the Telemetry class in the CommonServer/Utils directory to include methods for creating gauge and histogram metrics. The getGauge and getHistogram methods are added, allowing for the creation of observable gauges and histograms with specified names and descriptions. This change enhances the telemetry capabilities of the application by providing more options for metric tracking and analysis.
2024-06-10 12:39:49 +01:00
Simon Larsen
4ca4f28d1c
refactor: Add Point Type to Metric model
This code change adds a new column, 'Metric Point Type', to the Metric model in the AnalyticsModels directory. The column is optional and represents the type of metric point. This change ensures that the necessary data is captured and stored correctly for metrics in the system.
2024-06-10 11:45:23 +01:00
Simon Larsen
2aa0ae89fc
refactor: Improve code readability and maintainability in OTelIngest.ts 2024-06-07 21:45:09 +01:00
Simon Larsen
0a16f6bf44
refactor: Update OTelIngest.ts to improve code readability and maintainability 2024-06-07 21:27:11 +01:00
Simon Larsen
0f49e6e100
refactor: Improve code readability and maintainability in OTelIngest.ts 2024-06-07 17:49:58 +01:00
Simon Larsen
26c900d8e2
refactor: Update CommonServer/package.json and Ingestor/Service/OTelIngest.ts
This code change updates the CommonServer/package.json file to remove the "@opentelemetry/metrics" dependency and adds the "@opentelemetry/sdk-metrics" dependency with version "^1.21.0". It also updates the Ingestor/Service/OTelIngest.ts file to import the "JSONFunctions" module from "Common/Types/JSONFunctions" and use the "flattenObject" function from that module to flatten the final object before returning it.
2024-06-07 16:57:24 +01:00
Simon Larsen
63461343ba
refactor: Update OTelIngest.ts to improve code readability and maintainability
This code change updates the OTelIngest.ts file to improve code readability and maintainability. It includes formatting changes such as indentation and line breaks to enhance code structure and organization. These modifications make the code easier to understand and maintain for future development.
2024-06-07 14:57:24 +01:00
Simon Larsen
931abc522b
refactor: Update Telemetry class to include new metrics for status checks 2024-06-07 14:54:39 +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
ab0b7bb6ec
refactor: Update MonitorSecrets page to display monitors with access to secrets 2024-05-29 12:47:21 +01:00
Simon Larsen
847f426bc6
refactor: Improve error messages in MetricsInfo and SSLCertificateMonitorView components
The code changes in this commit improve the error messages in the MetricsInfo and SSLCertificateMonitorView components. The updated error messages provide more helpful information to users, indicating that it may take a few minutes for metrics to show up for the selected probe. This enhancement improves the user experience and reduces confusion when metrics are not immediately available.
2024-05-23 18:49:30 +01:00
Simon Larsen
a5f05376b0
refactor: Update logger.debug statements for exiting node process
This commit updates the logger.debug statements in multiple files to log the message 'Exiting node process' instead of 'Exiting node process'. This change improves the logging consistency and ensures that the appropriate log level is used for this message.
2024-05-22 10:04:41 +01:00
Simon Larsen
9bde353e93
refactor: Add Semaphore locking for monitor probe creation and release mutex after completion 2024-05-06 22:18:14 +01:00
Simon Larsen
a2c2867469
refactor: Add Semaphore locking for monitor probe creation and release mutex after completion 2024-05-06 21:52:09 +01:00
Simon Larsen
4e748d1626
Refactor and delete unused Metric services and models 2024-05-03 13:03:01 +01:00
Simon Larsen
8377285a27
Refactor API endpoints to use sendEmptySuccessResponse instead of sendEmptyResponse 2024-04-28 19:52:57 +01:00
Simon Larsen
0f92e37712
Refactor field types, import statements, and column types in multiple components 2024-04-21 18:08:31 +01:00
Simon Larsen
527ba63c94
Refactor Tabs component to improve UI and fix styling issues 2024-04-20 17:29:16 +01:00
Simon Larsen
12a98bcb5f
Add error handling for API endpoint in BaseAPI/Index.ts and OTelIngest.ts 2024-04-10 10:16:11 +01:00
Simon Larsen
b49336a224
Update Span class to include SpanStatus enum and use it in OTelIngest.ts 2024-04-09 19:34:55 +01:00
Simon Larsen
6ef91fd1b7
Add OpenTelemetry error handling in StartServer.ts 2024-04-09 19:24:51 +01:00
Simon Larsen
bcefa8ae3a
Refactor MonitorInfrastructure class and extract monitorServerMetrics method 2024-04-08 14:50:37 +01:00
Simon Larsen
d4d8848124
Update import statement for ProductType in OTelIngest.ts 2024-04-04 20:56:48 +01:00
Simon Larsen
abcde37960
Update import statements for ProductType in multiple files 2024-04-04 20:56:03 +01:00
Simon Larsen
bbff753799
Add deprecated comment to ServerMonitor route and refactor BasicMetrics to get disk paths dynamically 2024-04-01 11:33:59 +01:00