-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing a subset of the new metrics framework in python.
https://s.apache.org/beam-fn-api-metrics The follow types have been implemented 'beam:metrics:SumInt64' 'beam:metrics:DistributionInt64' 'beam:metrics:LatestInt64' User counters and the existing Metrics returned on ProcessBundle[Progress]Response are now being returned as monitoring_infos in ProcessBundle[Progress]Response. Note: The deprecated metrics are still being returned in the ProcessBundle[Progress]Response. Addtionally, a parameter has been added to MetricResults allowing to return metrics via use_monitoring_infos. fn_api_runner_test.test_metrics has been updated to verifies that the queried metrics are equivalent, whether or not use_monitoring_infos has been specified. Additionally, MetricResults has been updated to also return non user metrics, by setting user_metrics_only=True. This has been using in a new test: fn_api_runner_test.test_non_user_metrics
- Loading branch information
Alex Amato
committed
Aug 13, 2018
1 parent
b822633
commit dde4ee5
Showing
13 changed files
with
562 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
[ | ||
{ | ||
"annotations": { | ||
"description": "The total estimated execution time of the ptransform", | ||
"unit": "msecs" | ||
}, | ||
"labels": [ | ||
"PTRANSFORM" | ||
], | ||
"type": "beam:metrics:SumInt64", | ||
"urn": "beam:metric:ptransform_execution_time:total_msecs:v1" | ||
}, | ||
{ | ||
"annotations": { | ||
"description": "The total estimated execution time of the start bundle function in a pardo", | ||
"unit": "msecs" | ||
}, | ||
"labels": [ | ||
"PTRANSFORM" | ||
], | ||
"type": "beam:metrics:SumInt64", | ||
"urn": "beam:metric:pardo_execution_time:start_bundle_msecs:v1" | ||
}, | ||
{ | ||
"annotations": { | ||
"description": "The total estimated execution time of the process bundle function in a pardo", | ||
"unit": "msecs" | ||
}, | ||
"labels": [ | ||
"PTRANSFORM" | ||
], | ||
"type": "beam:metrics:SumInt64", | ||
"urn": "beam:metric:pardo_execution_time:process_bundle_msecs:v1" | ||
}, | ||
{ | ||
"annotations": { | ||
"description": "The total estimated execution time of the finish bundle function in a pardo", | ||
"unit": "msecs" | ||
}, | ||
"labels": [ | ||
"PTRANSFORM" | ||
], | ||
"type": "beam:metrics:SumInt64", | ||
"urn": "beam:metric:pardo_execution_time:finish_bundle_msecs:v1" | ||
}, | ||
{ | ||
"annotations": { | ||
"description": "The total elements counted for a metric." | ||
}, | ||
"labels": [ | ||
"PTRANSFORM" | ||
], | ||
"type": "beam:metrics:SumInt64", | ||
"urn": "beam:metric:element_count:v1" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.