Skip to content

Collect tarantool/memcached statistics #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Totktonada opened this issue Dec 21, 2020 · 8 comments
Closed

Collect tarantool/memcached statistics #161

Totktonada opened this issue Dec 21, 2020 · 8 comments
Labels
feature A new functionality

Comments

@Totktonada
Copy link
Member

tarantool/memcached provides <memcached instance>:info() method. As far I see from the code it returns the following fields as a Lua table (structure field name — value):

struct memcached_stat {     
        /* connection informations */
        unsigned int  curr_items;   
        unsigned int  total_items;
        unsigned int  curr_conns;
        unsigned int  total_conns;  
        uint64_t      bytes_read;             
        uint64_t      bytes_written;
        /* get statistics */
        uint64_t      cmd_get;
        uint64_t      get_hits;                                                                
        uint64_t      get_misses;
        /* delete stats */  
        uint64_t      cmd_delete;                                                              
        uint64_t      delete_hits;                                                             
        uint64_t      delete_misses;                                                           
        /* set statistics */
        uint64_t      cmd_set;
        uint64_t      cas_hits;
        uint64_t      cas_badval;     
        uint64_t      cas_misses;
        /* incr/decr stats */
        uint64_t      cmd_incr;                                                                
        uint64_t      incr_hits;
        uint64_t      incr_misses;                                                             
        uint64_t      cmd_decr;                                                                
        uint64_t      decr_hits;
        uint64_t      decr_misses;                                                             
        /* touch/flush stats */                                                                
        uint64_t      cmd_touch;                                                               
        uint64_t      touch_hits;                                                              
        uint64_t      touch_misses;                                                            
        uint64_t      cmd_flush;
        /* expiration stats */                                                                 
        uint64_t      evictions;                                                               
        uint64_t      reclaimed;                                                               
        /* authentication stats */                                                             
        uint64_t      auth_cmds; 
        uint64_t      auth_errors;                                                             
};

It would be good to collect this statistics periodically when a memcached instance works and report to some monitoring service or dashboard. To be honest, I don't know how to better integrate tarantool/memcached and tarantool/metrics, so I'll appreciate suggestions.

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days

@Totktonada
Copy link
Member Author

If you want to close an issue, please, provide a reason. Doing that automatically is meaningless and unpleasant.

Moreover, you have less then hundred issues (open and closed) overall, since 2018. There is no problem to keep everything in a good shape.

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the Stale label Apr 21, 2021
@Totktonada
Copy link
Member Author

Let's continue produce useless messages and spam everyone who subscribed to the thread.

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the Stale label Jun 21, 2021
@Totktonada
Copy link
Member Author

No, it is actial whether there is activity or no activity.

@Totktonada Totktonada removed the Stale label Jun 21, 2021
@yngvar-antonsson
Copy link
Contributor

This should be done in tarantool/memcached , not in tarantool/metrics . Closed.

@Totktonada
Copy link
Member Author

Let's track it in tarantool/memcached#98 so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality
Projects
None yet
Development

No branches or pull requests

2 participants