We're updating the issue view to help you get more done. 

Add ability for an application to specify additional tags for metric context.

Description

Currently CDAP application/programs can emit metrics using Metrics API (https://github.com/cdapio/cdap/blob/develop/cdap-api/src/main/java/io/cdap/cdap/api/metrics/Metrics.java#L23) However current Metrics API does not allow programs to add additional tags to the metrics context.

 

For CDC type applications, it would be useful to have table names as a part of metric context so that application can emit metrics such as number of inserts, deletes operations as well as these metrics can be aggregated across all tables.

Release Notes

None

Activity

Show:
Sagar Kapare
October 21, 2020, 4:37 PM

Proposal for adding following new methods to the Metrics interface.

While MetricsTag is simple POJO holding following information 

Sagar Kapare
October 27, 2020, 10:09 PM

We don't necessarily need to maintain ordering of tags in the metrics context. So updated the API after discussing with as follows:

Sagar Kapare
October 29, 2020, 3:19 AM

Assignee

Sagar Kapare

Reporter

Sagar Kapare

Labels

None

Docs Impact

None

UX Impact

None

Components

Fix versions

Affects versions

Priority

Major
Configure