热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Summarizefunctionisdoingalignmentwithouttimezone?

Hi.Imtryingtogetsummarizefrom00:00otfirstdayofthismonthametric,

Hi .

I'm trying to get summarize from 00:00 ot first day of this month a metric, I'm working on spain and I've configured my timezone in /opt/graphite/webapp/graphite/local_settings.py

1
2
# needs to be explicitly set to your local timezone.

TIME_ZONE = 'Europe/Madrid'

I did this query.

1
http://graphite/render?format=json&from=4/01/2015&until=-&target=summarize(my.system.cpu.percent-active,'1day','avg')

And I got that

[{"target": "summarize(my.system.cpu.percent-active, \"1day\", \"avg\")", "datapoints": [[49.497208009728958, 1427846400], [37.077833077777775, 1427932800], [42.021989086805604, 1428019200], [49.25920844236115, 1428105600], [63.997593792361165, 1428192000], [81.546292237499998, 1428278400], [73.984663305555543, 1428364800], [73.646580338888811, 1428451200], [48.208400477083359, 1428537600], [38.049111687500016, 1428624000], [32.406861394444419, 1428710400], [32.73222370000007, 1428796800], [34.046655264583308, 1428883200], [34.440842520138879, 1428969600], [60.00367210694445, 1429056000], [87.657549924305584, 1429142400], [75.007352623225813, 1429228800]]}]

If I do tranlation for this timestamps to my current location summarize function seems to align to Standard Time +0000 UTC , and not my local Timezone as I would want

image

image

该提问来源于开源项目:graphite-project/graphite-web

According to documentation "The alignToFrom boolean parameter has been replaced by alignTo and no longer has any effect. Alignment can be to years, months, weeks, days, hours, and minutes."
So, smartSummarize(seriesList, intervalString, func='sum', alignTo='day') should work fine with timezones.


推荐阅读
  • 在windows7中安装sqlserver2005中碰到的问题1.iis检测失败的解决办法控制面板-》程序和功能-》打开或关闭windows功能-》打开IISFeatures,点左 ... [详细]
  • 本文由编程笔记#小编为大家整理,主要介绍了markdown[软件代理设置]相关的知识,希望对你有一定的参考价值。 ... [详细]
  • ZendCache:让网站飞起来
    php教程|php手册zend,ZendCache,PHP,Cache,comphp教程-php手册对商业网站来说,效率是十分重要的。在一些电子商务的站点上,服务器的响应速度决定了 ... [详细]
  • 今天我们开始学习下拉及多级弹出菜单,包含以下内容和知识点:带下拉子菜单的导航菜单绝对定位和浮动的区别和运用css自适应宽度滑动门菜单一、带下拉子菜单的导航菜单下拉菜单在一些 ... [详细]
  • 【前端工具】nodejs+npm+vue 安装(windows)
    预备先看看这几个是干嘛的,相互的关系是啥。nodejs是语言,类比到php。npm是个包管理,类比到composer。vue是个框架&# ... [详细]
  • 第四讲ApacheLAMP服务器基本配置Apache的编译安装从Apache的官方网站下载源码包:http:httpd.apache.orgdownload.cgi今 ... [详细]
  • JVM:33 如何查看JVM的Full GC日志
    1.示例代码packagecom.webcode;publicclassDemo4{publicstaticvoidmain(String[]args){byte[]arr ... [详细]
  • cs231n Lecture 3 线性分类笔记(一)
    内容列表线性分类器简介线性评分函数阐明线性分类器损失函数多类SVMSoftmax分类器SVM和Softmax的比较基于Web的可交互线性分类器原型小结注:中文翻译 ... [详细]
  • 使用这个技巧要达到的目标:一般来说,模型和控制器你都不会有相同的类名字。让我先创建一个取名为post的model。classPostextendsModel{}现在 ... [详细]
  • 起因由于我录制过一个小程序的课程,里面有消息模板的讲解。最近有几位同学反馈官方要取消消息模板,使用订阅消息。为了方便大家容易学 PythonFlask构建微信小程序订餐系统 课程。 ... [详细]
  • charles3.11.1抓https包
    结论先行:用的是安卓测试机,没加固之前的生产环境的安装包,可以抓到https请求加固之后的包【也就是要上应用市场的包】,抓不到https请求电脑上的操作:1.安装证书【电脑上安装了 ... [详细]
  • linux时间字符串转正常时间 ... [详细]
  • 搭建线上服务器环境,分享一下我安装MySql的步骤,也替大家踩踩坑!一、检查服务器是否已经安装MySqlrpm-qa|grepmysql如 ... [详细]
  • 如何在vscode中使用GitLab我同广大码友们一样,好不容易赶上了个节假日,回到家一顿安排,可屁股还没坐热就接到线上紧急BUG需要修复 ... [详细]
  • 解决cacti安装过程中的常见错误
    1、出现下面提示解决办法:登录mysql,执行下面内容mysqlGRANTSELECTONmysql.time_zone_nameTOcactiloc ... [详细]
author-avatar
BBCong
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有