Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

allow a global gauge not specific to a host #9

Merged
merged 1 commit into from
May 21, 2018

Conversation

briangough
Copy link
Contributor

@briangough briangough commented May 18, 2018

Currently the metrics include the host in the key. I needed to record a gauge like 'number of active queues' which is not specific to a host (e.g. https://github.com/sharelatex/project-history-sharelatex/blob/bc4337c1fd44e7c2c5b44ecb676ab904f8f365ed/app/coffee/ErrorRecorder.coffee#L55)

I thought I would be able to access the most recent value across a set of hosts using graphite functions but it's not possible (because gauges always have a value, so there is no concept of the most recent data point across a set).

This changes add a globalGauge metric which records the same data is gauge but with a key of service.global.foo' instead of service.hostname.foo`.

@briangough briangough self-assigned this May 18, 2018
@briangough briangough requested a review from jpallen May 18, 2018 14:23
@briangough briangough merged commit e57f1a8 into master May 21, 2018
@briangough briangough deleted the bg-allow-non-host-specific-metrics branch May 21, 2018 07:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants