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
from influxdb import InfluxDBClient | |
import json | |
import requests | |
INFLUX_UN | |
INFLUX_PW | |
INFLUX_DB | |
INFLUX_PORT | |
INFLUX_HOST | |
INFLUX_MEASUREMENT |
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 commands | |
import time | |
import sys | |
from socket import socket | |
import argparse | |
import os | |
import pymongo | |
from pymongo import Connection | |
import yaml |
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 'fog' | |
bucket = 'bucket-name' | |
credentials = { | |
:provider => 'AWS', | |
:aws_access_key_id => 'access_key_id', | |
:aws_secret_access_key => 'secret_key', | |
} | |
fog = Fog::Storage.new(credentials) |