Skip to content

Conversation

@weriomat
Copy link

Hey, apparently my instance does not emit any system_cpu*_active_percentage. This PR makes system_cpu1_active_percentage and system_cpu_active_percentage optional.

@weriomat weriomat force-pushed the cpu_active_percentage branch from 55f917d to e2f2f5d Compare December 26, 2025 00:22
@weriomat
Copy link
Author

I have reworked this PR and included some quick improvements as well as the original fix

@weriomat
Copy link
Author

@imatefx I would like to request a review from you :)

Some refactor as all the values are the same.
Fix where some values are not exported on some typesense instances. This
should fix imatefx#7.
@weriomat weriomat force-pushed the cpu_active_percentage branch from e2f2f5d to f7063db Compare December 26, 2025 12:51
cyppe added a commit to cyppe/typesense-prometheus-exporter that referenced this pull request Jan 13, 2026
…ements

This PR consolidates and builds upon existing community contributions:

Credits:
- PR imatefx#11 by @berciktymansen - Makes CPU fields optional
- PR imatefx#13 by @berciktymansen - Adds health endpoint and raft state metrics

Additional improvements:
- Dynamic CPU handling using serde flatten (supports any CPU count)
- Swap memory metrics (system_memory_total_swap_bytes, system_memory_used_swap_bytes)
- Cache hit ratio metric from stats endpoint
- Removed verbose "No match found" log spam for non-collection endpoints

All changes are backward compatible with older Typesense versions.
Tested against Typesense v30.0.
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

Successfully merging this pull request may close these issues.

1 participant