LOENS2 / pterodactyl_exporter

Python script that extracts metrics from the Pterodactyl API and provides a metrics endpoint for Prometheus
GNU General Public License v3.0
30 stars 12 forks source link

Error Network #29

Closed CodeExplorerX closed 6 months ago

CodeExplorerX commented 6 months ago

Error Network: PromQL info: metric might not be a counter, name does not end in _total/_sum/_count/_bucket: "pterodactyl_server_network_rx_mebibyte" (1:10) image image

LOENS2 commented 6 months ago

Du you have an old version of prometheus installed? This could be related to a bug in prometheus: https://github.com/prometheus/prometheus/issues/12945. I don't have that error in my testing environment and from the looks of your diagrams, the metrics seem to be shown just fine.

CodeExplorerX commented 6 months ago

I apologize for not adding details. I have a new version of Prometheus installed. And the metrics are constantly at zero.

prometheus, version 2.51.1 (branch: HEAD, revision: 855b5ac4b80956874eb1790a04c92327f2f99e38) build user: root@35108a5d8f07 build date: 20240328-09:31:42 go version: go1.22.1 platform: linux/386 tags: netgo,builtinassets,stringlabels

LOENS2 commented 6 months ago

It would be awesome, if you'd tell me which deployment type you use (docker/egg/bare metal) and which version of the exporter you are using.

CodeExplorerX commented 6 months ago

It would be awesome, if you'd tell me which deployment type you use (docker/egg/bare metal) and which version of the exporter you are using.

Pterodactyl_exporter version: 1.0.0 deployment type: bare metal

CodeExplorerX commented 6 months ago

The problem was on my side, since the interface address for the containers was specified as localhost image