Git Product home page Git Product logo

prometheus_metrics's Introduction

项目介绍

该项目用来发送自定义的metrics,项目通过查询mysql数据库从而获得不同的miner的剩余交易的数量

启动

使用systemctl

[Unit]
Description=deal jobs mysql

[Service]
User=root
Type=simple
ExecStart=/usr/local/bin/deal_jobs
Restart=on-failure
RestartSec=10s

[Install]
WantedBy=multi-user.target

数据库依赖

使用sea-orm

  1. 安装sea-orm命令行工具
    cargo install sea-orm-cli
  2. 生成对应的表结构
    sea-orm-cli generate entity -u mysql://root:[email protected]:3306/db src/entity

prometheus配置

 - job_name: "offline_deal_jobs"
      scrape_interval: 10m # 30s拉取一次信息
      static_configs:
        - targets: ["127.0.0.1:8976"]

prometheus_metrics's People

Contributors

dongjiahong avatar

Watchers

 avatar  avatar

prometheus_metrics's Issues

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.