Graphite skips every third point
I launched statsd+graphite+grafana for test. And producing values from console, expect just linear graph. But there are zero values in every third position. I realise all of these tools are widely in use, so it's definitely my mistake. But can't find where exactly.
Here is screenshot of grafana
As you can see every 30s (every third point) is zero. Why?
I do this from shell to increment my counter twice a second:
while :; do
echo "test-service.nreq:1|c" | nc -w1 -u 127.0.0.1 8125
done
I thought there is statd who looses the values due to UDP. But according to log, it doesn't:
20 Nov 20:39:40 - DEBUG: numStats: 23
20 Nov 20:39:40 - DEBUG: test-service.nreq:1|c
20 Nov 20:39:40 - DEBUG: response.200:1|c
20 Nov 20:39:40 - DEBUG: view.graphite.tags.views.tagMultiSeries.POST:1.000000|ms
20 Nov 20:39:40 - DEBUG: view.graphite.tags.views.POST:1.000000|ms
20 Nov 20:39:40 - DEBUG: view.POST:1.000000|ms
20 Nov 20:39:41 - DEBUG: test-service.nreq:1|c
20 Nov 20:39:42 - DEBUG: test-service.nreq:1|c
... (same lines for every second)
20 Nov 20:39:49 - DEBUG: numStats: 23
20 Nov 20:39:50 - DEBUG: numStats: 23
20 Nov 20:39:50 - DEBUG: response.200:1|c
20 Nov 20:39:50 - DEBUG: view.graphite.tags.views.tagMultiSeries.POST:1.000000|ms
20 Nov 20:39:50 - DEBUG: view.graphite.tags.views.POST:1.000000|ms
20 Nov 20:39:50 - DEBUG: view.POST:1.000000|ms
grafana graphite statsd
add a comment |
I launched statsd+graphite+grafana for test. And producing values from console, expect just linear graph. But there are zero values in every third position. I realise all of these tools are widely in use, so it's definitely my mistake. But can't find where exactly.
Here is screenshot of grafana
As you can see every 30s (every third point) is zero. Why?
I do this from shell to increment my counter twice a second:
while :; do
echo "test-service.nreq:1|c" | nc -w1 -u 127.0.0.1 8125
done
I thought there is statd who looses the values due to UDP. But according to log, it doesn't:
20 Nov 20:39:40 - DEBUG: numStats: 23
20 Nov 20:39:40 - DEBUG: test-service.nreq:1|c
20 Nov 20:39:40 - DEBUG: response.200:1|c
20 Nov 20:39:40 - DEBUG: view.graphite.tags.views.tagMultiSeries.POST:1.000000|ms
20 Nov 20:39:40 - DEBUG: view.graphite.tags.views.POST:1.000000|ms
20 Nov 20:39:40 - DEBUG: view.POST:1.000000|ms
20 Nov 20:39:41 - DEBUG: test-service.nreq:1|c
20 Nov 20:39:42 - DEBUG: test-service.nreq:1|c
... (same lines for every second)
20 Nov 20:39:49 - DEBUG: numStats: 23
20 Nov 20:39:50 - DEBUG: numStats: 23
20 Nov 20:39:50 - DEBUG: response.200:1|c
20 Nov 20:39:50 - DEBUG: view.graphite.tags.views.tagMultiSeries.POST:1.000000|ms
20 Nov 20:39:50 - DEBUG: view.graphite.tags.views.POST:1.000000|ms
20 Nov 20:39:50 - DEBUG: view.POST:1.000000|ms
grafana graphite statsd
Resolved a problem. The problem been in Docker and Mac OS. It seems, there is always some time-skew in Mac OS docker. And due to problem like this statsd sent several values in same 10-second period. Graphite always account latest, and it was zero.
– aplaux
Nov 20 '18 at 23:29
add a comment |
I launched statsd+graphite+grafana for test. And producing values from console, expect just linear graph. But there are zero values in every third position. I realise all of these tools are widely in use, so it's definitely my mistake. But can't find where exactly.
Here is screenshot of grafana
As you can see every 30s (every third point) is zero. Why?
I do this from shell to increment my counter twice a second:
while :; do
echo "test-service.nreq:1|c" | nc -w1 -u 127.0.0.1 8125
done
I thought there is statd who looses the values due to UDP. But according to log, it doesn't:
20 Nov 20:39:40 - DEBUG: numStats: 23
20 Nov 20:39:40 - DEBUG: test-service.nreq:1|c
20 Nov 20:39:40 - DEBUG: response.200:1|c
20 Nov 20:39:40 - DEBUG: view.graphite.tags.views.tagMultiSeries.POST:1.000000|ms
20 Nov 20:39:40 - DEBUG: view.graphite.tags.views.POST:1.000000|ms
20 Nov 20:39:40 - DEBUG: view.POST:1.000000|ms
20 Nov 20:39:41 - DEBUG: test-service.nreq:1|c
20 Nov 20:39:42 - DEBUG: test-service.nreq:1|c
... (same lines for every second)
20 Nov 20:39:49 - DEBUG: numStats: 23
20 Nov 20:39:50 - DEBUG: numStats: 23
20 Nov 20:39:50 - DEBUG: response.200:1|c
20 Nov 20:39:50 - DEBUG: view.graphite.tags.views.tagMultiSeries.POST:1.000000|ms
20 Nov 20:39:50 - DEBUG: view.graphite.tags.views.POST:1.000000|ms
20 Nov 20:39:50 - DEBUG: view.POST:1.000000|ms
grafana graphite statsd
I launched statsd+graphite+grafana for test. And producing values from console, expect just linear graph. But there are zero values in every third position. I realise all of these tools are widely in use, so it's definitely my mistake. But can't find where exactly.
Here is screenshot of grafana
As you can see every 30s (every third point) is zero. Why?
I do this from shell to increment my counter twice a second:
while :; do
echo "test-service.nreq:1|c" | nc -w1 -u 127.0.0.1 8125
done
I thought there is statd who looses the values due to UDP. But according to log, it doesn't:
20 Nov 20:39:40 - DEBUG: numStats: 23
20 Nov 20:39:40 - DEBUG: test-service.nreq:1|c
20 Nov 20:39:40 - DEBUG: response.200:1|c
20 Nov 20:39:40 - DEBUG: view.graphite.tags.views.tagMultiSeries.POST:1.000000|ms
20 Nov 20:39:40 - DEBUG: view.graphite.tags.views.POST:1.000000|ms
20 Nov 20:39:40 - DEBUG: view.POST:1.000000|ms
20 Nov 20:39:41 - DEBUG: test-service.nreq:1|c
20 Nov 20:39:42 - DEBUG: test-service.nreq:1|c
... (same lines for every second)
20 Nov 20:39:49 - DEBUG: numStats: 23
20 Nov 20:39:50 - DEBUG: numStats: 23
20 Nov 20:39:50 - DEBUG: response.200:1|c
20 Nov 20:39:50 - DEBUG: view.graphite.tags.views.tagMultiSeries.POST:1.000000|ms
20 Nov 20:39:50 - DEBUG: view.graphite.tags.views.POST:1.000000|ms
20 Nov 20:39:50 - DEBUG: view.POST:1.000000|ms
grafana graphite statsd
grafana graphite statsd
asked Nov 20 '18 at 19:48
aplauxaplaux
1
1
Resolved a problem. The problem been in Docker and Mac OS. It seems, there is always some time-skew in Mac OS docker. And due to problem like this statsd sent several values in same 10-second period. Graphite always account latest, and it was zero.
– aplaux
Nov 20 '18 at 23:29
add a comment |
Resolved a problem. The problem been in Docker and Mac OS. It seems, there is always some time-skew in Mac OS docker. And due to problem like this statsd sent several values in same 10-second period. Graphite always account latest, and it was zero.
– aplaux
Nov 20 '18 at 23:29
Resolved a problem. The problem been in Docker and Mac OS. It seems, there is always some time-skew in Mac OS docker. And due to problem like this statsd sent several values in same 10-second period. Graphite always account latest, and it was zero.
– aplaux
Nov 20 '18 at 23:29
Resolved a problem. The problem been in Docker and Mac OS. It seems, there is always some time-skew in Mac OS docker. And due to problem like this statsd sent several values in same 10-second period. Graphite always account latest, and it was zero.
– aplaux
Nov 20 '18 at 23:29
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53400513%2fgraphite-skips-every-third-point%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53400513%2fgraphite-skips-every-third-point%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Resolved a problem. The problem been in Docker and Mac OS. It seems, there is always some time-skew in Mac OS docker. And due to problem like this statsd sent several values in same 10-second period. Graphite always account latest, and it was zero.
– aplaux
Nov 20 '18 at 23:29