<div dir="ltr">Hi Sylvain,<div><br></div><div>I'm able to see metrics but when I use the same query without the ".Metrics()" in Grafana I can't see anything.</div><div><br></div><div>I can see Metrics in the past, but not Flow.</div><div><br></div><div>This query shows many results:</div><div><br></div><div>"g.At('-1s').V().Has('Name', Regex('_openshift-infra_')).Out().Has('Type', 'veth').Flows().Metrics()"<br></div><div><br></div><div>But this one none:</div><div><br></div><div>"g.At('-1s').V().Has('Name', Regex('_openshift-infra_')).Out().Has('Type', 'veth').Flows()"<br></div><div><br></div><div>Thanks,</div><div>Mak</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 2, 2017 at 1:19 PM, Sylvain Afchain <span dir="ltr"><<a href="mailto:safchain@redhat.com" target="_blank">safchain@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Marcos,<br>
<br>
Can you try to add Metrics() in order to see if you can get metrics for flow captured.<br>
<br>
docker run --net=host -ti skydive/skydive client --analyzer <a href="http://172.30.27.26:8082" rel="noreferrer" target="_blank">172.30.27.26:8082</a> topology query --gremlin "g.V().Has('Name', Regex('_openshift-infra_')).<wbr>Out().Has('Type', 'veth').Flows().Metrics()"<br>
<br>
If you get a result, you can copy paste the gremlin expression in grafana without the ".Metrics()".<br>
<br>
You can also check that you are able to see flow in the past like this:<br>
<br>
g.At('-1s').V().Has('Name', Regex('_openshift-infra_')).<wbr>Out().Has('Type', 'veth').Flows()<br>
<br>
It will return you flows that were existing 1 sec ago, this test will validate that the datastore is working correctly.<br>
<br>
In order to get flows and metrics you have to have a capture started thanks to the WebUI or the command line.<br>
<div class="HOEnZb"><div class="h5"><br>
Thanks,<br>
<br>
Sylvain<br>
<br>
----- Mail original -----<br>
> Thanks Nicolas, can do the query now and get results with both queries:<br>
><br>
> docker run --net=host -ti skydive/skydive client --analyzer<br>
> <a href="http://172.30.27.26:8082" rel="noreferrer" target="_blank">172.30.27.26:8082</a> topology query --gremlin "g.V().Has('Name',<br>
> Regex('_openshift-infra_')).<wbr>Out().Has('Type', 'veth')"<br>
><br>
> docker run --net=host -ti skydive/skydive client --analyzer<br>
> <a href="http://172.30.27.26:8082" rel="noreferrer" target="_blank">172.30.27.26:8082</a> topology query --gremlin "g.V()"<br>
><br>
> But I'm getting empty results when I try to query for flows:<br>
><br>
> docker run --net=host -ti skydive/skydive client --analyzer<br>
> <a href="http://172.30.27.26:8082" rel="noreferrer" target="_blank">172.30.27.26:8082</a> topology query --gremlin "g.V().Has('Name',<br>
> Regex('_openshift-infra_')).<wbr>Out().Has('Type', 'veth').Flows()"<br>
><br>
> This query only returns values when doing a capture at the same time using<br>
> Skydive web Interface, but still returning empty values to Grafana.<br>
><br>
> So what are the steps to get the flows to Grafana?<br>
><br>
> Thanks,<br>
> Mak<br>
><br>
><br>
><br>
> , but I'm still getting a grafana empty result while using the query:<br>
><br>
><br>
><br>
><br>
><br>
> On Thu, Mar 2, 2017 at 3:56 AM, Nicolas Planel <<a href="mailto:nplanel@redhat.com">nplanel@redhat.com</a>> wrote:<br>
><br>
> > Hi Marcos,<br>
> ><br>
> ><br>
> > Yes you can add --analyzer <a href="http://172.30.27.26:8082" rel="noreferrer" target="_blank">172.30.27.26:8082</a> on the command line like :<br>
> > docker run --net=host -ti skydive/skydive client --analyzer<br>
> > <a href="http://172.30.27.26:8082" rel="noreferrer" target="_blank">172.30.27.26:8082</a> topology query --gremlin "g.V()"<br>
> ><br>
> > Other solution could be use -c skydive.yml or the environment variable<br>
> > SKYDIVE_ANALYZER<br>
> ><br>
> ><br>
> > Regards,<br>
> ><br>
> > Nicolas<br>
> ><br>
> ><br>
> > On Thu, Mar 2, 2017 at 1:37 AM, Marcos Entenza Garcia <<a href="mailto:mak@redhat.com">mak@redhat.com</a>><br>
> > wrote:<br>
> ><br>
> >> Is it posible to specify the IP? The port is not exposed in the Node as<br>
> >> this is exposed through a Kubernetes services which speak directly with<br>
> >> the<br>
> >> Pod IP, so I get an error if I try to contact localhost.<br>
> >><br>
> >> 2017-03-01T14:36:33.959Z node01.mak.lab:skydive topology.go:51 client<br>
> >> glob.func18 > ERRO 002 Authentication failed: dial tcp <a href="http://127.0.0.1:8082" rel="noreferrer" target="_blank">127.0.0.1:8082</a>:<br>
> >> getsockopt: connection refused<br>
> >><br>
> >> tcp 0 0 <a href="http://10.1.3.1:45232" rel="noreferrer" target="_blank">10.1.3.1:45232</a> <a href="http://10.1.3.2:8082" rel="noreferrer" target="_blank">10.1.3.2:8082</a><br>
> >> TIME_WAIT -<br>
> >> tcp 0 0 <a href="http://10.1.3.1:45230" rel="noreferrer" target="_blank">10.1.3.1:45230</a> <a href="http://10.1.3.2:8082" rel="noreferrer" target="_blank">10.1.3.2:8082</a><br>
> >> TIME_WAIT -<br>
> >> tcp 0 0 <a href="http://10.1.3.1:44406" rel="noreferrer" target="_blank">10.1.3.1:44406</a> <a href="http://172.30.27.26:8082" rel="noreferrer" target="_blank">172.30.27.26:8082</a><br>
> >> ESTABLISHED 32335/skydive<br>
> >> tcp 0 0 <a href="http://10.1.3.1:45240" rel="noreferrer" target="_blank">10.1.3.1:45240</a> <a href="http://10.1.3.2:8082" rel="noreferrer" target="_blank">10.1.3.2:8082</a><br>
> >> TIME_WAIT -<br>
> >> tcp 0 0 <a href="http://10.1.3.1:45246" rel="noreferrer" target="_blank">10.1.3.1:45246</a> <a href="http://10.1.3.2:8082" rel="noreferrer" target="_blank">10.1.3.2:8082</a><br>
> >> TIME_WAIT -<br>
> >> tcp 0 0 <a href="http://10.1.3.1:45258" rel="noreferrer" target="_blank">10.1.3.1:45258</a> <a href="http://10.1.3.2:8082" rel="noreferrer" target="_blank">10.1.3.2:8082</a><br>
> >> TIME_WAIT -<br>
> >> tcp 0 0 <a href="http://10.1.3.1:45260" rel="noreferrer" target="_blank">10.1.3.1:45260</a> <a href="http://10.1.3.2:8082" rel="noreferrer" target="_blank">10.1.3.2:8082</a><br>
> >> TIME_WAIT -<br>
> >> tcp 0 0 <a href="http://10.1.3.1:57230" rel="noreferrer" target="_blank">10.1.3.1:57230</a> <a href="http://172.30.27.26:8082" rel="noreferrer" target="_blank">172.30.27.26:8082</a><br>
> >> ESTABLISHED 32335/skydive<br>
> >> tcp 0 0 <a href="http://10.1.3.1:45236" rel="noreferrer" target="_blank">10.1.3.1:45236</a> <a href="http://10.1.3.2:8082" rel="noreferrer" target="_blank">10.1.3.2:8082</a><br>
> >> TIME_WAIT -<br>
> >> tcp 0 0 <a href="http://10.1.3.1:45272" rel="noreferrer" target="_blank">10.1.3.1:45272</a> <a href="http://10.1.3.2:8082" rel="noreferrer" target="_blank">10.1.3.2:8082</a><br>
> >> TIME_WAIT -<br>
> >> tcp 0 0 <a href="http://10.1.3.1:45276" rel="noreferrer" target="_blank">10.1.3.1:45276</a> <a href="http://10.1.3.2:8082" rel="noreferrer" target="_blank">10.1.3.2:8082</a><br>
> >> TIME_WAIT -<br>
> >> tcp 0 0 <a href="http://10.1.3.1:45284" rel="noreferrer" target="_blank">10.1.3.1:45284</a> <a href="http://10.1.3.2:8082" rel="noreferrer" target="_blank">10.1.3.2:8082</a><br>
> >> TIME_WAIT -<br>
> >> tcp 0 0 <a href="http://10.1.3.1:45248" rel="noreferrer" target="_blank">10.1.3.1:45248</a> <a href="http://10.1.3.2:8082" rel="noreferrer" target="_blank">10.1.3.2:8082</a><br>
> >> TIME_WAIT -<br>
> >> tcp 0 0 <a href="http://10.1.3.1:45286" rel="noreferrer" target="_blank">10.1.3.1:45286</a> <a href="http://10.1.3.2:8082" rel="noreferrer" target="_blank">10.1.3.2:8082</a><br>
> >> TIME_WAIT -<br>
> >> udp 0 0 <a href="http://10.1.3.1:57812" rel="noreferrer" target="_blank">10.1.3.1:57812</a> <a href="http://172.30.27.26:8082" rel="noreferrer" target="_blank">172.30.27.26:8082</a><br>
> >> ESTABLISHED 32335/skydive<br>
> >><br>
> >> Thanks,<br>
> >> Mak<br>
> >><br>
> >> On Wed, Mar 1, 2017 at 12:36 PM, Sylvain Afchain <<a href="mailto:safchain@redhat.com">safchain@redhat.com</a>><br>
> >> wrote:<br>
> >><br>
> >>> Hi,<br>
> >>><br>
> >>> this command line could help you<br>
> >>><br>
> >>> docker run --net=host -ti skydive/skydive client topology query<br>
> >>> --gremlin "g.V()"<br>
> >>><br>
> >>><br>
> >>> Sylvain<br>
> >>><br>
> >>> ----- Mail original -----<br>
> >>> > Hi Sylvain,<br>
> >>> ><br>
> >>> > Can't use command line from analyzer as the container does not allow<br>
> >>> to use<br>
> >>> > a 'sh' or 'bash' entrypoint in order to get a session inside the<br>
> >>> container.<br>
> >>> ><br>
> >>> > Regarding storage is using elasticsearch.<br>
> >>> ><br>
> >>> > Thanks,<br>
> >>> > Mak<br>
> >>> ><br>
> >>> > On Wed, Mar 1, 2017 at 11:32 AM, Sylvain Afchain <<a href="mailto:safchain@redhat.com">safchain@redhat.com</a>><br>
> >>> > wrote:<br>
> >>> ><br>
> >>> > > Hi,<br>
> >>> > ><br>
> >>> > > You can try the gremlin request using the command line to validation<br>
> >>> that<br>
> >>> > > you have flows. You can add the ".Metrics()" step to see the<br>
> >>> metrics. What<br>
> >>> > > is the storage backend ? analyzer.storage in the config file.<br>
> >>> > ><br>
> >>> > > Thanks,<br>
> >>> > ><br>
> >>> > > Sylvain<br>
> >>> > ><br>
> >>> > > ----- Mail original -----<br>
> >>> > > > All,<br>
> >>> > > ><br>
> >>> > > > I've installed the Skydive plugin for Grafana and apparently it's<br>
> >>> working<br>
> >>> > > > fine, but when I try to create any graph I'm getting 'No data<br>
> >>> points'<br>
> >>> > > > message in Grafana.<br>
> >>> > > ><br>
> >>> > > > I've tried to review any log but can't find any error. Any<br>
> >>> suggestions<br>
> >>> > > about<br>
> >>> > > > how can I debug this?<br>
> >>> > > ><br>
> >>> > > > Thanks,<br>
> >>> > > > Mak<br>
> >>> > > ><br>
> >>> > > > ______________________________<wbr>_________________<br>
> >>> > > > Skydive-dev mailing list<br>
> >>> > > > <a href="mailto:Skydive-dev@redhat.com">Skydive-dev@redhat.com</a><br>
> >>> > > > <a href="https://www.redhat.com/mailman/listinfo/skydive-dev" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/skydive-dev</a><br>
> >>> > > ><br>
> >>> > ><br>
> >>> ><br>
> >>><br>
> >><br>
> >><br>
> >> ______________________________<wbr>_________________<br>
> >> Skydive-dev mailing list<br>
> >> <a href="mailto:Skydive-dev@redhat.com">Skydive-dev@redhat.com</a><br>
> >> <a href="https://www.redhat.com/mailman/listinfo/skydive-dev" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/skydive-dev</a><br>
> >><br>
> >><br>
> ><br>
><br>
</div></div></blockquote></div><br></div>