Skip to content

Instantly share code, notes, and snippets.

View thijsc's full-sized avatar

Thijs Cadier thijsc

View GitHub Profile
@thijsc
thijsc / assignment.rb
Last active August 8, 2020 09:07
Little wrapper script around Kafka command line tools to assign topics.
#!/usr/bin/env ruby
require "fileutils"
require "json"
ZOOKEEPER = raise "Put your zookeeper list here"
DEFAULT_BROKER_LIST = raise "put your broker list here (1,2,3)
FileUtils.rm_f "/tmp/topics.json"
FileUtils.rm_f "/tmp/assignment.json"
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
ethernets:
ens1f0:
match:
macaddress: {{ hostvars[inventory_hostname]['interfaces']['ens1f0'] }}
ens1f1:
match:
@thijsc
thijsc / Apdex.json
Last active June 28, 2023 09:29
Custom dashboard config for apdex score and counts
{
"title": "Apdex",
"description": "",
"visuals": [
{
"title": "Apdex",
"line_label": "%namespace%",
"display": "LINE",
"format": "number",
"draw_null_as_zero": false,
@thijsc
thijsc / config.json
Created July 6, 2023 10:17
Custom dashboard for reporting hosts
{
"title": "Reporting hosts",
"description": "",
"visuals": [
{
"title": "All",
"line_label": "%name%",
"display": "LINE",
"format": "number",
"draw_null_as_zero": true,