You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set up the Squid proxy to point it to the Datadog website
I updated /etc/datadog-agent/conf.d/portworx.d/conf.yaml to use the prometheus endpoint as: http://localhost:9090/metrics
I verified that the above actually exposes the metrics
I installed the plugin for Portworx on the Datadog website
I didn't see any of the Portworx stats on the Datadog website.
When I checked the status, I saw the following error:
$ datadog-agent status
....
....
....
Check Initialization Errors
===========================
portworx (1.1.0)
----------------
instance 0:
could not invoke 'portworx' python check constructor. New constructor API returned:
Traceback (most recent call last):
File "/opt/datadog-agent/embedded/lib/python3.9/site-packages/datadog_checks/portworx/portworx.py", line 13, in __init__
super(PortworxCheck, self).__init__(name, init_config, instances)
File "/opt/datadog-agent/embedded/lib/python3.9/site-packages/datadog_checks/base/checks/prometheus/prometheus_base.py", line 31, in __init__
super(PrometheusCheck, self).__init__(name, init_config, agentConfig, instances)
File "/opt/datadog-agent/embedded/lib/python3.9/site-packages/datadog_checks/base/checks/prometheus/mixins.py", line 58, in __init__
super(PrometheusScraperMixin, self).__init__(*args, **kwargs)
File "/opt/datadog-agent/embedded/lib/python3.9/site-packages/datadog_checks/base/checks/base.py", line 243, in __init__
self.proxies = self._get_requests_proxy()
File "/opt/datadog-agent/embedded/lib/python3.9/site-packages/datadog_checks/base/checks/base.py", line 1126, in _get_requests_proxy
proxies = self.agentConfig.get('proxy', datadog_agent.get_config('proxy'))
AttributeError: 'tuple' object has no attribute 'get'
Deprecated constructor API returned:
__init__() got an unexpected keyword argument 'agentConfig'
Loading Errors
==============
portworx
--------
Core Check Loader:
Check portworx not found in Catalog
JMX Check Loader:
check is not a jmx check, or unable to determine if it's so
Python Check Loader:
could not configure check instance for python check portworx: could not invoke 'portworx' python check constructor. New constructor API returned:
Traceback (most recent call last):
File "/opt/datadog-agent/embedded/lib/python3.9/site-packages/datadog_checks/portworx/portworx.py", line 13, in __init__
super(PortworxCheck, self).__init__(name, init_config, instances)
File "/opt/datadog-agent/embedded/lib/python3.9/site-packages/datadog_checks/base/checks/prometheus/prometheus_base.py", line 31, in __init__
super(PrometheusCheck, self).__init__(name, init_config, agentConfig, instances)
File "/opt/datadog-agent/embedded/lib/python3.9/site-packages/datadog_checks/base/checks/prometheus/mixins.py", line 58, in __init__
super(PrometheusScraperMixin, self).__init__(*args, **kwargs)
File "/opt/datadog-agent/embedded/lib/python3.9/site-packages/datadog_checks/base/checks/base.py", line 243, in __init__
self.proxies = self._get_requests_proxy()
File "/opt/datadog-agent/embedded/lib/python3.9/site-packages/datadog_checks/base/checks/base.py", line 1126, in _get_requests_proxy
proxies = self.agentConfig.get('proxy', datadog_agent.get_config('proxy'))
AttributeError: 'tuple' object has no attribute 'get'
Deprecated constructor API returned:
__init__() got an unexpected keyword argument 'agentConfig'
I followed the code and it looks like there is some incorrect expectations in the check where a get call in made on a tuple.
Describe what you expected:
Portworx data to be seen on Datadog.
Steps to reproduce the issue:
Install Portworx and run its datadog agent
Agent Environment
Describe what happened:
Tried setting up Datadog with Portworx integration with Prometheus.
/etc/datadog-agent/conf.d/portworx.d/conf.yaml
to use the prometheus endpoint as: http://localhost:9090/metricsI didn't see any of the Portworx stats on the Datadog website.
When I checked the status, I saw the following error:
I followed the code and it looks like there is some incorrect expectations in the check where a
get
call in made on a tuple.Describe what you expected:
Portworx data to be seen on Datadog.
Steps to reproduce the issue:
Install Portworx and run its datadog agent
Additional environment details (Operating System, Cloud provider, etc):
The text was updated successfully, but these errors were encountered: