carbon ignores some metrics

Asked by Tahitibob35

Hi
I'm trying the docker image.

I inject metrics using :
cat metrics.txt > nc 127.0.0.1 2003

Sometimes, some metrics are ignored.
I can not find it in the whisper storage.

An extract of the metrics file :
david@drupalsrv:~$ grep '\.500' metrics.txt
david.a.500 3 1556797500

The first time, I executed "cat metrics.txt > nc 127.0.0.1 2003".
500.wsp is not created :
/opt/graphite/storage/whisper # ls david/a/500.wsp
ls: david/a/500.wsp: No such file or directory

The secondtime, I executed "cat metrics.txt > nc 127.0.0.1 2003".
500.wsp is created:
/opt/graphite/storage/whisper # ls david/a/500.wsp
david/a/500.wsp

Is there a reason that some metrics are ignored ? and created the second time ?

Thanks.

David.

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Tahitibob35
Solved:
Last query:
Last reply:
Revision history for this message
Felix Sperling (felix.sperling) said :
#1

Hi David,

creating new whisper metrics is kind of expensive and therefore there is a limit in the configuration.
See /etc/carbon.conf and MAX_CREATES_PER_MINUTE
It depends on how many new metrics you send in your metrics.txt. If you send 200 new ones but your limit is 50 then the other 150 will be dropped silently. When you send the second time / the next minute 50 more will be created.

Cheers,
Felix

Revision history for this message
Tahitibob35 (david-hautbois) said :
#2

Hi
I didn't notice this configuration parameter.
Thanks !!

David.