capturing output on cloudprober

41 views
Skip to first unread message

Athul Krishna

unread,
Apr 4, 2019, 12:45:10 AM4/4/19
to Cloudprober
Hi everyone,

I have run a python script using cloudprober to print a string and getting an output like this.

cloudprober 1554292480695531650 1554292482 labels=ptype=external,probe=testing,dst=in01devmonvm3 success=1 total=1 latency=137107.481

How can we capture the output using cloudprober?

Regards,
Athul.

Manu Garg

unread,
Apr 8, 2019, 4:39:17 AM4/8/19
to Athul Krishna, Cloudprober
I am not sure I understand what you mean by capturing the output. Are you referring to creating metrics from the script output? If yes, it is documented at:

TL;DR: Script should output variables in the format: "var-name var-value", with each variable in its own line:
var1 value1
var2 value2


--
You received this message because you are subscribed to the Google Groups "Cloudprober" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudprober...@googlegroups.com.
To post to this group, send email to cloud...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudprober/45a7067c-295e-47e2-994d-f639b93933ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Manu Garg
Creator of Page Notes & Pacparser
"Journey is the destination of life."

Athul Krishna

unread,
Apr 8, 2019, 4:52:42 AM4/8/19
to Manu Garg, Cloudprober
Thanks for the help Manu.I followed the syntax of outputting variables and it worked.

Regards,
Athul.


On Apr 8, 2019 2:09 PM, "Manu Garg" <manu...@gmail.com> wrote:
I am not sure I understand what you mean by capturing the output. Are you referring to creating metrics from the script output? If yes, it is documented at:

TL;DR: Script should output variables in the format: "var-name var-value", with each variable in its own line:
var1 value1
var2 value2


On Wed, Apr 3, 2019 at 9:45 PM Athul Krishna <athul...@gmail.com> wrote:
Hi everyone,

I have run a python script using cloudprober to print a string and getting an output like this.

cloudprober 1554292480695531650 1554292482 labels=ptype=external,probe=testing,dst=in01devmonvm3 success=1 total=1 latency=137107.481

How can we capture the output using cloudprober?

Regards,
Athul.

--
You received this message because you are subscribed to the Google Groups "Cloudprober" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudprober+unsubscribe@googlegroups.com.

To post to this group, send email to cloud...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudprober/45a7067c-295e-47e2-994d-f639b93933ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Athul Krishna

unread,
Apr 10, 2019, 2:33:31 AM4/10/19
to Cloudprober
Hi Manu,

Cloudprober is able to give numerical values. For example the script output is:

a ATHUL
b 10
c 9

The cloudprober gives:

cloudprober 1554877867949069869 1554877870 labels=ptype=external,probe=testing,dst= b=10.000 c=9.000

Cloudprober is not giving string value.Is it possible to get string value?If yes what should be the change?

Regards,
Athul.


On Monday, April 8, 2019 at 2:09:17 PM UTC+5:30, Manu Garg wrote:
I am not sure I understand what you mean by capturing the output. Are you referring to creating metrics from the script output? If yes, it is documented at:

TL;DR: Script should output variables in the format: "var-name var-value", with each variable in its own line:
var1 value1
var2 value2


On Wed, Apr 3, 2019 at 9:45 PM Athul Krishna <athul...@gmail.com> wrote:
Hi everyone,

I have run a python script using cloudprober to print a string and getting an output like this.

cloudprober 1554292480695531650 1554292482 labels=ptype=external,probe=testing,dst=in01devmonvm3 success=1 total=1 latency=137107.481

How can we capture the output using cloudprober?

Regards,
Athul.

--
You received this message because you are subscribed to the Google Groups "Cloudprober" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud...@googlegroups.com.

To post to this group, send email to cloud...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudprober/45a7067c-295e-47e2-994d-f639b93933ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Manu Garg

unread,
Apr 10, 2019, 5:56:01 PM4/10/19
to Athul Krishna, Cloudprober
On Tue, Apr 9, 2019 at 11:33 PM Athul Krishna <athul...@gmail.com> wrote:
Hi Manu,

Cloudprober is able to give numerical values. For example the script output is:

a ATHUL
b 10
c 9

The cloudprober gives:

cloudprober 1554877867949069869 1554877870 labels=ptype=external,probe=testing,dst= b=10.000 c=9.000

Cloudprober is not giving string value.Is it possible to get string value?If yes what should be the change?

No, unfortunately cloudprober doesn't support capturing string values. It should not be difficult to add support for that in cloudprober external probe code, but it doesn't do that at the moment. Sorry.
 
To unsubscribe from this group and stop receiving emails from it, send an email to cloudprober...@googlegroups.com.

To post to this group, send email to cloud...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages