Values of the syncthing_model_folder_state metric

syncthing v2.1.0 “Hafnium Hornet” (go1.26.3 linux-amd64) debian@github.syncthing.net 2026-05-12 05:59:47 UTC [noupgrade]

What possible values ​​does the metric syncthing_model_folder_state take? It is always 0. I tried set “Pause”, I tried remove files for “Local Addition” state.

One of these, where the first value (iota) is 0 and the next is 1, etc.

“Idle” (0) will indeed be the most common.

It looks like the list is missing some statuses for Paused and for Local Addition and for something else

You could say so, those are unfortunately not folder states as far as this code is concerned. You can get the paused state in a label on syncthing_config_folder_info though (because it is a config value). I’m not sure if local additions are exposed.

I thought that all the states would be in one place )

Failed Items - the same status is 0