Skip to content

Add support for labels #53

Open
Open
@fabMrc

Description

@fabMrc

Hi

Like other reporters, it will be nice to add the labels support for each metrics types. It allows drilldown and aggregation over dimensions. Traditionnally hostname/instanceId/port are some common labels.
For exemple :

{
  "name": "usa-gov-heartbearts",
  "@timestamp": "2013-07-20T09:29:58.000+0000",
  "count": 18
  "tags":
    {
        "hostname": "server1",
        "service_id": "myapplication_id",
        "port": 8087,
        "other_label": 1.0
    }
}

And the API

ElasticSearchReporter reporter= ElasticSearchReporter .forRegistry(metrics). .withTags(ImmutableMap.of("other", "tags")).prefix(prefix).build()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions