Git Product home page Git Product logo

jsd's Introduction

Simple JSON stats daemon(jsd).

THIS ISN'T PRODUCTION VERSION.

Goals of project:

  • json stats from dbs via http
  • similiar json output for popular dbs
  • support lua scripts

Depended by:

  • libdaemond
  • libmysqlclient
  • hiredis
  • libmemcached
  • libevent2
  • lua-cjson

How to run:

./jsd -C start -c lua/config.lua

Example outputs:

memcached:

{
    "connections": 3198,
    "queries": 0,
    "maxed_out": 0,
    "agent_connect": 0,
    "uptime": 459238,
    "dist": {
        "dist_queries": 0,
        "dist_wait": 0,
        "dist_wall": 0,
        "dist_local": 0

    },
    "query_wall": 0,
    "agent_retry": 0,
    "ag": {
        "ag_dist1_0_query_timeouts": 0,
        "ag_dist1_0_connect_failures": 0,
        "ag_dist1_0_wrong_replies": 0,
        "ag_dist1_1_unexpected_closings": 0,
        "ag_dist1_1_connect_timeouts": 0,
        "ag_dist1_1_wrong_replies": 0,
        "ag_dist1_1_network_errors": 0,
        "ag_dist1_1_connect_failures": 0,
        "ag_dist1_0_connect_timeouts": 0,
        "ag_dist1_0_network_errors": 0,
        "ag_dist1_0_unexpected_closings": 0,
        "ag_dist1_1_query_timeouts": 0
    },
    "comm": {
        "command_flushattrs": 0,
        "command_status": 3197,
        "command_keywords": 0,
        "command_update": 0,
        "command_search": 0,
        "command_persist": 0,
        "command_excerpt": 0
    },
    "avg": {
        "avg_dist_local": 0,
        "avg_dist_wait": 0,
        "avg_dist_wall": 0,
        "avg_query_wall": 0
    }
}

redis:

{
    "server": {
        "lru_clock": 44453,
        "redis_git_dirty": 0,
        "uptime_in_days": 3,
        "redis_version": 2,
        "gcc_version": 4,
        "process_id": 37603,
        "hz": 10,
        "tcp_port": 6379,
        "redis_git_sha1": 0,
        "uptime_in_seconds": 297040,
        "arch_bits": 64
    },
    "repl": {
        "connected_slaves": 0,
        "role": "master"
    },
    "clients": {
        "client_biggest_input_buf": 0,
        "client_longest_output_list": 0,
        "blocked_clients": 0,
        "connected_clients": 1
    },
    "cpu": {
        "used_cpu_sys_children": 0,
        "used_cpu_user_children": 0,
        "used_cpu_sys": 22,
        "used_cpu_user": 26
    },
    "mem": {
        "mem_allocator": "libc",
        "mem_fragmentation_ratio": 1,
        "used_memory_lua": 25600,
        "used_memory_human": 1,
        "used_memory_peak": 1139248,
        "used_memory_peak_human": 1,
        "used_memory": 1139368,
        "used_memory_rss": 1139368
    },
    "pers": {
        "aof_rewrite_scheduled": 0,
        "aof_rewrite_in_progress": 0,
        "rdb_last_save_time": 1363296296,
        "aof_enabled": 0,
        "loading": 0,
        "rdb_bgsave_in_progress": 0,
        "rdb_changes_since_last_save": 0
    },
    "stats": {
        "evicted_keys": 0,
        "keyspace_hits": 0,
        "instantaneous_ops_per_sec": 0,
        "keyspace_misses": 0,
        "pubsub_channels": 0,
        "latest_fork_usec": 0,
        "pubsub_patterns": 0,
        "rejected_connections": 0,
        "total_commands_processed": 535010,
        "total_connections_received": 76432,
        "expired_keys": 0
    }
}

jsd's People

Contributors

zloidemon avatar

Watchers

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