Skip to content

metrics: Include the prefix of a Report in log lines#262

Merged
hawkw merged 1 commit intomasterfrom
liza/log-pfx
Jun 10, 2019
Merged

metrics: Include the prefix of a Report in log lines#262
hawkw merged 1 commit intomasterfrom
liza/log-pfx

Conversation

@hawkw
Copy link
Contributor

@hawkw hawkw commented May 31, 2019

This branch changes the proxy::http_metrics::Report type so that when
the metrics report has a prefix (such as "route" or "control", etc), the
prefix is included in log lines emitted by the report.

Since the log line produced by Report includes the number of entries
in the metrics registry for that Report, this should make it much
easier to see which metrics scope that count corresponds to.

Signed-off-by: Eliza Weisman [email protected]

This branch changes the `proxy::http_metrics::Report` type so that when
the metrics report has a prefix (such as "route" or "control", etc), the
prefix is included in log lines emitted by the report.

Since the log line produced by `Report` includes the number of entries
in the metrics registry for that `Report`, this should make it much
easier to see which metrics scope that count corresponds to.

Signed-off-by: Eliza Weisman <[email protected]>
@hawkw hawkw requested a review from olix0r May 31, 2019 21:32
@hawkw hawkw merged commit a476e99 into master Jun 10, 2019
@hawkw hawkw deleted the liza/log-pfx branch June 10, 2019 23:41
olix0r added a commit to linkerd/linkerd2 that referenced this pull request Jun 13, 2019
    439fbfed Update to rust-1.35.0 (linkerd/linkerd2-proxy#265)
    db26495e Honor `l5d-override-dst` for inbound service profiles (linkerd/linkerd2-proxy#267)
    a476e995 metrics: Include the prefix of a Report in log lines (linkerd/linkerd2-proxy#262)
    1a52a5e6 discovery: Fall back in MakeService, only on InvalidArgument (linkerd/linkerd2-proxy#268)
    35df8ab4 metrics: Classify response errors  (linkerd/linkerd2-proxy#269)
olix0r added a commit to linkerd/linkerd2 that referenced this pull request Jun 13, 2019
    439fbfed Update to rust-1.35.0 (linkerd/linkerd2-proxy#265)
    db26495e Honor `l5d-override-dst` for inbound service profiles (linkerd/linkerd2-proxy#267)
    a476e995 metrics: Include the prefix of a Report in log lines (linkerd/linkerd2-proxy#262)
    1a52a5e6 discovery: Fall back in MakeService, only on InvalidArgument (linkerd/linkerd2-proxy#268)
    35df8ab4 metrics: Classify response errors  (linkerd/linkerd2-proxy#269)
hawkw pushed a commit to linkerd/linkerd2 that referenced this pull request Jun 13, 2019
439fbfed Update to rust-1.35.0 (linkerd/linkerd2-proxy#265)
    db26495e Honor `l5d-override-dst` for inbound service profiles (linkerd/linkerd2-proxy#267)
    a476e995 metrics: Include the prefix of a Report in log lines (linkerd/linkerd2-proxy#262)
    1a52a5e6 discovery: Fall back in MakeService, only on InvalidArgument (linkerd/linkerd2-proxy#268)
    35df8ab4 metrics: Classify response errors  (linkerd/linkerd2-proxy#269)
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.

2 participants