← Back to team overview

graphite-dev team mailing list archive

Re: [Question #217371]: Multiple servers = multiple storage schemas ?

 

Question #217371 on Graphite changed:
https://answers.launchpad.net/graphite/+question/217371

    Status: Open => Answered

rowan proposed the following answer:
Having to define rules for every metric name would not be fun... You
definitely DON'T need to do that - The 'pattern' value to each entry in
your storage-schemas.conf file is a regex pattern.

In your case, I'm guessing you want to match any metric which ends with
".garbageCollections". If that is the case, I would update the pattern
to be more explicit ("Explicit is better than implicit"), something like
".*\.garbageCollections$" so that the entry is:

[garbage_collection]
pattern = .*\.garbageCollections$
retentions = 10s:14d

Metrics coming in with the names "w2.garbageCollections" and
"w1.garbageCollections" will both be matched by this rule, and be stored
with their full name (so you can graph them separately) for the same
retention period (10s:14d in this case).

Remember that metrics are stored according to first schema they match,
so make sure this is in the file above any 'catch-all' schemas.

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.