Mathematics across measurements
Apologies if this is a duplicate, I had a look and couldn't see a relevant issue. I can see from the documentation how to select from multiple measurements (although it calls them series, still, at https://influxdb.com/docs/v0.9/query_language/data_exploration.html ) For example, with data inserted by telegraf, you can do: `select * from disk_used,disk_total where host = 'myhostname' and path = '/'` How would you express that as a percentage? I've tried variations of the following, and none seem to work: `select disk_used.value/disk_total.value from disk_used, disk_total where host = 'myhostname' and path='/'` The "mydb"."retentionpolicy"."measurement" syntax doesn't work there, either. Is it a good idea to add aggregation functions for cases like `diff(value1, value2) from m1, m2` and `divide(value, value) from m1, m2`, or should the arithmetic operators be working? Also, I noticed when experimenting that it's also not possible to divide one derivative by another. For example, if I have two counters, bytes transferred and api calls made - both of which are constantly going up - how would you calculate the mean bytes per api call?
Posted by srfraser on Aug 4, 2015, 7:02 PM
Tags
Related issues
- struct's lifetime requirements can be bypassed via covariant field assignment
- Proposal to Reorganize the Moderation Team and Review Moderation Policies
- Progressive FPS degradation appears to be related to dota2.com — blocking the domain prevents the performance loss
- proposal: container/...: generic collection types
- Better Custom Endpoint BYOK
- A concrete policy for backward compatibility until Godot 5.0
Raise real-world problems, find people facing the same issue, and discuss solutions.5,000 issues0 comments
github (Other)
struct's lifetime requirements can be bypassed via covariant field assignment
Proposal to Reorganize the Moderation Team and Review Moderation Policies
Progressive FPS degradation appears to be related to dota2.com — blocking the domain prevents the performance loss
proposal: container/...: generic collection types
Better Custom Endpoint BYOK
A concrete policy for backward compatibility until Godot 5.0
New MTP models not supported
Tracking: 429 / Capacity Issues
Mathematics across measurements
Apologies if this is a duplicate, I had a look and couldn't see a relevant issue. I can see from the documentation how to select from multiple measurements (although it calls them series, still, at https://influxdb.com/docs/v0.9/query_language/data_exploration.html ) For example, with data inserted by telegraf, you can do: `select * from disk_used,disk_total where host = 'myhostname' and path = '/'` How would you express that as a percentage? I've tried variations of the following, and none seem to work: `select disk_used.value/disk_total.value from disk_used, disk_total where host = 'myhostname' and path='/'` The "mydb"."retentionpolicy"."measurement" syntax doesn't work there, either. Is it a good idea to add aggregation functions for cases like `diff(value1, value2) from m1, m2` and `divide(value, value) from m1, m2`, or should the arithmetic operators be working? Also, I noticed when experimenting that it's also not possible to divide one derivative by another. For example, if I have two counters, bytes transferred and api calls made - both of which are constantly going up - how would you calculate the mean bytes per api call?
Comments (0)
No comments yet. Start the discussion.