Giter Site home page Giter Site logo

aerospike-community / aerospike-collectd Goto Github PK

View Code? Open in Web Editor NEW
10.0 39.0 6.0 217 KB

Aerospike plugin for collectd - a community driven open source project

Home Page: https://www.aerospike.com/docs/operations/monitor/index.html

License: Apache License 2.0

Python 100.00%
aerospike collectd monitoring

aerospike-collectd's People

Contributors

cstivers78 avatar jdogmcsteezy avatar kportertx avatar mtendjou avatar rbotzer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aerospike-collectd's Issues

Syntax error

aerospike_plugin.py", line 394
if any(m == name) for m in metrics):
^
SyntaxError: invalid syntax

python-2.7.5-34.el7.x86_64

Parse error in file aerospike_types.db

I tried to set up aerospike-collectd plugin on the collectd which has provided by google stackdriver. I've got some errors as following. Would you mind giving me advise to address it?

error logs:

Sep 30 05:26:09 host-2 stackdriver-agent[12626]: mesg: ttyname failed: Inappropriate ioctl for device
Sep 30 05:26:09 host-2 stackdriver-agent[12626]:  * Stopping Stackdriver metrics collection agent stackdriver-agent
Sep 30 05:26:12 host-2 stackdriver-agent[12626]:  .   ...done.
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: mesg: ttyname failed: Inappropriate ioctl for device
Sep 30 05:26:12 host-2 stackdriver-agent[12651]:  * Starting Stackdriver metrics collection agent stackdriver-agent
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: Parse error in file `/opt/collectd-plugins/aerospike_plugin.py', line 165 near `/': syntax error, unexpected SLASH
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: yyparse returned error #1
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: configfile: Cannot read file `/opt/collectd-plugins/aerospike_plugin.py'.
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: Parse error in file `/opt/collectd-plugins/aerospike_schema.yaml', line 165 near `/': syntax error, unexpected SLASH
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: yyparse returned error #1
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: configfile: Cannot read file `/opt/collectd-plugins/aerospike_schema.yaml'.
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: Parse error in file `/opt/collectd-plugins/aerospike_types.db', line 165 near `/': syntax error, unexpected SLASH
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: yyparse returned error #1
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: configfile: Cannot read file `/opt/collectd-plugins/aerospike_types.db'.
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: option = Interval; value = 60.000000;
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: option = Hostname; value = ;
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: option = FQDNLookup; value = false;
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: Created new plugin context.
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: ====''=..()=..()=..(,'.')='-option = PIDFile; value = /var/run/stackdriver-agent.pid;
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: Parse error in file `/opt/collectd-plugins/aerospike_plugin.py', line 165 near `/': syntax error, unexpected SLASH
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: yyparse returned error #1
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: configfile: Cannot read file `/opt/collectd-plugins/aerospike_plugin.py'.
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: Parse error in file `/opt/collectd-plugins/aerospike_schema.yaml', line 165 near `/': syntax error, unexpected SLASH
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: yyparse returned error #1
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: configfile: Cannot read file `/opt/collectd-plugins/aerospike_schema.yaml'.
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: Parse error in file `/opt/collectd-plugins/aerospike_types.db', line 165 near `/': syntax error, unexpected SLASH
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: yyparse returned error #1
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: configfile: Cannot read file `/opt/collectd-plugins/aerospike_types.db'.
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: option = Interval; value = 60.000000;
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: option = Hostname; value = ;
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: option = FQDNLookup; value = false;
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: Created new plugin context.
Sep 30 05:26:12 host-2 stackdriver-agent[12651]: ====''=..()=..()=..(,'.')='-   ...done.

env info:

Not working on Python3 and Ubuntu 20

Hello there, I was unable to make it running on Ubuntu 20 LTS with python3 installed and all necessary modules.
With python2 and pip build fails, and the first thing I had to do is to change to aerospike-client version to 4.0 in requirements.txt, and additionally, I had to fix importing of ServerError exception inside of aerospike_plugin.py.
However, I am still unable to run it successfully. Could you please help somehow?

Here is the last log.
aerospike_log.txt

Can't get read and write reqs counters

I am using aerospike-collectd v1.0.3 plugin with Aerospike Server Community Edition v3.9.1.1 (Linux Debian Jessie)

The plugin works well for some counters like aerospike-service.gauge-client_connections and some other counters.

But I cannot retrieve the read and write counters for a while: I do not get any value for aerospike-service.operations-stat_write_reqs and aerospike-service.operations-stat_read_reqs.

These counters used to work a few months ago with an Aerospike v3.8 server but it does not work anymore since an Aerospike server upgrade (I think).

Is it supposed to work on Aerospike 3.9.1.1? Or did I miss something?

If TLSEnable is false, ssl_context is not initialized

[2017-02-02 11:41:57] Unhandled python exception in read callback: UnboundLocalError: local variable 'ssl_context' referenced before assignment
[2017-02-02 11:41:57] Traceback (most recent call last):
[2017-02-02 11:41:57]   File "/opt/collectd-aerospike/aerospike_plugin.py", line 755, in read
    capath=ca_path, protocols=protocols, cert_blacklist=blacklist, crl_check=crl_check, crl_check_all=crl_check_all, tls_name=tls_name)
[2017-02-02 11:41:57]   File "/opt/collectd-aerospike/aerospike_plugin.py", line 230, in connect

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.