Comments

2 comments

  • Avatar
    Ben Newton

    You can forward data to our HTTP source.

    1) First set up an hosted collector with an HTTP source (https://service.sumologic.com/ui/help/Default.htm#Configuring_an_HTTP_Source.htm)

    2) Get the URL

    3) Then set up the write_http plugin in your collectd setup something like this:

    <Plugin write\_http>

    <URL "https://collectors.sumologic.com/receiver/v1/http/yourURL">

        Format "command"

        StoreRates true

      </URL>

    </Plugin>

     

    4) You should now see the PUTVAL messages coming through (You can also use JSON, but I prefer the "command" format myself)

    PUTVAL localhost/cpu-0/cpu-steal interval=10.000 1365189443.904:0

    5) For the CPU counters, I set up a search like this single server. You could add in other servers fairly easily.

    _sourceCategory=CollectDMetrics AND PUTVAL AND cpu

    | parse regex "cpu-(?<cpu\_type>[a-z]+) interval=(?<interval>[\d.]+) (?<realVal>[\d.]+):(?<perVal>[\d.]+)"

    | timeslice by 1m

    | avg(perVal) by _timeslice,cpu_type

    | transpose row _timeslice column cpu_type

     

    6) You can put that in a dashboard and get something like the attached image.

    0
    Comment actions Permalink
  • Avatar
    Velimir Jankovic

    That makes. I will try it. Thank you.

    0
    Comment actions Permalink

Please sign in to leave a comment.