Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"elasticsearch_jvm_memory_max_bytes" is not displayed #939

Open
kenytux opened this issue Sep 30, 2024 · 4 comments
Open

"elasticsearch_jvm_memory_max_bytes" is not displayed #939

kenytux opened this issue Sep 30, 2024 · 4 comments

Comments

@kenytux
Copy link

kenytux commented Sep 30, 2024

elasticsearch_jvm_memory_max_bytes is not displayed.
Other metrics are displayed except elasticsearch_jvm_memory_max_bytes.

@sysadmind
Copy link
Contributor

Can you please provide more context? What endpoint are you using for the exporter? Can you post the output of it? What command line options are you using to run the exporter?

@kenytux
Copy link
Author

kenytux commented Oct 14, 2024

I am using the last version 1.8.0 and the command is:
/opt/elasticsearch-exporter/elasticsearch-exporter-1.0.2.linux-amd64/elasticsearch_exporter
--es.uri https://${ES_USERNAME}:${ES_PASSWORD}@hes-edata1:9200
--es.ca /opt/elasticsearch/config/certs/elastic1.crt
--es.all
--es.indices
--es.shards
--es.timeout 5s
--web.listen-address :9108
--web.telemetry-path /metrics \

@kenytux
Copy link
Author

kenytux commented Oct 14, 2024

Here the output:

elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-09-21"} 3.26625e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-09-22"} 3.240084e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-09-23"} 3.028881e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-09-24"} 3.118165e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-09-25"} 3.060947e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-09-26"} 3.235015e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-09-27"} 3.411684e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-09-28"} 3.276081e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-09-29"} 3.039158e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-09-30"} 3.200235e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-01"} 3.2373e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-02"} 3.375952e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-03"} 3.233722e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-04"} 3.164564e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-05"} 3.303794e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-06"} 2.752388e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-07"} 2.945173e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-08"} 2.792029e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-09"} 2.685943e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-10"} 2.821879e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-11"} 2.853007e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-12"} 2.696696e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-13"} 2.761773e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-14"} 2.862452e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-15"} 2.664017e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-16"} 2.654421e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-17"} 2.719787e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-18"} 3.42464e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-19"} 3.225799e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-20"} 3.060746e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-21"} 3.263995e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-22"} 2.57121e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-23"} 2.265975e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-24"} 3.172045e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-25"} 3.083343e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-26"} 2.800972e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-27"} 2.881103e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-28"} 2.618994e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-29"} 3.814141e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-30"} 3.067067e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-10-31"} 2.594642e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-01"} 2.795895e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-02"} 2.652958e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-03"} 2.713065e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-04"} 2.746844e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-05"} 2.67432e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-06"} 2.805655e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-07"} 2.627605e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-08"} 3.388014e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-09"} 2.801407e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-10"} 2.612998e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-11"} 2.671375e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-12"} 2.608186e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-13"} 2.574418e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-14"} 2.797902e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-15"} 2.77536e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-16"} 2.77693e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-17"} 2.632975e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-18"} 2.716292e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-19"} 2.481848e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-20"} 2.817517e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-21"} 2.616676e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-22"} 2.772575e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-23"} 2.632873e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-24"} 2.744389e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-25"} 2.600199e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-26"} 2.730056e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-27"} 2.624073e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-28"} 2.669084e+06
elasticsearch_indices_store_size_bytes_total{index="nms_p2p_stats2023-11-29"} 2.638772e+06
elasticsearch_indices_store_size_bytes_total{index="nms_plc_history"} 454
elasticsearch_indices_store_size_bytes_total{index="nms_plc_history2024"} 454
elasticsearch_indices_store_size_bytes_total{index="nms_routing_table"} 2724
elasticsearch_indices_store_size_bytes_total{index="nms_topology"} 454
elasticsearch_indices_store_size_bytes_total{index="operation_log_dlms2023-04"} 9.72871896e+08
elasticsearch_indices_store_size_bytes_total{index="operation_log_dlms2023-05"} 2.06327198e+08
elasticsearch_indices_store_size_bytes_total{index="operation_log_dlms2023-12"} 3.8460912e+07
elasticsearch_indices_store_size_bytes_total{index="operation_log_dlms2024-01"} 3.21824916e+08
elasticsearch_indices_store_size_bytes_total{index="operation_log_dlms2024-02"} 1.19673648e+08
elasticsearch_indices_store_size_bytes_total{index="operation_log_dlms2024-03"} 447818
elasticsearch_indices_store_size_bytes_total{index="sla_capability"} 2724
elasticsearch_indices_store_size_bytes_total{index="sla_collect_result2021_v5_4_0"} 29236
elasticsearch_indices_store_size_bytes_total{index="sla_collect_result2022_v5_4_0"} 2.2492066e+07
elasticsearch_indices_store_size_bytes_total{index="sla_collect_result2023"} 3.21408395e+08
elasticsearch_indices_store_size_bytes_total{index="sla_collect_result2024"} 9.9800905117e+10
elasticsearch_indices_store_size_bytes_total{index="sla_daily_photo2020"} 1.251849e+06
elasticsearch_indices_store_size_bytes_total{index="sla_daily_photo2024"} 1.36627414e+08
elasticsearch_indices_store_size_bytes_total{index="sla_dc_action_v5_4_0"} 1.3104346e+07
elasticsearch_indices_store_size_bytes_total{index="sla_dc_jmsa"} 454
elasticsearch_indices_store_size_bytes_total{index="sla_dc_jmsa2022-02"} 5.0592996e+07
elasticsearch_indices_store_size_bytes_total{index="sla_dc_jmsa2022-09"} 14358
elasticsearch_indices_store_size_bytes_total{index="sla_dc_jmsa2022-10"} 6.6761468e+07
elasticsearch_indices_store_size_bytes_total{index="sla_dc_jmsa2022-11"} 5.5974707e+07
elasticsearch_indices_store_size_bytes_total{index="sla_dc_jmsa2022-12"} 1.42347382e+08
elasticsearch_indices_store_size_bytes_total{index="sla_dc_jmsa2023-01"} 5.6685473e+07
elasticsearch_indices_store_size_bytes_total{index="sla_dc_jmsa2023-02"} 3.7598952e+07
elasticsearch_indices_store_size_bytes_total{index="sla_dc_jmsa2023-03"} 5.6784122e+07
elasticsearch_indices_store_size_bytes_total{index="sla_dc_jmsa2023-04"} 1.0592507e+07
elasticsearch_indices_store_size_bytes_total{index="sla_dc_status_history_v5_4_0"} 6.054775e+06
elasticsearch_indices_store_size_bytes_total{index="sla_dc_v5_4_0"} 9.859496e+06
elasticsearch_indices_store_size_bytes_total{index="sla_demand_v5_4_0"} 2.307211468e+09
elasticsearch_indices_store_size_bytes_total{index="sla_event"} 2781
elasticsearch_indices_store_size_bytes_total{index="sla_log_dlms2023-05_v5_4_0"} 5.7827168e+08
elasticsearch_indices_store_size_bytes_total{index="sla_log_dlms2023-12_v5_4_0"} 1.20349354e+08
elasticsearch_indices_store_size_bytes_total{index="sla_log_dlms2024-01"} 5.525401841e+09
elasticsearch_indices_store_size_bytes_total{index="sla_log_dlms2024-02"} 5.930230524e+09
elasticsearch_indices_store_size_bytes_total{index="sla_log_dlms2024-03"} 8.6599341e+07
elasticsearch_indices_store_size_bytes_total{index="sla_meter_configuration_parameter_v5_4_0"} 7.48701987e+08
elasticsearch_indices_store_size_bytes_total{index="sla_meter_state_evolution"} 1.783075e+06
elasticsearch_indices_store_size_bytes_total{index="sla_meter_status_history_v5_4_0"} 1.86441023e+08
elasticsearch_indices_store_size_bytes_total{index="sla_meter_v5_4_0"} 2.507309918e+09
elasticsearch_indices_store_size_bytes_total{index="sla_technical_data2022_v5_4_0"} 6.4027263e+07
elasticsearch_indices_store_size_bytes_total{index="sla_technical_data2023_v5_4_0"} 1.1807862e+07
# HELP elasticsearch_node_stats_json_parse_failures Number of errors while parsing JSON.
# TYPE elasticsearch_node_stats_json_parse_failures counter
elasticsearch_node_stats_json_parse_failures 103882
# HELP elasticsearch_node_stats_total_scrapes Current total ElasticSearch node scrapes.
# TYPE elasticsearch_node_stats_total_scrapes counter
elasticsearch_node_stats_total_scrapes 103882
# HELP elasticsearch_node_stats_up Was the last scrape of the ElasticSearch nodes endpoint successful.
# TYPE elasticsearch_node_stats_up gauge
elasticsearch_node_stats_up 0
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0.000347796
go_gc_duration_seconds{quantile="0.25"} 0.000598751
go_gc_duration_seconds{quantile="0.5"} 0.000743494
go_gc_duration_seconds{quantile="0.75"} 0.000940407
go_gc_duration_seconds{quantile="1"} 0.004869945
go_gc_duration_seconds_sum 294.107312866
go_gc_duration_seconds_count 363510
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 18
# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.
# TYPE go_memstats_alloc_bytes gauge
go_memstats_alloc_bytes 1.3597376e+07
# HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed.
# TYPE go_memstats_alloc_bytes_total counter
go_memstats_alloc_bytes_total 4.45385555812e+12
# HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table.
# TYPE go_memstats_buck_hash_sys_bytes gauge
go_memstats_buck_hash_sys_bytes 1.788122e+06
# HELP go_memstats_frees_total Total number of frees.
# TYPE go_memstats_frees_total counter
go_memstats_frees_total 9.8854659655e+10
# HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata.
# TYPE go_memstats_gc_sys_bytes gauge
go_memstats_gc_sys_bytes 2.740224e+06
# HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and still in use.
# TYPE go_memstats_heap_alloc_bytes gauge
go_memstats_heap_alloc_bytes 1.3597376e+07
# HELP go_memstats_heap_idle_bytes Number of heap bytes waiting to be used.
# TYPE go_memstats_heap_idle_bytes gauge
go_memstats_heap_idle_bytes 5.279744e+07
# HELP go_memstats_heap_inuse_bytes Number of heap bytes that are in use.
# TYPE go_memstats_heap_inuse_bytes gauge
go_memstats_heap_inuse_bytes 1.6965632e+07
# HELP go_memstats_heap_objects Number of allocated objects.
# TYPE go_memstats_heap_objects gauge
go_memstats_heap_objects 225253
# HELP go_memstats_heap_released_bytes_total Total number of heap bytes released to OS.
# TYPE go_memstats_heap_released_bytes_total counter
go_memstats_heap_released_bytes_total 0
# HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system.
# TYPE go_memstats_heap_sys_bytes gauge
go_memstats_heap_sys_bytes 6.9763072e+07
# HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection.
# TYPE go_memstats_last_gc_time_seconds gauge
go_memstats_last_gc_time_seconds 1.7289040953489282e+09
# HELP go_memstats_lookups_total Total number of pointer lookups.
# TYPE go_memstats_lookups_total counter
go_memstats_lookups_total 2.0795e+06
# HELP go_memstats_mallocs_total Total number of mallocs.
# TYPE go_memstats_mallocs_total counter
go_memstats_mallocs_total 9.8854884908e+10
# HELP go_memstats_mcache_inuse_bytes Number of bytes in use by mcache structures.
# TYPE go_memstats_mcache_inuse_bytes gauge
go_memstats_mcache_inuse_bytes 55552
# HELP go_memstats_mcache_sys_bytes Number of bytes used for mcache structures obtained from system.
# TYPE go_memstats_mcache_sys_bytes gauge
go_memstats_mcache_sys_bytes 65536
# HELP go_memstats_mspan_inuse_bytes Number of bytes in use by mspan structures.
# TYPE go_memstats_mspan_inuse_bytes gauge
go_memstats_mspan_inuse_bytes 321480
# HELP go_memstats_mspan_sys_bytes Number of bytes used for mspan structures obtained from system.
# TYPE go_memstats_mspan_sys_bytes gauge
go_memstats_mspan_sys_bytes 491520
# HELP go_memstats_next_gc_bytes Number of heap bytes when next garbage collection will take place.
# TYPE go_memstats_next_gc_bytes gauge
go_memstats_next_gc_bytes 2.5744608e+07
# HELP go_memstats_other_sys_bytes Number of bytes used for other system allocations.
# TYPE go_memstats_other_sys_bytes gauge
go_memstats_other_sys_bytes 5.472286e+06
# HELP go_memstats_stack_inuse_bytes Number of bytes in use by the stack allocator.
# TYPE go_memstats_stack_inuse_bytes gauge
go_memstats_stack_inuse_bytes 3.637248e+06
# HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator.
# TYPE go_memstats_stack_sys_bytes gauge
go_memstats_stack_sys_bytes 3.637248e+06
# HELP go_memstats_sys_bytes Number of bytes obtained by system. Sum of all system allocations.
# TYPE go_memstats_sys_bytes gauge
go_memstats_sys_bytes 8.3958008e+07
# HELP http_request_duration_microseconds The HTTP request latencies in microseconds.
# TYPE http_request_duration_microseconds summary
http_request_duration_microseconds{handler="prometheus",quantile="0.5"} 867402.072
http_request_duration_microseconds{handler="prometheus",quantile="0.9"} 893208.432
http_request_duration_microseconds{handler="prometheus",quantile="0.99"} 897984.019
http_request_duration_microseconds_sum{handler="prometheus"} 9.089362459392252e+10
http_request_duration_microseconds_count{handler="prometheus"} 103881
# HELP http_request_size_bytes The HTTP request sizes in bytes.
# TYPE http_request_size_bytes summary
http_request_size_bytes{handler="prometheus",quantile="0.5"} 235
http_request_size_bytes{handler="prometheus",quantile="0.9"} 235
http_request_size_bytes{handler="prometheus",quantile="0.99"} 235
http_request_size_bytes_sum{handler="prometheus"} 2.4411863e+07
http_request_size_bytes_count{handler="prometheus"} 103881
# HELP http_requests_total Total number of HTTP requests made.
# TYPE http_requests_total counter
http_requests_total{code="200",handler="prometheus",method="get"} 103881
# HELP http_response_size_bytes The HTTP response sizes in bytes.
# TYPE http_response_size_bytes summary
http_response_size_bytes{handler="prometheus",quantile="0.5"} 108747
http_response_size_bytes{handler="prometheus",quantile="0.9"} 108780
http_response_size_bytes{handler="prometheus",quantile="0.99"} 108789
http_response_size_bytes_sum{handler="prometheus"} 1.1232263756e+10
http_response_size_bytes_count{handler="prometheus"} 103881
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 82582.98
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 1024
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 10
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 6.8923392e+07
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.72734589517e+09
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 9.0882048e+07

@sysadmind
Copy link
Contributor

There seems to be a problem with the data being returned from elasticsearch to the exporter. I can tell that by the metrics:

# HELP elasticsearch_node_stats_json_parse_failures Number of errors while parsing JSON.
# TYPE elasticsearch_node_stats_json_parse_failures counter
elasticsearch_node_stats_json_parse_failures 103882
# HELP elasticsearch_node_stats_total_scrapes Current total ElasticSearch node scrapes.
# TYPE elasticsearch_node_stats_total_scrapes counter
elasticsearch_node_stats_total_scrapes 103882
# HELP elasticsearch_node_stats_up Was the last scrape of the ElasticSearch nodes endpoint successful.
# TYPE elasticsearch_node_stats_up gauge
elasticsearch_node_stats_up 0

There should be logs that explain the problem. You also mention version 1.8.0 of the exporter, but in the path you execute, it says 1.0.2. Can you confirm by running the exporter with the flag --version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants