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

feat: include start time, exported metrics, and poll duration in coll… #2493

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

cgrinds
Copy link
Collaborator

@cgrinds cgrinds commented Nov 16, 2023

…ector logs

feat: PollInstance and PollCounter should be logged with start time, api, and poll duration

Examples:

2023-11-16T13:26:57-05:00 INF collector/collector.go:567 > Collected Poller=sar apiMs=1574 begin=1700159216 collector=RestPerf:WAFLAggr metrics=23 pollMs=1580 task=counter

2023-11-16T13:26:58-05:00 INF collector/collector.go:567 > Collected Poller=sar apiMs=354 begin=1700159218 collector=RestPerf:NFSv42 instances=9 pollMs=354 task=instance

2023-11-16T13:29:03-05:00 INF collector/collector.go:567 > Collected Poller=sar apiMs=4152 begin=1700159336414 calcMs=0 collector=Rest:SecurityAccount exportMs=2 instances=39 instancesExported=266 metrics=193 metricsExported=1620 parseMs=0 pluginMs=3185 pollMs=7337

Fixes: #1519

…ector logs

feat: PollInstance and PollCounter should be logged with start time, api, and poll duration

Examples:

`2023-11-16T13:26:57-05:00 INF collector/collector.go:567 > Collected Poller=sar apiMs=1574 begin=1700159216 collector=RestPerf:WAFLAggr metrics=23 pollMs=1580 task=counter`

`2023-11-16T13:26:58-05:00 INF collector/collector.go:567 > Collected Poller=sar apiMs=354 begin=1700159218 collector=RestPerf:NFSv42 instances=9 pollMs=354 task=instance`

`2023-11-16T13:29:03-05:00 INF collector/collector.go:567 > Collected Poller=sar apiMs=4152 begin=1700159336414 calcMs=0 collector=Rest:SecurityAccount exportMs=2 instances=39 instancesExported=266 metrics=193 metricsExported=1620 parseMs=0 pluginMs=3185 pollMs=7337`
@rahulguptajss rahulguptajss merged commit 3098165 into main Nov 20, 2023
10 checks passed
@rahulguptajss rahulguptajss deleted the cbg-logging branch November 20, 2023 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collector logs should distinguish filtered resources
3 participants