Giter Site home page Giter Site logo

metric-tools-benchmark's Introduction

metric-tools-benchmark

Benchmark tooling for Prometheus, Thanos, Mimir and Victoriametrics.

Running With Docker Locally

Each folder has a bootstrap script up.sh which instantiate the monitoring tool (Grafana), the referenced tool (i.e. Prometheus, Thanos, Mimir or Victoriametrics), a container of Avalanche to be scraped and a container of K6 used to create random requests to our environment.

We deployed a dashboard to follow K6 requests at http://localhost:3000/d/01npcT44k/test-result?orgId=1&refresh=5s.

When finished, you can delete the environment running the down.sh script.

About Avalanche

We created a fork of Avalanche which can be found in https://github.com/victoramsantos/avalanche. In this fork we enabled metrics as histogram and changed the default name of the generated metrics to have the metric type. We also upload it's docker image to https://hub.docker.com/repository/docker/victoramsantos/avalanche.

About K6

We customized a runtime of K6 to run using the exported metrics from Avalanche. This image uses the output of scripts/metrics-extractor.sh to generate a metrics.js file which breaks the metrics into two arrays (histogram_metrics and gauge_metrics). This file is used by our K6 image to generate some queries to a Prometheus-like API.

Kubernetes

To simulate a real scenario with kubernetes, we create a small environment which can be deployed locally using Kind. This tool will create a local kubernetes cluster. Running the kubernetes-up.sh script, you will create a kind cluster and apply all manifests.

You must export Prometheus locally running kubectl port-forward svc/prometheus-service 9090:9090 and run the scripts/metrics-extractor.sh to generate the metrics.js file. After that, update the kubernetes/configmap-k6.yml overwriting the sample template.

After created, you can run kubectl port-forward svc/grafana-service 3000:3000 to access Grafana at http://localhost:3000. We also added a dashboard to follow the K6 running, which can be accessed in http://localhost:3000/d/01npcT44k/test-result?orgId=1&refresh=5s.

When finished, you can run kubernetes-down.sh which delete the kind cluster and all PODs created.

metric-tools-benchmark's People

Contributors

victoramsantos avatar

Watchers

 avatar

Forkers

zhuziyuan

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.