Skip to content

Instantly share code, notes, and snippets.

View agilejon's full-sized avatar

Jon Dokulil agilejon

  • Cincinnati, OH
View GitHub Profile
@kgorman
kgorman / gist:134896c7414fde8e090b
Last active May 7, 2024 13:34
MongoDB Profiler Cheat Sheet
// a list of useful queries for profiler analysis. Starting with the most basic.
// 2.4 compatible
//
// output explained:
//
{
"ts" : ISODate("2012-09-14T16:34:00.010Z"), // date it occurred
"op" : "query", // the operation type
"ns" : "game.players", // the db and collection
@codemoran
codemoran / graphdat_udp_server.js
Created September 9, 2013 06:24
Graphdat Metrics collector that listens over UDP, batches up the messages using the Graphdat batch Metrics API. http://developer.graphdat.com/v1/post/measurements
var _dgram = require('dgram');
var _https = require('https');
// How often does the UDP server flush the message queue and send to Graphdat
// To keep the graphs flowing in real time, flush every 3s
var FLUSH_TIME = 3000;
// What port should the server start up on
var SERVER_PORT = 8900;