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

Influx 1.x: Get uptime statistics from /debug/vars in to the influxdb plugin #11071

Closed
danatinflux opened this issue May 9, 2022 · 1 comment · Fixed by #12493
Closed

Influx 1.x: Get uptime statistics from /debug/vars in to the influxdb plugin #11071

danatinflux opened this issue May 9, 2022 · 1 comment · Fixed by #12493
Labels
feature request Requests for new plugin and for new features to existing plugins

Comments

@danatinflux
Copy link

Proposal:

I'd like to capture this info from the http://(servername):8086/debug/vars output:

  {
    "system": {
      "currentTime": "2022-05-09T14:27:15.922004455Z",
      "started": "2022-05-04T06:37:27.660564514Z",
      "uptime": 460188
    },

This would allow us to create an alert if the uptime is less than a certain threshold (restart notification), and also deduce how long a process has been up.

Current behavior:

Not included in current plugin.

Desired behavior:

Add a section in the 'influxdb' plugin ('uptime?') that would have the three parameters mentioned above.

Use case:

This would allow us to run an alert if the uptime is less than a certain threshold (restart notification), and also deduce how long an instance has been up.

@danatinflux danatinflux added the feature request Requests for new plugin and for new features to existing plugins label May 9, 2022
@powersj
Copy link
Contributor

powersj commented May 17, 2022

next steps: look into adding this

powersj added a commit to powersj/telegraf that referenced this issue Jan 11, 2023
Collect the system stats from influxdb metrics as well. These include
the current time, started time, and uptime of the database.

fixes: influxdata#11071
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants