-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metric points missing after 6 points or 3 boxes #3999
Comments
👋 Thank you for opening your first issue. I'm just an automated bot that's here to help you get the information you need quicker, so please ignore this message if it doesn't apply to your issue. |
Hi, |
Thank you @Romanthefrog10 I just imported your tables in my database. In the I saw something that could be a problem for you, your metrics are configured to display datas as "Sum". You are monitoring the response time of a daemon or something. If you monitore twice, the first time it might take 10ms and the second time it might take 20ms, it'd be interesting to have 15ms as the average instead of 30ms as the sum. That's why currently there is one point with its value of 150008ms. |
Ok I think I understand @Romanthefrog10. The problem is the disappearing of the datas. I will use a curl command to post datas into a metric every minute and try to reproduce it. EDIT: Below the Bash script if someone wants to test. #!/usr/bin/env bash
delay=60
apikey=yourKeyHere
value=10
metricid=4
while :
do
# Compute the current timestamp
now=$(($(date +"%s")+7200))
curl -X POST -H "Content-Type: application/json;" -H "X-Cachet-Token: $apikey" \
-d "{\"value\":\"$value\",\"timestamp\":\"$now\"}" \
http://cachet.local/api/v1/metrics/$metricid/points
value=$((($value+15) % 100))
sleep $delay
done |
The fix for me was changing the postgresql timezone to be the same as timezone in cachet |
Do you have it running now with the issue? Can you check my fix branch if that helps: This is very weird thing that is happening there - which is adding to timeframe, everytime it doesn't find correct values, in mine it caused in wrong timezone to be like yours, in correct timezone was like in the issue #3842 |
Looking at this two years later... I do wanna apologize for my attitude, sorry! 😅 |
Hi, I recently installed Cachet 2.4.0-dev, using PHP 7.2, MySQL databases, and file for the driver and queue (APC just stopped working and started giving me an error 500 after clearing the cache). This is all on Ubuntu 18.04.
Metrics is alright, and I've seen some issues with it that people have reported, but this one is odd. For some reason, when ever my Metric points go past the last three boxes (fourth box or more), they just disappear and go into a straight line?
I'm not sure what the issue is or how to fix it. If you have any ideas, please let me know. I've also attached an image of what it looks like.
The text was updated successfully, but these errors were encountered: