Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Fix: 0 samples/sec in throughput by logging metric metadata throughput #1643

Merged

Conversation

Harkishen-Singh
Copy link
Member

@Harkishen-Singh Harkishen-Singh commented Sep 14, 2022

Fixes: #1642

Signed-off-by: Harkishen-Singh harkishensingh@hotmail.com

Description

This commit fixes 0 samples/sec logging in throughput. The reason behind this behaviour was metric-metadata not being printed, rather it was just updating the metrics-max-ts-send, which was causing the log.

This metrics-max-ts-send was updated even when we were writing metadata.

Now, the log for metric, metric-metadata and spans will be in single line, compared to the earlier separate lines.

level=info ts=2022-09-14T07:36:34.072Z caller=throughput.go:90 msg="ingestor throughput" samples/sec=80000 metrics-max-sent-ts="2022-09-14 07:36:13.178 +0000 UTC" metric-metadata/sec=249
level=info ts=2022-09-14T07:40:17.419Z caller=throughput.go:90 msg="ingestor throughput" samples/sec=64223 metrics-max-sent-ts="2022-09-14 07:39:41.002 +0000 UTC" spans/sec=200 spans-last-write-on="2022-09-14 07:40:16.459 +0000 UTC"

Update
Now we log like this.

level=info ts=2022-09-15T06:13:43.010Z caller=throughput.go:90 msg="ingestor throughput" spans/sec=200 spans-last-write-on=2022-09-15T06:13:42.14Z
level=info ts=2022-09-15T06:13:44.011Z caller=throughput.go:90 msg="ingestor throughput" samples/sec=1000 metrics-max-sent-ts=2022-09-15T06:13:42.583Z spans/sec=200 spans-last-write-on=2022-09-15T06:13:43.124Z

Merge requirements

Please take into account the following non-code changes that you may need to make with your PR:

  • CHANGELOG entry for user-facing changes
  • Updated the relevant documentation

CHANGELOG.md Outdated Show resolved Hide resolved
…put.

Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com>

This commit fixes `0 samples/sec` logging in throughput. The reason
behind this behaviour was metric-metadata not being printed, rather
it was just updating the `metrics-max-ts-send`, which was causing the log.

The `metrics-max-ts-send` was updated even when we were writing metadata.

This commit also updates the logging of throughput, by making samples, spans
and metric-metadata log in the same line, than the earlier separate lines. This
allows better utilization of log lines.
@Harkishen-Singh Harkishen-Singh enabled auto-merge (rebase) September 15, 2022 06:17
@Harkishen-Singh Harkishen-Singh merged commit b0a862b into timescale:master Sep 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Promscale logs 0 samples/sec
2 participants