Comments (7)
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.
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.
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.
See also #163 ... I was still waiting for direction on what's wanted on the tests
from chef-datadog.
FWIW I don't care which PR gets merged, let's just get a fix shipped plz :)
from chef-datadog.
adding the 2 spaces solved it!! spent 2 hours troubleshooting, now I found your help many thanks!!!
from chef-datadog.
This was very useful! Thanks for sharing.
from chef-datadog.
Related Issues (20)
- Support custom MBean collection HOT 5
- SOLR Integration doesn't work when configured with Chef HOT 1
- Agent conflicts with Docker Registry on port 5000 HOT 1
- Breaking change introduced in version 4.10.0 - network monitoring HOT 2
- logs_agent_config attribute is ignored HOT 1
- Incorrect Hostname in datadog.yaml file HOT 4
- integration resource should notify a restart of the agent after installing a new version HOT 2
- Support cookbook renaming HOT 3
- undefined method `to_yaml' in newer versions of Chef HOT 1
- Chef Infra 18 deprecation warnings HOT 1
- Deprecation CHEF-25 HOT 3
- Support for UPSC HOT 2
- 2022 Linux Agent Key Rotation for someone using v4.10.0 HOT 3
- Windows system_probe commits missing from the latest datadog cookbook (4.12.0) HOT 1
- remove_dd_agent recipe does not remove the apt source nor datadog-signing-keys package HOT 1
- Could someone help me in resolving the error below which I am getting while chef is trying to install datadog agent on AWS Ubuntu host. HOT 7
- Consul Prometheus support missing
- [doc] Correct example in windows_service
- chef_handler dependency deprecated HOT 2
- [BUG] The datadog.process_agent.url attribute does not take datadog.site into account
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chef-datadog.