Skip to content

Gauge doesn't handle delta #87

@rycfung

Description

@rycfung

A quick look at the source code, it looks like recording gauge in pystatsd is not conforming to etsy's statsd: https://github.com/etsy/statsd/blob/master/docs/metric_types.md#gauges

 def __record_gauge(self, key, value, rest):
        ts = int(time.time())
        self.gauges[key] = [ float(value), ts ]

According to the spec, gauge should take deltas rather than directly setting the values for the bucket. Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions