tcollector不关心你编写的收集器是用Python还是shell脚本或者是什么。只要你把收集器放进去 tcollector/collectors/0 它应该自动拾取。如果不是,请检查您的shell脚本是否可执行( chmod a+x 并且它始于一个shebang( #!/bin/sh 例如)。
tcollector/collectors/0
chmod a+x
#!/bin/sh