[Telemetry] Error when sending to prometheus pushgateway
Hello, I have two questions about ceilometer (openstack version rocky). - First of all, it seems that ceilometer is sending metrics every hour and I don't understand why. - Next, I am not able to setup ceilometer to send metrics to prometheus pushgateway. Here is my configuration:
sources: - name: meter_file interval: 30 meters: - "*" sinks: - prometheus
sinks: - name: prometheus publishers: - prometheus://10.60.4.11:9091/metrics/job/ceilometer
Here is the error I received:
vcpus{resource_id="7fab268b-ca7c-4692-a103-af4a69f817e4"} 2 # TYPE memory gauge memory{resource_id="7fab268b-ca7c-4692-a103-af4a69f817e4"} 2048 # TYPE disk.ephemeral.size gauge disk.ephemeral.size{resource_id="7fab268b-ca7c-4692-a103-af4a69f817e4"} 0 # TYPE disk.root.size gauge disk.root.size{resource_id="7fab268b-ca7c-4692-a103-af4a69f817e4"} 0 : HTTPError: 400 Client Error: Bad Request for url: http://10.60.4.11:9091/metrics/job/ceilometer 2020-07-01 17:00:12.272 11375 ERROR ceilometer.publisher.http Traceback (most recent call last): 2020-07-01 17:00:12.272 11375 ERROR ceilometer.publisher.http File "/usr/lib/python2.7/dist-packages/ceilometer/publisher/http.py", line 178, in _do_post 2020-07-01 17:00:12.272 11375 ERROR ceilometer.publisher.http res.raise_for_status() 2020-07-01 17:00:12.272 11375 ERROR ceilometer.publisher.http File "/usr/lib/python2.7/dist-packages/requests/models.py", line 935, in raise_for_status 2020-07-01 17:00:12.272 11375 ERROR ceilometer.publisher.http raise HTTPError(http_error_msg, response=self) 2020-07-01 17:00:12.272 11375 ERROR ceilometer.publisher.http HTTPError: 400 Client Error: Bad Request for url: http://10.60.4.11:9091/metrics/job/ceilometer 2020-07-01 17:00:12.272 11375 ERROR ceilometer.publisher.http
Thanks for your help on this topic.
On 03/07/2020 11:25, Samuel Mutel wrote:
Hello,
I have two questions about ceilometer (openstack version rocky).
* First of all, it seems that ceilometer is sending metrics every hour and I don't understand why. * Next, I am not able to setup ceilometer to send metrics to prometheus pushgateway.
Here is my configuration:
sources: - name: meter_file interval: 30 meters: - "*" sinks: - prometheus
sinks: - name: prometheus publishers: - prometheus://10.60.4.11:9091/metrics/job/ceilometer <http://10.60.4.11:9091/metrics/job/ceilometer>
Here is the error I received:
vcpus{resource_id="7fab268b-ca7c-4692-a103-af4a69f817e4"} 2 # TYPE memory gauge memory{resource_id="7fab268b-ca7c-4692-a103-af4a69f817e4"} 2048 # TYPE disk.ephemeral.size gauge disk.ephemeral.size{resource_id="7fab268b-ca7c-4692-a103-af4a69f817e4"} 0 # TYPE disk.root.size gauge disk.root.size{resource_id="7fab268b-ca7c-4692-a103-af4a69f817e4"} 0 : HTTPError: 400 Client Error: Bad Request for url: http://10.60.4.11:9091/metrics/job/ceilometer 2020-07-01 17:00:12.272 11375 ERROR ceilometer.publisher.http Traceback (most recent call last): 2020-07-01 17:00:12.272 11375 ERROR ceilometer.publisher.http File "/usr/lib/python2.7/dist-packages/ceilometer/publisher/http.py", line 178, in _do_post 2020-07-01 17:00:12.272 11375 ERROR ceilometer.publisher.http res.raise_for_status() 2020-07-01 17:00:12.272 11375 ERROR ceilometer.publisher.http File "/usr/lib/python2.7/dist-packages/requests/models.py", line 935, in raise_for_status 2020-07-01 17:00:12.272 11375 ERROR ceilometer.publisher.http raise HTTPError(http_error_msg, response=self) 2020-07-01 17:00:12.272 11375 ERROR ceilometer.publisher.http HTTPError: 400 Client Error: Bad Request for url: http://10.60.4.11:9091/metrics/job/ceilometer 2020-07-01 17:00:12.272 11375 ERROR ceilometer.publisher.http
Thanks for your help on this topic.
Hi, first obvious question: are you sure that there is something listening under http://10.60.4.11:9091/metrics/job/ceilometer ? Would you have some error logs from the other side? It seems that ceilometer is trying to dispatch as expected. Matthias
participants (2)
-
Matthias Runge
-
Samuel Mutel