Skip to content
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

post/aliyun-exporter-bp/ #9

Open
utterances-bot opened this issue May 26, 2019 · 3 comments
Open

post/aliyun-exporter-bp/ #9

utterances-bot opened this issue May 26, 2019 · 3 comments

Comments

@utterances-bot
Copy link

编写 Prometheus Exporter: 以阿里云 Exporter 为例

https://aleiwu.com/post/aliyun-exporter-bp/

Copy link

大佬内容干货很足,点star 加油!

Copy link

SQGE commented Aug 12, 2019

使用docker-compose启动的,aliyun-exporter一直报这个错误

AttributeError: 'NoneType' object has no attribute 'type'
Traceback (most recent call last):
  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'

Copy link

我也是遇到了这个错误
AttributeError: 'NoneType' object has no attribute 'type'
Traceback (most recent call last):
File "/usr/local/bin/aliyun-exporter", line 11, in
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'

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

No branches or pull requests

4 participants