The current process.runtime.jvm.threads.count metric exported by the agent (or manually using Threads#registerObservers directly) only has as an attribute if corresponds to deamon threads or not, but knowing how many threads are in a particular state is also important.
We could include the state attribute to the existing metric process.runtime.jvm.threads.count or create a new one, IMO adding to the existing one makes more sense because otherwise it would be confusing having two metrics measuring the same with different attributes.
If you are ok with this change I can work on the PR.