cannot capture string values

17 views
Skip to first unread message

Athul Krishna

unread,
May 17, 2019, 7:13:01 AM5/17/19
to Cloudprober
Hi Manu,

To test the new string feature of cloudprober, I have installed it using go and tried to test it.But like before I am only able to get the numerical values as output and no string values.Can you tell me if anything has to be done differently

Regards,
Athul.

Manu Garg

unread,
May 17, 2019, 11:56:59 AM5/17/19
to Athul Krishna, Cloudprober
Can you share the method you used to build the latest cloudprober and the your config.

--
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/3e9dd0c8-1825-4e9a-ac69-2a2fbdead645%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,
May 20, 2019, 3:01:25 AM5/20/19
to Cloudprober
Hi Manu,

The method I used is:
I have installed go and have setup the GOPATH and GOBIN.
Then I executed the following commands:

  GOBIN=$GOPATH/bin go install $GOPATH/src/github.com/google/cloudprober/cmd/cloudprober.go

      My config file is:
       
      probe {
  name: "testing"
  type: EXTERNAL
  targets { dummy_targets{}}


  external_probe {
    mode: ONCE
    command: "python /u/athul/Downloads/test.py"

Manu Garg

unread,
May 20, 2019, 3:18:29 AM5/20/19
to Athul Krishna, Cloudprober
I wonder if you are running the latest cloudprober. Can you please replace the "go get" command with "go get -u":


That will force the update of the Go package.

I tried a modified version of your config:
~$ cat /tmp/test.cfg

probe {
  name: "testing"
  type: EXTERNAL
  targets { dummy_targets{}}

  external_probe {
    mode: ONCE
    command: "/tmp/test.sh"
  }
}

~$ cat /tmp/test.sh
#!/bin/sh

echo "version \"v0.10.2\""
echo "count 10"

~$ cloudprober --config_file=/tmp/test.cfg
cloudprober 1558336655041879000 1558336657 labels=ptype=external,probe=testing,dst= success=1 total=1 latency=8483.758
cloudprober 1558336655041879001 1558336657 labels=ptype=external,probe=testing,dst= version="v0.10.2" count=10.000
cloudprober 1558336655041879002 1558336659 labels=ptype=external,probe=testing,dst= success=2 total=2 latency=17966.967
cloudprober 1558336655041879003 1558336659 labels=ptype=external,probe=testing,dst= version="v0.10.2" count=10.000

--
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.

For more options, visit https://groups.google.com/d/optout.

Athul Krishna

unread,
May 22, 2019, 1:31:09 AM5/22/19
to Cloudprober
Thanks Manu. It finally worked.


On Friday, May 17, 2019 at 4:43:01 PM UTC+5:30, Athul Krishna wrote:
Reply all
Reply to author
Forward
0 new messages