leveldb based backend for graphite.
You are familiar on how to install and operate graphite in general. If not, have a look at these instructions. The install from source instructions (this one) is what the rest of the document specifically based on.
There is a nice script that provides leveldb extensions for python. It can be installed by using this package
Install the plugin using pip
pip install -git+https://github.com/InMobi/level-tsd.git#egg=pyleveltsd
We require the megacarbon branch of carbon daemon. This is becase no other version permits storage plugins. There is still a small level of change that needs to be done as the plugin autodiscovery mechanism is broken. Hence, you need to use this fork:
pip install -git+https://github.com/InMobi/carbon.git@leveltsd#egg=carbon
Set the storage engine as follows by editing your db.conf
DATABASE = level-tsd
Assumption : The graphite version is 0.10.0 or above. Specifically, it needs to support the STORAGE_FINDERS directive
Add the following to your local_settings.py
STORAGE_FINDERS = (
'pyleveltsd.gateway.LevelRpcFinder',
)
LEVEL_RPC_PATH="http://localhost:2005"
Note that you may need to modify the STORAGE_FINDERS section if you have other storage mechanisms that need to be used. Most users would be interested in also adding graphite.finders.standard.StandardFinder to the list.
(All of these should be turned into issues)
$ claude mcp add level-tsd \
-- python -m otcore.mcp_server <graph>