diff --git a/locust_exporter.py b/locust_exporter.py index c88849d..9a866ca 100755 --- a/locust_exporter.py +++ b/locust_exporter.py @@ -53,7 +53,7 @@ def collect(self): mtype = 'counter' metric = Metric('locust_requests_'+mtr, 'Locust requests '+mtr, mtype) for stat in response['stats']: - if not 'Total' in stat['name']: + if not 'Aggregated' in stat['name']: metric.add_sample('locust_requests_'+mtr, value=stat[mtr], labels={'path':stat['name'], 'method':stat['method']}) yield metric