diff options
| author | Will Hawkins <[email protected]> | 2022-11-20 02:36:24 -0500 |
|---|---|---|
| committer | Will Hawkins <[email protected]> | 2022-11-20 02:39:09 -0500 |
| commit | 5e55d67716d582a825aa07e4540887979a4420db (patch) | |
| tree | 08293ec199d43b7afc5ee71115b15a1301ad5d32 | |
| parent | bad6c4655200dacd75ce1451cd3f410fea3d8de2 (diff) | |
[Feature] Collect the number of open connections in throughput data point
Include the number of open connections in a throughput data point.
| -rw-r--r-- | rpm/rpm.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -68,8 +68,9 @@ type ProbeDataPoint struct { } type ThroughputDataPoint struct { - Time time.Time `Description:"Time of the generation of the data point." Formatter:"Format" FormatterArgument:"01-02-2006-15-04-05.000"` - Throughput float64 `Description:"Instantaneous throughput (b/s)."` + Time time.Time `Description:"Time of the generation of the data point." Formatter:"Format" FormatterArgument:"01-02-2006-15-04-05.000"` + Throughput float64 `Description:"Instantaneous throughput (b/s)."` + Connections int `Description: Number of parallel connections."` } type SelfDataCollectionResult struct { @@ -427,7 +428,7 @@ func LoadGenerator( } // We have generated a throughput calculation -- let's send it back to the coordinator - throughputDataPoint := ThroughputDataPoint{time.Now(), instantaneousTotalThroughput} + throughputDataPoint := ThroughputDataPoint{time.Now(), instantaneousTotalThroughput, len(*loadGeneratingConnections.LGCs)} throughputCalculations <- throughputDataPoint // Log that, if we are configured for logging. |
