-
Exclusive SASL on Zookeeper connections
Something related to following article. It seems that even if SASL is configured until version 3.6.1, Zookeeper will still allow anonymous connections and actions. There is now a new configuration available that will restrict such events and you can find it documented on the official Apache Zookeeper administration guide (zookeeper.sessionRequireClientSASLAuth) The main catch is that…
-
Prometheus metrics to Pandas data frame
Hi, We are trying to implement a decision tree algorithm in order to see if our resource usage can classify our servers in different categories. First step in that process is querying Prometheus from Python and create some data frames with some basic information in order to get them aggregated. To that purpose, you can…
-
Datadog and GCP are “friends” up to a point
Hi, Since in the last period I preferred to publish more on Medium, let me give you the link to the latest article. There is an interesting case in which the combination of automation, Goggle Cloud Platform and Datadog didn’t go as we expected. https://medium.com/metrosystemsro/puppet-datadog-google-cloud-platform-recipe-for-a-small-outage-310166e551f1 Hope you enjoy! I will get back with more also…
-
Optimizing VM costs in GCP
Hi, I recently published on Medium the hole story related to https://log-it.tech/2019/11/26/using-gcp-recommender-api-for-compute-engine/ You can find it at https://medium.com/metrosystemsro/new-ground-what-about-optimizing-the-size-of-machines-87855fbab9ef Enjoy the read!
-
Overriding OS fact with external one
Hi, Short notice article. We had a issue in which the traefik module code was not running because of a wrong os fact. Although the image is Ubuntu 14.04, facter returns it like: I honestly don’t know why this happens since on rest of machines it works good, the way to fix it fast is…
-
Strange problem in puppet run for Ubuntu
Hi, Short sharing of a strange case. We’ve written a small manifest in order to distribute some python scripts. You can find the reference here: https://medium.com/metrosystemsro/new-ground-automatic-increase-of-kafka-lvm-on-gcp-311633b0816c When you try to run it on Ubuntu 14.04, there is this very strange error: The cause for this is as follows: Python 3.4.3 (default, Nov 12 2018, 22:25:49)…
-
Automatic increase of Kafka LVM on GCP
I wrote an article for my company that was published on Medium regarding the topic in the subject. Please see the link https://medium.com/metrosystemsro/new-ground-automatic-increase-of-kafka-lvm-on-gcp-311633b0816c Thanks
-
Using GCP recommender API for Compute engine
Let’s keep it short. If you want to use Python libraries for Recommender API, this is how you connect to your project. from google.cloud.recommender_v1beta1 import RecommenderClient from google.oauth2 import service_account def main(): credential = service_account.Credentials.from_service_account_file(‘account.json’) project = “internal-project” location = “europe-west1-b” recommender = ‘google.compute.instance.MachineTypeRecommender’ client = RecommenderClient(credentials=credential) name = client.recommender_path(project, location, recommender) elements = client.list_recommendations(name,page_size=4)…
-
ELK query using Python with time range
Short post. Sharing how you make an ELK query from Python using also timestamp: And that’s all! Cheers
-
Multiple field query in ELK from Python
Morning, There are a lot of pages on how to query ELK stack from Python client library, however, it’s still hard to grab a useful pattern. What I wanted is to translate some simple query in Kibana like redis.info.replication.role:master AND beat.hostname:*test AND tags:test into a useful Query DSL JSON. It’s worth mentioning that the Python…