<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">No errors in the notification logs.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Should this work with the default ceilometer.conf file or do I need to enable anything ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I’ve also tried using arithmetic. When I have a meter like “cpu” for the source, this fires the expression evaluation without problems.
However, I can’t find a good way of doing the appropriate calculations using the number of cores. Sample calculation is below<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">expr: $(cpu)*0.98+$(vcpus)*10.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I have tried $(cpu.resource_metdata.vcpus) and $(cpu.resource_metdata.cpu_number) also. Any suggestions on an alternative approach
that could work ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Any suggestions for the variable name to get at the number of cores when I’m evaluating an expression fired by the cpu time ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Tim<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> gordon chung [mailto:gord@live.ca]
<br>
<b>Sent:</b> 20 March 2015 20:55<br>
<b>To:</b> OpenStack Development Mailing List not for usage questions<br>
<b>Subject:</b> Re: [openstack-dev] [ceilometer] Pipeline for notifications does not seem to work<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Calibri",sans-serif">i can confirm it works for me as well... are there any noticeable errors in the ceilometer-agent-notifications log? the snippet below looks sane to me though.<br>
<br>
cheers,<br>
<i>gord</i><br>
<br>
<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">> From: <a href="mailto:idegtiarov@mirantis.com">
idegtiarov@mirantis.com</a><br>
> Date: Fri, 20 Mar 2015 18:35:56 +0200<br>
> To: <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a><br>
> Subject: Re: [openstack-dev] [ceilometer] Pipeline for notifications does not seem to work<br>
> <br>
> Hi Tim<br>
> <br>
> I've check your case on my devstack. And I've received new hs06 meter<br>
> in my meter list.<br>
> <br>
> So something wrong with your local env.<br>
> <br>
> <br>
> Cheers,<br>
> Igor D.<br>
> Igor Degtiarov<br>
> Software Engineer<br>
> Mirantis Inc<br>
> <a href="http://www.mirantis.com">www.mirantis.com</a><br>
> <br>
> <br>
> On Fri, Mar 20, 2015 at 5:40 PM, Tim Bell <<a href="mailto:Tim.Bell@cern.ch">Tim.Bell@cern.ch</a>> wrote:<br>
> ><br>
> ><br>
> > I’m running Juno with ceilometer and trying to produce a new meter which is<br>
> > based on vcpus * F (where F is a constant that is different for each<br>
> > hypervisor).<br>
> ><br>
> ><br>
> ><br>
> > When I create a VM, I get a new sample for vcpus.<br>
> ><br>
> ><br>
> ><br>
> > However, it does not appear to fire the transformer.<br>
> ><br>
> ><br>
> ><br>
> > The same approach using “cpu” works OK but this one is polling on a regular<br>
> > interval rather than a one off notification when the VM is created.<br>
> ><br>
> ><br>
> ><br>
> > Any suggestions or alternative approaches for how to get a sample based the<br>
> > number of cores scaled by a fixed constant?<br>
> ><br>
> ><br>
> ><br>
> > Tim<br>
> ><br>
> ><br>
> ><br>
> > In my pipeline.yaml sources,<br>
> ><br>
> ><br>
> ><br>
> > - name: vcpu_source<br>
> ><br>
> > interval: 180<br>
> ><br>
> > meters:<br>
> ><br>
> > - "vcpus"<br>
> ><br>
> > sinks:<br>
> ><br>
> > - hs06_sink<br>
> ><br>
> ><br>
> ><br>
> > In my transformers, I have<br>
> ><br>
> ><br>
> ><br>
> > - name: hs06_sink<br>
> ><br>
> > transformers:<br>
> ><br>
> > - name: "unit_conversion"<br>
> ><br>
> > parameters:<br>
> ><br>
> > target:<br>
> ><br>
> > name: "hs06"<br>
> ><br>
> > unit: "HS06"<br>
> ><br>
> > type: "gauge"<br>
> ><br>
> > scale: "47.0"<br>
> ><br>
> > publishers:<br>
> ><br>
> > - notifier://<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > __________________________________________________________________________<br>
> > OpenStack Development Mailing List (not for usage questions)<br>
> > Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> > <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
> ><br>
> <br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>