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

Not seeing "Total Transfer Size" in InfluxDB/Grafana but it is available in Sitespeed Report #4144

Open
2343909 opened this issue Apr 22, 2024 · 5 comments

Comments

@2343909
Copy link

2343909 commented Apr 22, 2024

Your question

"Total Transfer Size" does not look like it is saved to InfluxDB to view it in Grafana or I am not seeing it:

image

It is available in Sitespeed HTML report:
image

@Amerousful
Copy link
Contributor

Try check origin and _measurement == transferSize

@Amerousful
Copy link
Contributor

I see that you use InfluxDB 1.x, but here you're the query from InfluxDB 2.x

from(bucket: "sitespeed")
  |> range(start: 2024-04-24T12:27:31.499Z, stop: 2024-04-25T12:27:31.499Z)
     |> filter(fn: (r) =>
      r.category == "default" and
      r.testName == "....." and
      r.group == "....." and
      r.page == "_" and
      r.browser == "chrome" and
      r.connectivity == "native" and
      r._field == "value"
    )
  |> filter(fn: (r) => 
    r._measurement == "transferSize" and
    r.origin == "pagexray" and
    not exists r.contentType and 
    not exists r.party
  )
  |> aggregateWindow(every: 10s, fn: median, createEmpty: false)
  |> set(key: "_field", value: "Transfer Size")
  |> drop(columns: ["_measurement", "runId"])  

@2343909
Copy link
Author

2343909 commented Apr 25, 2024

@Amerousful It does not match with the HTML Report for some reason:
image
image

@Amerousful
Copy link
Contributor

Add also not exists r.contentType and not exists r.party

@2343909
Copy link
Author

2343909 commented Apr 25, 2024

@Amerousful Thanks; yeah I was trying to figure out how to do that in Grafana and there are not that many options to enter "not exists" in the Grafana query.... Still working on it...
I can do "contentType" != to provided options but non of the provided options result in the accurate matching data between the report and Grafana.

Thanks a lot for the quick responses above.

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

No branches or pull requests

2 participants