Skip to content

feat: translate collect metrics into tegde measurements#121

Open
didier-wenzek wants to merge 2 commits into
thin-edge:mainfrom
didier-wenzek:feat/collectd-flow
Open

feat: translate collect metrics into tegde measurements#121
didier-wenzek wants to merge 2 commits into
thin-edge:mainfrom
didier-wenzek:feat/collectd-flow

Conversation

@didier-wenzek
Copy link
Copy Markdown
Contributor

@didier-wenzek didier-wenzek commented Apr 22, 2026

Collectd flow translating collect metrics into tegde measurements

  • Regular collectd message translation
  • Array of collectd metric translation

Comment thread flows/collectd/tests/main.test.ts Outdated
@didier-wenzek didier-wenzek force-pushed the feat/collectd-flow branch 2 times, most recently from 4fb94a3 to 7a756ab Compare April 23, 2026 07:43
@didier-wenzek didier-wenzek changed the title Collectd flow translating collect metrics into tegde measurements feat: translate collect metrics into tegde measurements Apr 23, 2026
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Comment on lines +35 to +38
output.push({
topic,
payload: `{"time": ${time}, "${group}": {"${key}": ${value}}}`,
});
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also inject the event time to the message.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this would be useless. This event time will not be forwarded to the batcher transformation step.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally done - after fixing the flow engine so message timestamps assigned by a script are serialized back to the rust flow engine. This timestamp must be given as a number of millisecond since epoch and cannot be a Date, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant