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

vector_http_client_requests_sent_total and vector_http_client_rtt_seconds_count are the same #21451

Closed
kefiras opened this issue Oct 8, 2024 · 1 comment
Labels
type: bug A code related bug.

Comments

@kefiras
Copy link

kefiras commented Oct 8, 2024

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

Both metrics are giving the same value but they are supposed to be different.

vector_http_client_requests_sent_total{component_id="splunk_container_logs",component_kind="sink",component_type="splunk_hec_logs",host="log-aggregator-1",method="POST"} 102011 1728395129922
vector_http_client_rtt_seconds_count{component_id="splunk_container_logs",component_kind="sink",component_type="splunk_hec_logs",host="log-aggregator-1"} 102011 1728395129922

Configuration

sources:
  vector_metrics:
    type: "internal_metrics"
sinks:
  prometheus_exporter:
    type: "prometheus_exporter"
    inputs:
      - "vector_metrics"
    address: "0.0.0.0:9100"

Version

vector 0.36.0 (x86_64-unknown-linux-musl a5e48bb 2024-02-13 14:43:11.911392615)

Debug Output

No response

Example Data

No response

Additional Context

No response

References

No response

@kefiras kefiras added the type: bug A code related bug. label Oct 8, 2024
@jszwedko
Copy link
Member

jszwedko commented Oct 8, 2024

Hi @kefiras !

Those may actually be the same since vector_http_client_rtt_seconds is a histogram so _count represents the total number of measurements, one per request, which should generally match vector_http_client_requests_sent_total. Let me know if that isn't clear.

@jszwedko jszwedko closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

2 participants