Coder Social home page Coder Social logo

THE DEVELOPMENT OF THIS REPO MOVED To https://code.corpglory.net/hastic/hastic

(because fuck github)

Hastic

Hastic needs Prometheus or InfluxDB instance for getting metrics.

Build from source (Linux)

Prerequirements

  1. Install cargo (required version: >=1.49)
  2. Install node.js >=10.x
  3. Install yarn
  4. Install x86_64-unknown-linux-musl: rustup target add x86_64-unknown-linux-musl
  5. musl-tools: sudo apt install musl-tools

Build

make

Configure

Hastic can be configured using config-file or environment variables.

At first, choose which datasource you'll be using: prometheus or influx. Only one can be used at a time.

Config-file

  • copy the config example to the release directory:
cp config.example.toml release/config.toml
  • edit the config file, e.g. using nano:
nano release/config.toml

Environment variables

All config fields are also available as environment variables with HASTIC_ prefix

Variable name structure:

  • for high-level fields: HASTIC_<field_name>, e.g. HASTIC_PORT
  • for nested fields: HASTIC_<category_name>__<field_name>, e.g. HASTIC_PROMETHEUS__URL

Environment variables can be set either by exporting them (they'll be actual until a bash-session is closed):

export HASTIC_PORT=8000
export HASTIC_PROMETHEUS__URL=http://localhost:9090
export HASTIC_PROMETHEUS__QUERY=rate(go_memstats_alloc_bytes_total[5m])

or specifing them in a run command (they'll be actual only for one run):

HASTIC_PORT=8000 HASTIC_PROMETHEUS__URL=http://localhost:9090 HASTIC_PROMETHEUS__QUERY=rate(go_memstats_alloc_bytes_total[5m]) ./release/hastic

Run

cd release
./hastic

open http://localhost:4347 in browser

Hastic's Projects

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.