Skip to content

Instantly share code, notes, and snippets.

View prydin's full-sized avatar

Pontus Rydin prydin

View GitHub Profile
@prydin
prydin / check.out
Created September 6, 2018 21:56
make check"
This file has been truncated, but you can view the full file.
checking go imports...
diff -u simulator/vpx/performance_manager.go.orig simulator/vpx/performance_manager.go
--- simulator/vpx/performance_manager.go.orig 2018-09-06 21:51:31.470122080 +0000
+++ simulator/vpx/performance_manager.go 2018-09-06 21:51:31.470122080 +0000
@@ -23,21696 +23,21695 @@
// govc object.collect -s -dump PerformanceManager:PerfMgr perfCounter
var PerfCounter = []types.PerfCounterInfo{
- {
- Key: 1,
@prydin
prydin / check.out
Created September 6, 2018 21:56
"make check" output
This file has been truncated, but you can view the full file.
checking go imports...
diff -u simulator/vpx/performance_manager.go.orig simulator/vpx/performance_manager.go
--- simulator/vpx/performance_manager.go.orig 2018-09-06 21:51:31.470122080 +0000
+++ simulator/vpx/performance_manager.go 2018-09-06 21:51:31.470122080 +0000
@@ -23,21696 +23,21695 @@
// govc object.collect -s -dump PerformanceManager:PerfMgr perfCounter
var PerfCounter = []types.PerfCounterInfo{
- {
- Key: 1,
@prydin
prydin / nohup.out
Created September 27, 2018 18:54
Telegraf logfile
2018-09-27T16:47:34Z I! Loaded inputs: inputs.disk inputs.diskio inputs.kernel inputs.mem inputs.processes inputs.swap inputs.system inputs.cpu inputs.vsphere inputs.system inputs.cpu inputs.disk inputs.diskio inputs.kernel inputs.mem inputs.processes inputs.swap
2018-09-27T16:47:34Z I! Loaded aggregators:
2018-09-27T16:47:34Z I! Loaded processors:
2018-09-27T16:47:34Z I! Loaded outputs: wavefront
2018-09-27T16:47:34Z I! Tags enabled: host=ip-172-31-43-26
2018-09-27T16:47:34Z I! Agent Config: Interval:10s, Quiet:false, Hostname:"ip-172-31-43-26", Flush Interval:10s
2018-09-27T16:48:20Z E! Error in plugin [inputs.vsphere]: took longer to collect than collection interval (20s)
2018-09-27T16:48:50Z E! Error in plugin [inputs.vsphere]: took longer to collect than collection interval (20s)
2018-09-27T16:49:21Z E! Error in plugin [inputs.vsphere]: took longer to collect than collection interval (20s)
2018-09-27T16:49:52Z E! Error in plugin [inputs.vsphere]: took longer to collect than collection interval (20s)
prydin-a02:collatz prydin$ go run main.go 39485734985349857389459873
39485734985349857389459873
59228602478024786084189810
29614301239012393042094905
44421451858518589563142358
22210725929259294781571179
33316088893888942172356769
49974133340833413258535154
24987066670416706629267577
37480600005625059943901366
prydin-a02:collatz prydin$ go run main.go 3948573498534985738945987323487523876423876423
3948573498534985738945987323487523876423876423
5922860247802478608418980985231285814635814635
8884290371703717912628471477846928721953721953
13326435557555576868942707216770393082930582930
6663217778777788434471353608385196541465291465
9994826668166682651707030412577794812197937198
4997413334083341325853515206288897406098968599
7496120001125011988780272809433346109148452899
11244180001687517983170409214150019163722679349
prydin-a02:collatz prydin$ go run main.go 314159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270
314159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270
157079632679489661923132169163975144209858469968755291048747229615390820314310449931401741267105853399107404325664115332354692230477529111586267970406424055872514205135
235619449019234492884698253745962716314787704953132936573120844423086230471465674897102611900658780098661106488496172998532038345716293667379401955609636083808771307703
353429173528851739327047380618944074472181557429699404859681266634629345707198512345653917850988170147991659732744259497798057518574440501069102933414454125713156961555
53014376029327760899057107092841611170827233614454910728952189995194401856079776851848087677648225522198748959911638924669708627786166075
@prydin
prydin / jolokia
Created April 12, 2019 20:06
jolokia
[[inputs.jolokia2_agent.metrics]]
name = "javaMemory"
mbean = "java.lang:type=Memory"
[[inputs.jolokia2_agent.metric]]
name = "javaGarbageCollector"
mbean = "java.lang:name=*,type=GarbageCollector"
tag_keys = ["name"]
field_prefix = "$1_"
int last = input();
for(;;) {
int now = input();
if(last == 0 && now == 1) {
printf("Positive flank detected. Bailing!");
break;
}
last = now;
}

Istio/Distributed Tracing Demo Tools

This repository contains tools needed for the Wavefront "CNA Demo". The cental component is a traces replayer, along with datafiles for simulating scenarios, such as canary deployments.

Installation

Mac

  1. Download the distribution from here.
@prydin
prydin / send.c
Last active October 4, 2019 17:27
Sample message sender in C
#include <stdio.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#define NUM_MSG 10 /* Change this to set how many messages we process with a single call to send() */