<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<blockquote type="cite">
<pre style="margin: 1.5em 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12.0012px; font-family: 'andale mono', 'lucida console', monospace; vertical-align: baseline; white-space: pre-wrap; font-variant: normal; font-stretch: normal; line-height: 18.0018px; color: rgb(83, 83, 83); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"> I have a meter subscription m1.* for publisher p1 and I need a subset of m1.* notifications for ex:m1.xyz.* for publisher p2.
If we add p2 to already exisiting sink along with p1, p2 will get other notification's along with m1.xyz.* which are not needed for p2.
To avoid this we had the following entry in pipeline;
sources:
-name : m1meter
meters: m1.*,!m1.xyz.*
sinks:
-m1sink
.........
-name : m2meter
meters:m1.xyz.*
sinks:
-m2sink
sinks:
-name: m1sink
publishers:
-p1
-name: m2sink
publishers:
-p1
-p2
</pre>
</blockquote>
you will unfortunately need to explicitly list out your required meters explicitly (without) wildcard.<br>
<br>
<blockquote type="cite">
<pre style="margin: 1.5em 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12.0012px; font-family: 'andale mono', 'lucida console', monospace; vertical-align: baseline; white-space: pre-wrap; font-variant: normal; font-stretch: normal; line-height: 18.0018px; color: rgb(83, 83, 83); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">
><i>From reply mail it seems there is no strict restriction to support this.Could you please let me know how should we handle such cases in ceilometer.
</i>If we do code modification in pipeline module of ceilometer does it effects any other parts of ceilometer frame work.</pre>
</blockquote>
the code filtering happens here: <a class="moz-txt-link-freetext" href="https://github.com/openstack/ceilometer/blob/master/ceilometer/pipeline.py#L275-L287">
https://github.com/openstack/ceilometer/blob/master/ceilometer/pipeline.py#L275-L287</a> and similarly in previous releases.<br>
<br>
it will not affect anything other than pipeline filtering so it should be safe to change. you are welcome to push your change to community. as i mentioned previously, i don't think there is a restriction on having either wildcard or negative wildcard support
in one pipeline. it was just how it was implemented as we did not have a requirement to deal with both (and the added complexity of ordering that comes with it)<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
gord</pre>
</body>
</html>