Stackdriver / collectd

Stackdriver's monitoring agent based on collectd (http://collectd.org).
https://cloud.google.com/monitoring/agent/
Other
51 stars 15 forks source link

Ensure counters exported by read_agent_logging are integers. #151

Closed jkohen closed 5 years ago

jkohen commented 5 years ago

Without this, collectd prints a warning.

Fixes https://github.com/GoogleCloudPlatform/google-fluentd/issues/187

jkohen commented 5 years ago

The travis error is the apt-get keychain and not something we can fix. I've tested the change locally and it works for the following input:

stackdriver_successful_requests_count{grpc="false",code="200"} 255
stackdriver_successful_requests_count{grpc="false",code="201"} 2.4

output before:

PUTVAL /agent-200/derive-request_count N:255
PUTVAL /agent-201/derive-request_count N:2.4

output after:

PUTVAL /agent-200/derive-request_count N:255
PUTVAL /agent-201/derive-request_count N:2
jkohen commented 5 years ago

PTAL.