GithubHelp home page GithubHelp logo

isabella232 / example-metrics-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from honeycombio/example-metrics-client

0.0 0.0 0.0 41 KB

A silly example app configured to send runtime and host metrics to Honeycomb.

Shell 9.84% Go 83.44% Makefile 4.93% Dockerfile 1.79%

example-metrics-client's Introduction

Polyhedron

An example application that sends metrics & traces to Honeycomb

Running this example locally

  1. Install dependencies. On MacOS:
brew install go ansible entr
brew install --cask multipass
  1. Create a provision/cloud-init.yaml file with a valid SSH public key in it so you can connect to your servers:
ssh_authorized_keys:
  - ssh-rsa abcabc_my_ssh_key [email protected]
package_update: true
  1. Create local virtual machines:
./provision/provision.bash

Hacky note: the scripts from this point forward assume that it's possible to connect to local vms as vm1, vm2, and lb. To get everything working you'll need to create aliases from those names to the VM IP addresses in your ~/.ssh/config file. You can find those IP addresses by running multipass list.

  1. Deploy to your hosts (you'll need a Honeycomb API key for this)
HNY_API_KEY=????? ./deploy.bash
  1. Server should be running on the lb host at port 80

Load generator

go run client/main.go

example-metrics-client's People

Contributors

reulan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.