Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

feat: Add tags back to metrics #1401

Closed
wants to merge 10 commits into from
Closed

feat: Add tags back to metrics #1401

wants to merge 10 commits into from

Conversation

jrconlin
Copy link
Member

Description

feat: Add tags back to metrics.

per ops request, this switches metrics to using markus. This also
changes the DatadogMetrics library to TaggedMetrics, and becomes
the default metrics library if the config value statsd_host is set.

Testing

Unit tests provided.

Issue(s)

Closes #1400

jrconlin added 3 commits June 22, 2020 23:22
per ops request, this switches metrics to using markus. This also
changes the DatadogMetrics library to TaggedMetrics, and becomes
the default metrics library if the config value `statsd_host` is set.

Closes #1400
@jrconlin jrconlin changed the title Feat/1400 feat: Add tags back to metrics Jun 22, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jun 22, 2020

Codecov Report

Merging #1401 into master will decrease coverage by 0.11%.
The diff coverage is 97.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1401      +/-   ##
==========================================
- Coverage   99.74%   99.62%   -0.12%     
==========================================
  Files          64       65       +1     
  Lines       10476    10467       -9     
==========================================
- Hits        10449    10428      -21     
- Misses         27       39      +12     
Impacted Files Coverage Δ
autopush/router/webpush.py 100.00% <ø> (ø)
autopush/tests/test_router.py 99.89% <ø> (-0.01%) ⬇️
autopush/tests/test_z_main.py 100.00% <ø> (ø)
autopush/tests/test_integration.py 99.79% <77.77%> (-0.21%) ⬇️
autopush/metrics.py 100.00% <100.00%> (ø)
autopush/router/adm.py 100.00% <100.00%> (ø)
autopush/router/apnsrouter.py 100.00% <100.00%> (ø)
autopush/router/fcm.py 97.05% <100.00%> (-0.03%) ⬇️
autopush/router/fcm_v1.py 100.00% <100.00%> (ø)
autopush/router/gcm.py 100.00% <100.00%> (ø)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5538c22...4e9eacb. Read the comment docs.

autopush/metrics.py Outdated Show resolved Hide resolved
autopush/tests/test_integration.py Outdated Show resolved Hide resolved
autopush/metrics.py Outdated Show resolved Hide resolved
autopush/metrics.py Outdated Show resolved Hide resolved
* removed unused TwistedMetrics
AzureMarker
AzureMarker previously approved these changes Jun 23, 2020
Copy link
Contributor

@AzureMarker AzureMarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from my perspective, but might need another reviewer.

restore cert test
AzureMarker
AzureMarker previously approved these changes Jun 23, 2020
@jrconlin
Copy link
Member Author

Closing in favor of #1406

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.

Add metric handler for grafana
3 participants