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

Unable to see few metrics #155

Closed
mjetpurwalaextr opened this issue Jul 31, 2023 · 7 comments
Closed

Unable to see few metrics #155

mjetpurwalaextr opened this issue Jul 31, 2023 · 7 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@mjetpurwalaextr
Copy link

What could be the reason that I am not able to see these metrics for my instance?

logstash_stats_events_in
logstash_stats_events_out
and
logstash_stats_process_cpu_load_average_1m/5m/15m

However, I am able to correctly see:
logstash_stats_pipeline_events_in
logstash_stats_pipeline_events_out

Any suggestions please?

@kuskoman
Copy link
Owner

Could you provide basic information about your setup including: logstash version, exporter version+hash and your operating system?

@mperkhou
Copy link

mperkhou commented Aug 8, 2023

I have a similar issue, missing many stats, including all the ones the OP listed. These are the only stats that are available.

We are using logstash version 6.8.23 running on an Oracle Linux 7 server, and scraping with docker image kuskoman/logstash-exporter v1.4.0 (554c05779eec)

go_gc_duration_seconds{} 1
go_gc_duration_seconds_count{} 1
go_gc_duration_seconds_sum{} 1
go_goroutines{} 1
go_info{} 1
go_memstats_alloc_bytes{} 1
go_memstats_alloc_bytes_total{} 1
go_memstats_buck_hash_sys_bytes{} 1
go_memstats_frees_total{} 1
go_memstats_gc_sys_bytes{} 1
go_memstats_heap_alloc_bytes{} 1
go_memstats_heap_idle_bytes{} 1
go_memstats_heap_inuse_bytes{} 1
go_memstats_heap_objects{} 1
go_memstats_heap_released_bytes{} 1
go_memstats_heap_sys_bytes{} 1
go_memstats_last_gc_time_seconds{} 1
go_memstats_lookups_total{} 1
go_memstats_mallocs_total{} 1
go_memstats_mcache_inuse_bytes{} 1
go_memstats_mcache_sys_bytes{} 1
go_memstats_mspan_inuse_bytes{} 1
go_memstats_mspan_sys_bytes{} 1
go_memstats_next_gc_bytes{} 1
go_memstats_other_sys_bytes{} 1
go_memstats_stack_inuse_bytes{} 1
go_memstats_stack_sys_bytes{} 1
go_memstats_sys_bytes{} 1
go_threads{} 1
logstash_exporter_build_info{} 1
logstash_info_up{} 1
process_cpu_seconds_total{} 1
process_max_fds{} 1
process_open_fds{} 1
process_resident_memory_bytes{} 1
process_start_time_seconds{} 1
process_virtual_memory_bytes{} 1
process_virtual_memory_max_bytes{} 1
promhttp_metric_handler_requests_in_flight{} 1
promhttp_metric_handler_requests_total{}

`
The metrics above are the same as what I get back when I curl localhost:9198/metrics.

When I curl localhost:9198/health I get this:
<a href="/metrics">Moved Permanently</a>

@kuskoman
Copy link
Owner

kuskoman commented Aug 8, 2023

@mperkhou thanks for the details. I will investigate it in nearest feature

@kuskoman
Copy link
Owner

kuskoman commented Aug 12, 2023

I created #157 in order to debug it easier.
After my debug I saw that logstash 8.8.1 has different metrics exposed and different document structure than 6.8.23 mentioned by @mperkhou.
Since it is my side project I don't plan spending time creating connectors for multiple logstash versions, however some time ago I created https://github.com/kuskoman/logstash-metric-samples, so in the future it is possible that I will provide a compatibility table in the readme.

In order to utilize all avaiable metrics you need to upgrade your logstash to current (8.8.x) version

@kuskoman kuskoman added bug Something isn't working wontfix This will not be worked on labels Aug 12, 2023
@kuskoman
Copy link
Owner

I'm testing SweepAI to see whether its captable of generating the compatibility table
#160 #158
Not sure if it will actually fit our needs, but I want to have some fun with it

@kuskoman
Copy link
Owner

I updated readme ( 38acc61 ) to add information about supported logstash version

@mperkhou
Copy link

Thanks for the help! Upgrading logstash to 8.8.x isn't an option. I think we'll be moving up to some version of 7.x.x soon, so perhaps I will work with the metrics samples to adapt this app to our environment, or just map it out myself for 6.8.23

Thanks for your input on this, it's much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants