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

Internal statistics logging #2121

Open
okalinin opened this issue May 7, 2021 · 1 comment
Open

Internal statistics logging #2121

okalinin opened this issue May 7, 2021 · 1 comment

Comments

@okalinin
Copy link

okalinin commented May 7, 2021

OpenTSDB maintains internal statistics on various parameters which are retrievable with /api/stats REST call. Querying stats via REST is useful for monitoring in some scenarios, but it is not helpful for post-factum problem analysis for sporadic, hard to reproduce performance issues. It seems to be useful to provide a feature that would optionally enable periodic logging of the same statistics into log file. It could be common OpenTSDB log file or dedicated log file for stats. Logging interval could also be configurable, e.g. default of 1 min could be reasonable.

@manolama
Copy link
Member

manolama commented May 8, 2021

Typically users will use a tool to periodically scrape the stats back into TSDB or another monitoring system. E.g. The Tcollector code can scrape and store multiple tsds.
In 3.0 we have a publishing mechanism like Dropwizard that can emit to TSDB or Influx and other systems in the future.
But I'd be ok with a PR for 2.x that had a feature flag folks could turn on to log the stats periodically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants