Skip to content

Commit

Permalink
Move the metrics definitions to a yaml file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Amato committed Aug 13, 2018
1 parent dde4ee5 commit 2e4330f
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 56 deletions.
56 changes: 0 additions & 56 deletions model/fn-execution/src/main/proto/metric_definitions.json

This file was deleted.

57 changes: 57 additions & 0 deletions model/fn-execution/src/main/proto/metric_definitions.yaml
@@ -0,0 +1,57 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Metrics Definitions describing various BEAM metrics.
# See: https://s.apache.org/beam-fn-api-metrics

- 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

0 comments on commit 2e4330f

Please sign in to comment.