An experienced operators guide to streaming Kubernetes workload logs into Quickwit.
Using perf:
$ perf record -g binary
$ perf script | stackcollapse-perf.pl | rust-unmangle | flamegraph.pl > flame.svg
NOTE: See @GabrielMajeri's comments below about the
-g
option.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user = "xavierlange" | |
heka_dir = "#{Chef::Config[:file_cache_path]}/heka" | |
%w(cmake mercurial fakeroot debhelper libgeoip-dev).each do |pkg| | |
package pkg | |
end | |
directory heka_dir do | |
owner user | |
group user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='utf-8' ?> | |
<!--This is the basics - platform (windows or mac)and version number--> | |
<workbook source-platform='mac' version='9.0' xmlns:user='http://www.tableausoftware.com/xml/user'> | |
<!-- build 9000.15.0318.1720 --> | |
<!--No idea what this for --> | |
<preferences> | |
<preference name='ui.encoding.shelf.height' value='250' /> | |
<preference name='ui.shelf.height' value='250' /> | |
</preferences> | |
<!--This is everything you need to know about datasources --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var FadeTransitionRegion = Backbone.Marionette.Region.extend({ | |
show: function(view){ | |
this.ensureEl(); | |
view.render(); | |
this.close(function() { | |
if (this.currentView && this.currentView !== view) { return; } | |
this.currentView = view; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# with help and inspiration from | |
# * ASN1_generate_nconf(3) (specifically the SubjectPublicKeyInfo structure) | |
# * http://www.sysmic.org/dotclear/index.php?post/2010/03/24/Convert-keys-betweens-GnuPG%2C-OpenSsh-and-OpenSSL | |
# * http://blog.oddbit.com/2011/05/converting-openssh-public-keys.html | |
import sys | |
import base64 | |
import struct |