2016-12-29 3 views
0

의 합계가 아닙니다. 그래파이트의 이상한 동작을 경험하고 있습니다.흑연 : 오늘 시리즈 이후로 sumSeries()가

우리는받은 전화에 대한 날짜를 수집하는 두 대의 컴퓨터를 가지고 있으며 차트를 플롯하고 두 차트의 합계도 표시합니다.

단일 기계의 차트는 정상이지만 더 이상 작동하지 않습니다.

은 graphtite의 스크린 샷이며, 또한 그 4+5=5

enter image description here enter image description here

이 잘못 합이 다른 메트릭도 발생 (내 수학 선생님이 죽을 것입니다)하는 방법을 보여줍니다 grafana. 그리고 나는 이유를 알지 못합니다.

# Schema definitions for whisper files. Entries are scanned in order, 
# and first match wins. 
# 
# [name] 
# pattern = regex 
# retentions = timePerPoint:timeToStore, timePerPoint:timeToStore, ... 

[time_data] 
pattern = ^stats\.timers.* 
xFilesFactor = 0.5 
aggregationMethod = average 

[storage_space] 
pattern = \.postgresql\..* 
xFilesFactor = 0.1 
aggregationMethod = average 

[default_1min_for_1day] 
pattern = .* 
xFilesFactor = 0 
aggregationMethod = sum 

aggregation-rules.conf

storage-aggregations.conf

# Schema definitions for whisper files. Entries are scanned in order, 
# and first match wins. 
# 
# [name] 
# pattern = regex 
# retentions = timePerPoint:timeToStore, timePerPoint:timeToStore, ... 

[default_1min_for_1day] 
pattern = .* 
retentions = 60s:1d,1h:7d,1d:1y,7d:5y 

storage-scheams.conf

는 원인이 될 수 있지만 오전 6시 전에 일하고 있었다. 그러나 어쨌든 stats_count.all이라는 수치는 볼 수 없습니다.

stats_counts.all.rest.req (60) = sum stats_counts.srv_*_*.rest.req 
stats_counts.all.rest.res (60) = sum stats_counts.srv_*_*.rest.res 
+0

이 두 메트릭에 대한 위스퍼 정보의 출력뿐만 아니라 storage-schema.conf도 제공하십시오. – kwarunek

+0

@kwarunek가 config를 추가 했으므로, 'whisper-info'로 무엇을 갖고 싶습니까? – EsseTi

+0

데이터가 다른 "분"에 저장 될 수 있습니까? 차트를 오버레이하면 데이터가 정렬되지 않지만 다른 데이터는 정렬됩니다. 어쩌면 데이터가 2 분 간격으로 저장되고 시스템이 병합하지 못할 수도 있습니다. 어떻게 정렬 할 수 있습니까? https://www.dropbox.com/s/a46890y9qla9zc2/Screenshot%202016-12-29%2013.56.07.png?dl=0 – EsseTi

답변

0

두 시리즈는 타임 스탬프에 의해 alligned되지 않은 것 같다, 그래서 sum는 점을 요약 할 수 없었다. 이것은 다음 차트에서 볼 수 있습니다. 여기에서는 두 가지 다른 시간 (grafana의 차트)으로 시간 highliths 포인트를 선택합니다. 이런 일이 왜

enter image description here

나도 몰라. 일부 서비스를 재설정했습니다 (이 차트는 파이썬의 경우 statsd이고 bucky의 경우). 어쩌면 그 중 하나의 잘못이었을 것입니다.

참고. 그러나 이제는이 방법이 효과가 있습니다. 누군가가 그 이유를 알고 있고 어떻게 해결할 수 있는지 알고 싶습니다.