carbon

Graphite简要教程

允我心安 提交于 2019-12-03 06:27:59
转载自 DevOps实战:Graphite监控上手指南 英文原文 Getting Started with Monitoring using Graphite 英文原文 Google快照 作者 Franklin Angulo , 译者 丛一 发布于 2015年3月17日 在本文中, 我将提供一个帮助读者了解用Graphite套件创建监控系统所涉及的全部工作的指南. 主要讨论内容 在本文中我们将会谈及如下用于创建Graphite监控系统的主题: Carbon和Whisper简介 Whisper存储模式和聚合 Graphite Web应用 前提条件 首先, 我们需要能够运行Graphite套件的硬件资源. 为了简单起见, 我将使用Amazon Web Services EC2主机. 不过, 你也可以使用办公室或家中已有的任何型号的计算机. 技术规格: 操作系统:Red Hat Enterprise Linux (RHEL) 6.5 实例类型:m3.xlarge 弹性存储区块(EBS)容量:250 GB Python版本:2.6.6 Carbon和Whisper简介 Graphite由多个后端和前端组件组成. 后端组件用于存储数值型的时间序列数据. 前端组件则用于获取指标项数据并根据情况渲染图表. 在本文中, 我首先会介绍后端组件: Carbon 和 Whisper .

wso2ei-6.0.0 can not start in eclipse

匿名 (未验证) 提交于 2019-12-03 03:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I can not start wso2ei-6.0.0 in eclipse. The version I am using is developer-studio-ei-eclipse-jee-mars-2-win64-x86_64-1.0.0 version, jdk is 1.8.0. When I configure the server I select WSO2 Enterprise Integrator 6.0.0 others select defaults, I encounter an error when trying to start it. OSGi console has been enabled with options: -console osgi> [2017-03-04 10:33:35,314] [EI-Core] INFO - CarbonCoreActivator Starting WSO2 Carbon... [2017-03-04 10:33:35,318] [EI-Core] INFO - CarbonCoreActivator Operating System : Windows 7 6.1, amd64 [2017-03

PHP Carbon, get all dates between date range?

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I get all dates between two dates in PHP? Prefer using Carbon for dates. $from = Carbon::now(); $to = Carbon::createFromDate(2017, 5, 21); I wanna have all dates between those two dates.. But how? Can only found solutions using strtotime function. 回答1: As Carbon is an extension of PHP's built-in DateTime, you should be able to use DatePeriod and DateInterval, exactly as you would with a DateTime object $interval = new DateInterval('P1D'); $to->add($interval); $daterange = new DatePeriod($from, $interval ,$to); foreach($daterange as

Can't Start Carbon - 12.04 - Python Error - ImportError: cannot import name daemonize

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am really hoping someone can help me as I have spent at-least 15 hours trying to fix this problem. I have been given a task by a potential employer and my solution is to use graphite/carbon/collectd. I am trying to run and install carbon / graphite 0.9.12 but I simply can't get carbon to start. Every time I try and start carbon I end up with the following error. I am using a bash script to install to keep everything consistent. I don't really know python at all so would appreciate any help you can provide. /etc/rc0.d/K20carbon-cache -> ..

Carbon.php The separation symbol could not be found Data missing

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: First, I retrieve all the records, //get inventory items $inv = inventory::all(); and then I loop on the retrieved records and modify the created_at and updated_at data to make it more human readable date. foreach($inv as $i){ $i->created_at = date("M d, Y",strtotime($i->created_at)); $i->updated_at = date("M d, Y",strtotime($i->updated_at)); } but it returns me this error, InvalidArgumentException in Carbon.php line 425: Unexpected data found. Unexpected data found. The separation symbol could not be found Data missing any ideas, help,

Laravel “Unexpected data found” error when trying to change format of Carbon created_at date

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I try to modify the format of the default created_at field of my Resource model, I get the following error: { "error":{ "type":"InvalidArgumentException", "message":"Unexpected data found. Unexpected data found. The separation symbol could not be found Unexpected data found. A two digit second could not be found", "file":"\/var\/www\/html\...vendor\/nesbot\/carbon\/src\/Carbon\/Carbon.php", "line":359 } } Here is the code that produced the above error: $tile = Resource::with('comments, ratings')->where('resources.id', '=', 1)->first();

Laravel Carbon Data Missing

匿名 (未验证) 提交于 2019-12-03 02:01:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In my model I have the following: protected $dates = [ 'start', 'end', 'created_at', 'updated_at' ]; I am using a datetime picker to insert the start and end dates, in this format: 2016-01-23 22:00 Without the seconds. When I do it like this, I get this error: InvalidArgumentException in Carbon.php line 425: Data missing at Carbon::createFromFormat('Y-m-d H:i:s', '2016-01-23 22:00') in Model.php line 3015 If I do include the seconds, it works. The seconds are not important to me, and I do not want to include them in my datetime picker fields

How to compare date with mongodb iso date in laravel mongodb eloquent query?

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to get record from data where date is greater than given date. But I am getting problem in comparing date with mongodb iso datetime. Currently I am getting date in Y-m-d format which I want to compare in query and date in mongodb is in 2015-10-08T08:01:46.000Z format. 回答1: Laravel's Eloquent supports Carbon/DateTime objects instead of MongoDate objects which will be converted internally to MongoDate objects when saved to the database. You could use this date handling package in laravel called Carbon with your queries. For example, if

Class 'App\\Carbon\\Carbon' not found Laravel 5

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I recently run sudo composer update Now on one of my pages, I kept getting I did use $now = Carbon\Carbon::now('America/New_York'); in line 792 on my Helper.php My Helper.php located at app/Helper.php How do I prevent this ? This is what I have in my aliases 'aliases' => [ 'App' => Illuminate\Support\Facades\App::class, 'Artisan' => Illuminate\Support\Facades\Artisan::class, 'Auth' => Illuminate\Support\Facades\Auth::class, 'Blade' => Illuminate\Support\Facades\Blade::class, 'Bus' => Illuminate\Support\Facades\Bus::class, 'Cache' =>

wso2 svn structure documentation

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there any documentation available that describes the WSO2 svn structure? It seems that the folder https://svn.wso2.org/repos/wso2/branches/ is deprecated. Question 1: Should I only be working in the svn folder https://svn.wso2.org/repos/wso2/carbon/ ? In the https://svn.wso2.org/repos/wso2/carbon/ folder, I'm managing to piece bits together, for example the difference between Carbon orbit , kernel and platform (see previous stackoverflow question ). In the https://svn.wso2.org/repos/wso2/carbon/platform/branches/ folder, there are 3 sub