I wrote custom python plugin for collectd:
import collectd
import random
def read_callback():
value = random.randint(0, 1500)
val = collectd.Values()
val.plugin = 'test'
val.plugin_instance = 'random'
val.type = 'counter'
val.type_instance = 'random'
val.values = [value]
val.dispatch()
collectd.register_read(read_callback)
So I expected to see values from 0 to 1500 in graphite, but got the following list of floats with value much more than 1500:
I don`t have any problems with basic plugins and their metrics, but here very strange behavior. Does any one know why and how I can fix it?