Coder Social home page Coder Social logo

glancesq's Introduction

glancesQ

To make glances repo compatible with kdb+

Instructions

  1. Add glances_kdb.py to the following glances monitoring repo to ensure glances mechanism can publish to specified kdb+ processes:
https://github.com/nicolargo/glances/tree/develop/glances/exports
  1. Add the example config to /etc/glances/glances.conf, or specify relevant args to use the glances.conf provided in the repo
[kdb]
host=localhost
port=5050
  1. In case debugging is required, one can find the log file paths with the following command:
glances -V
  1. Note that the associated libraries are all required:
qpython
glances
bottle
  1. Example:
Glances Server Side:

glances --export kdb
kdb+ Client Side:

>> q -p 5050
KDB+ 4.0 2020.05.04 Copyright (C) 1993-2020 Kx Systems
l64/ 4(16)core 5797MB hming hming 127.0.1.1 EXPIRE 2021.09.16 KOD #4172901

q)tables[]
`glancesCpu`glancesDiskio`glancesFs`glancesIp`glancesLoad`glancesMem`glancesMemswap`glancesNetwork`glancesPercpu`glancesProcesscount`glancesSystem`glancesUptime
q)glancesCpu
time         total user system idle nice iowait irq softirq steal guest guest_nice ctx_switches interrupts soft_interrupts syscalls time_since_update cpucore history_size cpu_user_careful cpu_user_..
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------..
10:27:25.375 65.3  65.2 14.2   19.1 0    0      0   1.5     0     0     0          2154         1593       1519            0        0.5016096         4       28800        50               70       ..
10:27:28.420 51.2  35.8 8.9    53.6 0    0      0   1.7     0     0     0          17021        12076      8062            0        3.067954          4       28800        50               70       ..
10:27:31.498 29.4  22.4 5.5    70.5 0    0.1    0   1.5     0     0     0          13114        8764       6511            0        3.081875          4       28800        50               70       ..

glancesq's People

Contributors

hmn24 avatar

Watchers

 avatar  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.