Giter Club home page Giter Club logo

prometheus-metric-builder's Introduction

Prometheus-Metric-Builder

This Repo contains a modul that converts the content of a file into Prometheus metrics. To run the application properly you have to access to an file that conains the Information that you need for your metrics. Maybe you have to make use of a script that reduces the content of a Log File or an HTML file or JSON File to the essential information. Therfor you can check the Script directory. After your Information is stored in some File you can build your metric following a few steps: This Application can convert the content of a file into Prometheus metric.

  • 1.) Instanciate a Html_file_util that points to the file wich contains the needed information
  • 2.) Remove all unnesecary content like tags, words etc.
  • 3.) store the formated input in a variable of type String
  • 4.) create the Attributes that are used as label in the metric
  • 5.) create the metric and append the attributes
  • 6.) Create a file instance of the file where your metrics should be stored. The file must be a .prom file
  • 7.) Clear the file
  • 8.) write your metrics in.

Please give me feedback if you have inputs what i can and should do better. Best Regards MagnoTheFirst

prometheus-metric-builder's People

Contributors

magnothefirst avatar

Watchers

 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.