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

配置oss 后报错 KeyError: 'Average' #35

Open
majun9129 opened this issue Oct 24, 2019 · 0 comments
Open

配置oss 后报错 KeyError: 'Average' #35

majun9129 opened this issue Oct 24, 2019 · 0 comments

Comments

@majun9129
Copy link

配置文件内容:
acs_oss_dashboard:

  • name: AppendObjectCount
    period: 60
    报错信息:
    Traceback (most recent call last):
    File "/home/opsuser/pyenv/versions/3.6.5/bin/aliyun-exporter", line 10, in
    sys.exit(main())
    File "/home/opsuser/pyenv/versions/3.6.5/lib/python3.6/site-packages/aliyun_exporter/init.py", line 39, in main
    REGISTRY.register(collector)
    File "/home/opsuser/pyenv/versions/3.6.5/lib/python3.6/site-packages/prometheus_client/registry.py", line 24, in register
    names = self._get_names(collector)
    File "/home/opsuser/pyenv/versions/3.6.5/lib/python3.6/site-packages/prometheus_client/registry.py", line 64, in _get_names
    for metric in desc_func():
    File "/home/opsuser/pyenv/versions/3.6.5/lib/python3.6/site-packages/aliyun_exporter/collector.py", line 134, in collect
    yield from self.metric_generator(project, metric)
    File "/home/opsuser/pyenv/versions/3.6.5/lib/python3.6/site-packages/aliyun_exporter/collector.py", line 125, in metric_generator
    gauge.add_metric([try_or_else(lambda: str(point[k]), '') for k in label_keys], point[measure])
    KeyError: 'Average'

请问,这个问题该怎么解决呢? 配置nas和slb的时候都会出现同样的问题.
谢谢.

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

1 participant