Skip to content

Encode telemetry as dogstatsd-http metrics. - #320

Merged
vickenty merged 1 commit into
masterfrom
vickenty/tlm
Jul 29, 2026
Merged

Encode telemetry as dogstatsd-http metrics.#320
vickenty merged 1 commit into
masterfrom
vickenty/tlm

Conversation

@vickenty

Copy link
Copy Markdown
Contributor

No description provided.

@vickenty
vickenty requested a review from a team as a code owner July 27, 2026 14:16

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5c9a94293e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

* @param prefix Metric name prefix.
*/
public void encodeTo(String prefix, PayloadBuilder pb) {
long ts = intervalStartMillis / 1000;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Timestamp point-in-time gauges at snapshot time

Whenever a snapshot is taken after construction or a previous snapshot, intervalStartMillis predates the queue state and age values, which are sampled using the current time in snapshot(). Using that interval start for every point therefore backdates queue_*, oldest_enqueued_age_seconds, and last_success_age_seconds; with infrequent snapshots, these gauges can appear substantially stale or be rejected as out-of-window data. Store the snapshot/end wall-clock time and use it for these point-in-time metrics.

Useful? React with 👍 / 👎.

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.

This is consistent with general dogstatsd behavior, where point timestamp is the start of the time interval covered by it.

Base automatically changed from vickenty/ren to master July 27, 2026 14:20
@vickenty
vickenty merged commit c981a87 into master Jul 29, 2026
19 checks passed
@vickenty
vickenty deleted the vickenty/tlm branch July 29, 2026 15:50
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.

2 participants