This file contains 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
import pandas as pd | |
import requests | |
def read_questdb(query, host, per_page = 10000, max_records = None): | |
""" | |
Sends a SQL query to a specified host. | |
Parameters | |
---------------- |
This file contains 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
--- | |
name: Service Comparison | |
default_tag_set_id: | |
charts: | |
- name: Response Size | |
type: line | |
streams: | |
- group_function: average | |
summary_function: average | |
tags: |
This file contains 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
collector: | |
sqlserver: | |
all: | |
# Specify instances to monitor with a comma-delimited list of connection strings. | |
# All connection parameters are optional. | |
# By default, the host is localhost, listening on default port, TCP 1433. | |
# for Windows, the user is the currently running AD user (SSO). | |
# See https://github.com/denisenkom/go-mssqldb for detailed connection | |
# parameters. | |
servers: | |
This file contains 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
--- | |
name: Java Profiling (GC) | |
charts: | |
- name: OldGen Collections | |
type: line | |
streams: | |
- summary_function: average | |
downsample_function: average | |
tags: | |
- name: "@host" |
This file contains 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 bash | |
# | |
# Python MAC OSX Librato Agent install script | |
# Version: 0.0.2 | |
# Author: Librato | |
# | |
# run: | |
# curl -s "https://raw.githubusercontent.com/librato/python-librato-agent/master/sh/install.sh?" | bash | |
# |
This file contains 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 bash | |
# | |
# Python MAC OSX Librato Agent install script | |
# Version: 0.0.2 | |
# Author: Librato | |
# | |
# run: | |
# curl -s "https://raw.githubusercontent.com/librato/python-librato-agent/master/sh/install.sh?" | bash | |
# |
This file contains 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
# http://www.graphviz.org/content/cluster | |
digraph G { | |
subgraph cluster_level_1 { | |
style=filled; | |
color=lightgrey; | |
node [style=filled,color=white]; | |
integration_0[label="integration"]; | |
custom_space_0[label="custom_space"]; |
This file contains 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 ruby | |
require 'librato/metrics' | |
c = Librato::Metrics | |
email = '[email protected]' | |
token = 'abcd1234' | |
c.authenticate email, token |
This file contains 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
package main | |
import ( | |
// "log" | |
"log/syslog" | |
) | |
func main() { | |
pt, err := syslog.Dial("udp", "<host>.papertrailapp.com:11111", syslog.LOG_ERR, "My_App_Name") | |
if err != nil { |
This file contains 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
require "easypost" | |
EasyPost.api_key = 'YOUR API KEY' | |
shipment_ids = #fetch a list of shipment ids from your end | |
shipment_ids.each do |id| | |
shipment = EasyPost::Shipment.retrieve(id) | |
if shipment.tracker.status == 'pre_transit' | |
begin | |
shipment.refund |
NewerOlder