Hello Everyone,

I have installed both Prometheus and Grafana on one of my manager nodes (Ubuntu 
18.04), and have configured both according to the documentation. I have visible 
Grafana dashboards when visiting http://mon1:3000, but no data exists on the 
dashboard. Python errors are shown for the job_name: ceph in Prometheus.

Below is my prometheus.yaml configuration

global:
  scrape_interval: 5s

scrape_configs:
    - job_name: prometheus
      static_configs:
          - targets: ['localhost:9090']
    - job_name: 'ceph-exporter'
      static_configs:
        - targets: ['localhost:9100']
          labels:
            alias: ceph-exporter
    - job_name: 'ceph'
      static_configs:
        - targets: ['localhost:9283']
          labels:
            alias: ceph

And, these are the Python errors shown when I view the details of the targets 
in Prometheus (http://mon1:9090/targets)

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 670, in 
respond
    response.body = self.handler()
  File "/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 220, 
in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 60, in 
__call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/ceph/mgr/prometheus/module.py", line 1060, in metrics
    return self._metrics(instance)
  File "/usr/share/ceph/mgr/prometheus/module.py", line 1074, in _metrics
    instance.collect_cache = instance.collect()
  File "/usr/share/ceph/mgr/prometheus/module.py", line 975, in collect
    self.get_rbd_stats()
  File "/usr/share/ceph/mgr/prometheus/module.py", line 734, in get_rbd_stats
    'rbd_stats_pools_refresh_interval', 300)
TypeError: unsupported operand type(s) for +: 'int' and 'str'

If anyone has experienced this issue, and might have a solution, I would 
appreciate any assistance.

Thank you,
Todd
_______________________________________________
ceph-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to