-
Logs check without ELK 🙂
Hi, We didn’t have the time to implement ELK stack for Kafka logs so if a issue appears it should be done the old fashion way. To that purpose, here are two commands that should help you surfing the logs in an easy manner. First of all, there is the grep command that should show…
-
Editing Windows registry entries(hive) from Linux
Hi, I want to share this with you and also it’s also very useful for me in case i come to this problem again. The main reason for this is related to the fact that my Windows installation will not boot anymore. We thought that it was something related to a registry entry, so i…
-
Jolokia particular case using custom facts in Hiera
Hi, This is for me and also for all the other people that are searching for how to use custom defined types in Hiera In my case i wanted to activate the HTTP endpoint of Jolokia using custom hostname and standard port. And for that it was sufficient to add in my host yaml the…
-
Kafka_consumer.yaml (python style) and more
Hi, As a followup to the article i posted earlier ( https://log-it.tech/2019/03/15/get-the-info-you-need-from-consumer-group-python-style/ ) , you can use that info to put in into kafka_consumer.yaml for Datadog integration. It’s not elegant by any means, but it works. As an advise, please don’t over complicate thinks more than they need. In the last example i figured i…
-
Get the info you need from consumer group (python style)
Hi, For some of you might be of help. If it’s rubbish, i truly apologize, please leave a comment with improvements 🙂 I will not explain it. It should be self explanatory. Cheers
-
Kafka consumer group info retrieval using Python
Hi, I’ve been playing with kafka-python module to grab the info i need in order to reconfigure Datadog integration. Unfortunately, there is a catch also on this method. And i will show you below. Here is a little bit of not so elegant code. As you will see, print(meta[3]) will return a very ugly binary…
-
Fact for kafka_consumer hash…or kind of
Hi, There is a late requirement that we activate the kafka_consumer functionality of Datadog. Unfortunately this is a challenge if you don’t have a fixed number of consumer groups and topics (on one client we had a couple of hundreds consumer groups) Here is how it should look in the example file So, if you…
-
Python for opening and reading files
Since I started learning Python and hopefully take also a certification, I am trying to do some hands-on. Nothing too complicated, just some basic exercises, for the moment. Here is one of them. They want to though you to open the and file and read from it like: But there is a thing not to…
-
Distributing service conditionally on OS version
Hi, Since we are in the process of migrating to 16.04, my service restart script needed to be deployed with separate builds. In that purpose, i found a fact that would help me, so that my standard file block transformed into this: case $facts[‘os’][‘distro’][‘codename’] { ‘xenial’: { file {“/root/servicerestart”: source => ‘puppet:///modules/profiles/servicerestart-kafka-new’, mode => ‘0755’,…
-
Order Linux processes by memory usage
This one is more for me actually. We have some issues with one puppet instance on which the processes fail, and i wanted to see if there is any way to order them by memory usage. So i searched the net and found this link https://unix.stackexchange.com/questions/92493/sorting-down-processes-by-memory-usage The command is like And it provides you with…