Giter Site home page Giter Site logo

Redis error about newrelic-plugin-agent HOT 7 CLOSED

a13x212 avatar a13x212 commented on July 27, 2024
Redis error

from newrelic-plugin-agent.

Comments (7)

gmr avatar gmr commented on July 27, 2024

Can you please paste the redis portion of your config?

from newrelic-plugin-agent.

msaffitz avatar msaffitz commented on July 27, 2024

+1

note that we're using requirepass with redis

  redis:
    - name: localhost
      host: localhost
      port: 6379
      db_count: 16

from newrelic-plugin-agent.

gmr avatar gmr commented on July 27, 2024

@msaffitz you're getting the same exception? The exception is telling me that the config is a string and not a dict which is pretty odd, it shouldn't be getting into this state. requirepass support is not in there but should be a quick iteration to add.

from newrelic-plugin-agent.

msaffitz avatar msaffitz commented on July 27, 2024

No, sorry-- now that I look closely at it, the exception is slightly different:

[ec2-user@redis ~]$ sudo newrelic_plugin_agent -fc /etc/newrelic_plugin_agent.yml
INFO       2013-06-19 16:47:53 16009  MainProcess     MainThread clihelper                                     run                       L382   : newrelic_plugin_agent 1.0.10 started
INFO       2013-06-19 16:47:53 16009  MainProcess     MainThread newrelic_plugin_agent.agent                   process                   L91    : Polling
INFO       2013-06-19 16:47:53 16009  MainProcess     MainThread newrelic_plugin_agent.plugins.redis           poll                      L206   : Polling Memcached
Exception: AttributeError("'NoneType' object has no attribute 'get'",)

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/clihelper/__init__.py", line 742, in run
    process.run()
  File "/usr/lib/python2.6/site-packages/clihelper/__init__.py", line 384, in run
    self.process()
  File "/usr/lib/python2.6/site-packages/newrelic_plugin_agent/agent.py", line 93, in process
    self.start_plugin_polling()
  File "/usr/lib/python2.6/site-packages/newrelic_plugin_agent/agent.py", line 255, in start_plugin_polling
    self.application_config.get(plugin))
  File "/usr/lib/python2.6/site-packages/newrelic_plugin_agent/agent.py", line 82, in poll_plugin
    thread.run()
  File "/usr/lib64/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.6/site-packages/newrelic_plugin_agent/agent.py", line 274, in thread_process
    obj.poll()
  File "/usr/lib/python2.6/site-packages/newrelic_plugin_agent/plugins/redis.py", line 220, in poll
    self.add_datapoints(server, self.fetch_data(connection))
  File "/usr/lib/python2.6/site-packages/newrelic_plugin_agent/plugins/redis.py", line 30, in add_datapoints
    stats.get('blocked_clients', 0))
AttributeError: 'NoneType' object has no attribute 'get'

from newrelic-plugin-agent.

gmr avatar gmr commented on July 27, 2024

@msaffitz Ah yeah so it wasn't able to poll stats due to the password issue. Tracking as issue #13

from newrelic-plugin-agent.

a13x212 avatar a13x212 commented on July 27, 2024

Looks like my issue was user error.

I re-enabled redis in the config and is reporting data now.

from newrelic-plugin-agent.

gmr avatar gmr commented on July 27, 2024

@a13x212 thanks for letting me know.

@msaffitz I just pushed a change that enables auth for redis. Will have 1.0.10 out today supporting it.

from newrelic-plugin-agent.

Related Issues (20)

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.