incorrect schema

Asked by alan longley

Hi,
I can get Graphite working with the development server, but I can not get data to show up on the graphs. The log for carbon shows this:
26/07/2010 01:42:26 :: Sorted 3 cache queues in 0.000014 seconds
26/07/2010 01:42:26 :: Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 477, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.6/site-packages/twisted/python/threadpool.py", line 161, in _worker
    context.call(ctx, function, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/lib/python2.6/site-packages/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
--- <exception caught here> ---
  File "/opt/graphite/lib/carbon/writer.py", line 149, in writeForever
    writeCachedDataPoints()
  File "/opt/graphite/lib/carbon/writer.py", line 92, in writeCachedDataPoints
    raise Exception("No storage schema matched the metric '%s', check your storage-schemas.conf file.")
exceptions.Exception: No storage schema matched the metric '%s', check your storage-schemas.conf file.

What would be a storage schema that would match the data from the sample client?

I can tell that this will not be the only question I need answered. Is there somebody I could pay to talk me through what is required to get this working in Apache?
best
Alan

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Daniel Aharon (dan-danielaharon) said :
#2

I have the exact same problem when using the example-client.py script with a default install of carbon.
My storage schema:
[everything]
priority = 100
pattern = .*
retentions = 60:1440

Output from example-client.py:
--------------------------------------------------------------------------------
system.loadavg_1min 0.00 1300900659
system.loadavg_5min 0.00 1300900659
system.loadavg_15min 0.00 1300900659

sending message

Also, I'm using carbon 0.9.7c

Revision history for this message
ahto (ahto) said :
#3

I just hit this too, first time install of graphite for me.

The trick is to start the carbon-cache in the right directory. I installed it with defaults so I start the process like this.
ahto@graph:/opt/graphite$ pwd
/opt/graphite
ahto@graph:/opt/graphite$ sudo /opt/graphite/bin/carbon-cache.py start

Revision history for this message
chrismd (chrismd) said :
#4

I think this was a subtle bug that only happens in certain environments (I was never able to recreate it) but I believe I have fixed it. You should be able to start carbon from any directory and if it fails to find/read storage-schemas.conf you will get an error on startup.

Revision history for this message
chrismd (chrismd) said :
#5

Sorry I missed this question while I was on vacation over the summer and didn't see it until now!

Can you help with this problem?

Provide an answer of your own, or ask alan longley for more information if necessary.

To post a message you must log in.