Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the *_index.docs.count metric name #1577

Merged
merged 1 commit into from Jun 12, 2019

Conversation

cbaines
Copy link
Contributor

@cbaines cbaines commented Jun 10, 2019

Metrics ending in .count are usually used for timers in StatsD, and
there is some specific Graphite storage aggregation configuration for
them [1].

Sum isn't the correct aggregation method for these counts, and the
xFilesFactor needs to be lower to allow keeping the data for longer
than 8 days, so just change the metric name so that it's treated like
other gauges.

1: https://github.com/alphagov/govuk-puppet/blob/master/modules/govuk/files/node/s_graphite/storage-aggregation.conf#L35-L40

[count]
pattern = \.count$
aggregationMethod = sum
xFilesFactor = 0.1

Metrics ending in `.count` are usually used for timers in StatsD, and
there is some specific Graphite storage aggregation configuration for
them [1].

Sum isn't the correct aggregation method for these counts, and the
xFilesFactor needs to be lower to allow keeping the data for longer
than 8 days, so just change the metric name so that it's treated like
other gauges.

1: https://github.com/alphagov/govuk-puppet/blob/master/modules/govuk/files/node/s_graphite/storage-aggregation.conf#L35-L40
```
[count]
pattern = \.count$
aggregationMethod = sum
xFilesFactor = 0.1
```
cbaines added a commit to alphagov/govuk-puppet that referenced this pull request Jun 10, 2019
Metrics ending in `.count` are usually used for timers in StatsD, and
there is some specific Graphite storage aggregation configuration for
them [1].

This change updates the use of the metrics to match the new name [2].

1: https://github.com/alphagov/govuk-puppet/blob/master/modules/govuk/files/node/s_graphite/storage-aggregation.conf#L35-L40
```
[count]
pattern = \.count$
aggregationMethod = sum
xFilesFactor = 0.1
```

2: alphagov/search-api#1577
@cbaines cbaines force-pushed the change-indices-statsd-metric-name branch from f8adcb8 to 5716a23 Compare June 10, 2019 12:51
@cbaines cbaines merged commit 01190e4 into master Jun 12, 2019
cbaines added a commit to alphagov/govuk-puppet that referenced this pull request Jun 24, 2019
Re-do the changes from [1] that were removed in [2].

1: 6ba8846
2: 9811d5b

Metrics ending in `.count` are usually used for timers in StatsD, and
there is some specific Graphite storage aggregation configuration for
them [3].

This change updates the use of the metrics to match the new name [4].

3: https://github.com/alphagov/govuk-puppet/blob/master/modules/govuk/files/node/s_graphite/storage-aggregation.conf#L35-L40
```
[count]
pattern = \.count$
aggregationMethod = sum
xFilesFactor = 0.1
```

4: alphagov/search-api#1577
cbaines added a commit to alphagov/govuk-puppet that referenced this pull request Jul 1, 2019
Repeat the changes in 6ba8846.

Metrics ending in `.count` are usually used for timers in StatsD, and
there is some specific Graphite storage aggregation configuration for
them [1].

This change updates the use of the metrics to match the new name [2].

1: https://github.com/alphagov/govuk-puppet/blob/master/modules/govuk/files/node/s_graphite/storage-aggregation.conf#L35-L40
```
[count]
pattern = \.count$
aggregationMethod = sum
xFilesFactor = 0.1
```

2: alphagov/search-api#1577
@barrucadu barrucadu deleted the change-indices-statsd-metric-name branch September 5, 2019 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants