Skip to content

Metric format without cluster and host is not supported #22

@jeeveeyes

Description

@jeeveeyes

Hi,

I am eagerly trying to get Pencil up and running. Thanks for the good work.

I tried both the original Pencil (0.3.1) as well as the "rewrite" (0.4.0a). The problem I am facing is to get Pencil display existing metrics which are not in the format that Pencil expects i.e they don't have .. format.

Lets say I wanted to display the memUsage stock metric that is exposed by Graphite's carbon instance out-of-the-box. Its format is carbon.agents..memUsage.

How do I configure metric_format to correctly fetch and render the above metric ?

Inside pencil.yml , I changed

:metric_format: "%m.%c.%h" #%m metric, %c cluster, %h host

to

:metric_format: "%m" #%m metric

But that throws up this error when I start Pencil:

pencil

I, [2012-11-23T18:37:14.786240 #20554] INFO -- : no :manifest key for webapp, using default
missing host (%h) in :metric_format

Please see #9 (comment)

As noted there, %c (and %h too) needs to be made optional.
It'd be great if Pencil does not enforce any metric format so that existing metrics can readily imported.
Not sure how various features of Pencil are coupled with the %c,%h assumption though.

But right now, the %h is holding me from using Pencil !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions