Skip to content

Make API more user friendly for non Dropwizard users #7

@billoneil

Description

@billoneil

It's a little difficult to use this library in applications that use dropwizard metrics without the rest of the framework. It would be more user friendly to add setters to the Factory classes so its possible to create them manually.

The following would make this much more convenient to use.

new InfluxDbWriter.Factory()
    .host(host)
    .port(port)
    .build(registry);

Even in the unit tests the way its constructed is a little awkward where it builds the object from a json string and deserializes it into the object since there is no access to set these parameters.

This also applies to the reporter factory.

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