Giter Site home page Giter Site logo

Comments (7)

miketheman avatar miketheman commented on June 30, 2024

It appears that this may be a logical bug vs a code bug - as the kafka integration should automatically load and store the "standard" jmx metrics we collect, like jvm.gc.cms.count and jvm.heap_memory - can you confirm these are not appearing in your Metrics Summary?

from chef-datadog.

odise avatar odise commented on June 30, 2024

It seems that this is a weird yaml parsing issue. The kafka.yaml is causing the following exception on dd-agent startup:

ERROR | dd.collector | jmxfetch(jmxfetch.py:145) | kafka check is not a valid jmx configuration: Each configuration must have an 'include' section. See http://docs.datadoghq.com/integrations/java/ for more information

Changing the template a bit (adding two more spaces before the domain: keyword) is fixing the problem:

instances:
  - host: localhost
    port: 9999

init_config:
  is_jmx: true

  # Metrics collected by this check. You should not have to modify this.
  conf:
    #
    # Aggregate cluster stats
    #
    - include:
        domain: '"kafka.server"'
        bean: '"kafka.server":type="BrokerTopicMetrics",name="AllTopicsBytesOutPerSec"'
        attribute:
          MeanRate:
            metric_type: counter
            alias: kafka.net.bytes_out

from chef-datadog.

solarce avatar solarce commented on June 30, 2024

I ran into this as well. I created a PR with a fix, which I've tested in my dev environment as is working.

/etc/init.d/datadog-agent info
...
    kafka
    -----
      - instance #lookout-kafka-bburton-0 [OK] collected 22 metrics
      - Collected 22 metrics, 0 events & 0 service checks

@miketheman to also answer your last question, without this fix the agent does not start collecting any metrics via JMX. Once I applied this fix to my test host I began seeing the Kafka specific metrics (from JMX) appear on the node in the datadog UI.

It'd be great to see this get in and a 2.0.1 released

from chef-datadog.

donaldguy avatar donaldguy commented on June 30, 2024

See also #163 ... I was still waiting for direction on what's wanted on the tests

from chef-datadog.

solarce avatar solarce commented on June 30, 2024

FWIW I don't care which PR gets merged, let's just get a fix shipped plz :)

from chef-datadog.

flutist599 avatar flutist599 commented on June 30, 2024

adding the 2 spaces solved it!! spent 2 hours troubleshooting, now I found your help many thanks!!!

from chef-datadog.

sam-obeid avatar sam-obeid commented on June 30, 2024

This was very useful! Thanks for sharing.

from chef-datadog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.