Re: Prometheus Python Errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This has been recently fixed in master
<https://github.com/ceph/ceph/pull/33991> (I just submitted backporting PRs
for octopus <https://github.com/ceph/ceph/pull/35247> and nautilus
<https://github.com/ceph/ceph/pull/35248>). BTW the fix is pretty trivial
<https://github.com/ceph/ceph/pull/33991/files#diff-aa300f60a885cd98ccce56607850eef0>
.
<https://github.com/ceph/ceph/pull/33991/files#diff-aa300f60a885cd98ccce56607850eef0>

Ernesto Puerta

He / Him / His

Senior Software Engineer, Ceph

Red Hat <https://www.redhat.com/>
<https://www.redhat.com/>


On Tue, May 19, 2020 at 9:38 PM <support@xxxxxxxxxxxxxxxx> wrote:

> 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 -- ceph-users@xxxxxxx
> To unsubscribe send an email to ceph-users-leave@xxxxxxx
>
>
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux