Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

The exporter always give AttributeError #17

Open
Savasw opened this issue Jun 14, 2019 · 1 comment
Open

The exporter always give AttributeError #17

Savasw opened this issue Jun 14, 2019 · 1 comment

Comments

@Savasw
Copy link

Savasw commented Jun 14, 2019

When followed the steps given in read me using pip installed package or using docker image/docker-compose, the exporter always errors out,

  File "/usr/local/bin/aliyun-exporter", line 11, in <module>
    load_entry_point('aliyun-exporter', 'console_scripts', 'aliyun-exporter')()
  File "/usr/src/app/aliyun_exporter/__init__.py", line 39, in main
    REGISTRY.register(collector)
  File "/usr/local/lib/python3.7/site-packages/prometheus_client/registry.py", line 24, in register
    names = self._get_names(collector)
  File "/usr/local/lib/python3.7/site-packages/prometheus_client/registry.py", line 65, in _get_names
    for suffix in type_suffixes.get(metric.type, ['']):
AttributeError: 'NoneType' object has no attribute 'type'
@SQGE
Copy link

SQGE commented Aug 12, 2019

我使用docker-compose启动,aliyun-exporter发生同样的错误

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants