Coder Social home page Coder Social logo

hash-browns's Introduction

hash-browns

This repository contains:

  • A Quick-Start recipe for monitoring an application with Prometheus.
  • A tiny web-server for creating SHA256 hashes with a /metrics endpoint

Read more on the related blog post

Get started

  • Initialize Docker Swarm locally

    docker swarm init
  • Deploy:

    docker stack deploy tutorial --compose-file=./docker-compose.yml
  • View logs:

    docker service logs tutorial_hashbrowns
  • View scrape targets

    http://localhost:9090/targets
  • View the site:

    http://127.0.0.1:8080/

  • Invoke the service to generate some logs

    curl -d test http://localhost:8080/hash
    
    9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
  • Open Prometheus:

    http://127.0.0.1:9090/

    View metrics such as hash_seconds_sum hash_seconds_count and hash_seconds_bucket

  • Build the image (optional)

    make docker push manifest

Notes for Raspberry PI:

A multi-arch Docker image is available, so you can use the same instructions.

hash-browns's People

Contributors

alexellis avatar amayer5125 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hash-browns's Issues

Why vendor Directory

I'm more just curious about this. I have seen a couple projects include the vendor directory in their git repo along with the Gopkg files. Wouldn't you just need one or the other? Is there a reason to include this directory?

Project License

What license is this project under? Maybe consider adding a LICENSE file?

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.