hi, i am trying to monitor cpu and ran utlization of each process of an
odoo instance, i am using prometheus and node expoter for this task. i
found that we wrote a bash script that fetches details of odoo instance and
then store the output in a *.prom *the
--collector.text.directory=/path/to/that/.prom file will pick the details
and i will be able to query from prometheus.
curl -G --data-urlencode
'query=odoo_instance_filestore_size_bytes{instance="name"}'
http://localhost:9090/prometheus/api/v1/query
{"status":"success","data":{"resultType":"vector","result":[]}}
but i am getting an empty results even after making all the error to
configure everything right. can anyone please help me with this, let me
know what am i doing wrong.
additional details :
@localhost:~# ls -ltr
/var/lib/node_exporter/textfile_collector/odoo_metrics.prom
-rwxr-xr-x 1 prometheus prometheus 1092 Nov 21 04:29
/var/lib/node_exporter/textfile_collector/odoo_metrics.prom
@localhost:~# cat
/var/lib/node_exporter/textfile_collector/odoo_metrics.prom
# Odoo Instances Resource Usage Metrics
# HELP odoo_instance_process_count Number of processes for the Odoo instance
# TYPE odoo_instance_process_count gauge
odoo_instance_process_count{instance="2hp39r1l"} 6
# HELP odoo_instance_cpu_usage_percent Total CPU usage percentage for the
Odoo instance
# TYPE odoo_instance_cpu_usage_percent gauge
odoo_instance_cpu_usage_percent{instance="2hp39r1l"} 0
# HELP odoo_instance_memory_usage_bytes Total memory usage in bytes for the
Odoo instance
# TYPE odoo_instance_memory_usage_bytes gauge
odoo_instance_memory_usage_bytes{instance="2hp39r1l"} 633397248
# HELP odoo_instance_filestore_size_bytes Filestore size in bytes for the
Odoo instance
# TYPE odoo_instance_filestore_size_bytes gauge
odoo_instance_filestore_size_bytes{instance="2hp39r1l"} 2237538
# HELP odoo_instance_database_size_bytes Database size in bytes
# TYPE odoo_instance_database_size_bytes gauge
odoo_instance_database_size_bytes{instance="2hp39r1l.nip.io"} 20550447
@localhost:~# cat /lib/systemd/system/node_exporter.service
[Unit]
Description=Node Exporter
Wants=network-online.target
After=network-online.target
[Service]
User=prometheus
ExecStart=/usr/local/bin/node_exporter \
--web.listen-address=127.0.0.1:9100 \
--collector.systemd \
--collector.cpu.info \
--collector.meminfo \
--collector.diskstats \
--collector.processes \
--collector.textfile.directory=/var/lib/node_exporter/textfile_collector
Restart=on-failure
RestartSec=5
[Install]
WantedBy=default.target
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/prometheus-users/d10d76f9-c256-4232-8838-7d95028cb015n%40googlegroups.com.