Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telemetry batching and throttling #412

Merged
merged 10 commits into from
Jan 30, 2024
4 changes: 3 additions & 1 deletion example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ const config = {
"yamcsUserEndpoint": "http://localhost:9000/yamcs-proxy/api/user/",
"yamcsInstance": "myproject",
"yamcsProcessor": "realtime",
"yamcsFolder": "myproject"
"yamcsFolder": "myproject",
"throttleRate": 1000,
"maxBatchSize": 15
};
const STATUS_STYLES = {
"NO_STATUS": {
Expand Down
5 changes: 4 additions & 1 deletion src/openmct-yamcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ export default function install(configuration) {
openmct.telemetry.addProvider(historicalTelemetryProvider);

const realtimeTelemetryProvider = new RealtimeProvider(
openmct,
configuration.yamcsWebsocketEndpoint,
configuration.yamcsInstance,
configuration.yamcsProcessor
configuration.yamcsProcessor,
configuration.throttleRate,
configuration.maxBatchSize
);
openmct.telemetry.addProvider(realtimeTelemetryProvider);
realtimeTelemetryProvider.connect();
Expand Down
2 changes: 1 addition & 1 deletion src/providers/limit-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default class LimitProvider {
const limits = domainObject.configuration.limits;

return {
limits: async () => limits
limits: () => Promise.resolve(limits)
};
}

Expand Down
Loading
Loading