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

API Endpoint for getting system/listmonk information #1354

Closed
klepptor opened this issue May 31, 2023 · 2 comments
Closed

API Endpoint for getting system/listmonk information #1354

klepptor opened this issue May 31, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@klepptor
Copy link

klepptor commented May 31, 2023

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Hey there!

In my environment I need to always have an up-2-date overview of the software we are using. Therefore it would be nice if listmonk could offer an API endpoint, which returns the used version and maybe the database version (or even the used libs), too.

Describe the solution you'd like

New API endpoint /api/stats, which returns the version of listmonk and maybe other useful data (used database, sent messages, etc.)

Thx for your great work!

@klepptor klepptor added the enhancement New feature or request label May 31, 2023
@knadh knadh self-assigned this Jun 5, 2023
@knadh
Copy link
Owner

knadh commented Jun 5, 2023

This is a good suggestion @klepptor. Will add an /api/about that exposes system info.

@knadh knadh closed this as completed in c581fe2 Jun 24, 2023
@knadh
Copy link
Owner

knadh commented Jun 24, 2023

GET /api/about

{
	"version": "v2.4.0",
	"build": "v2.4.0 (#5b40461 2023-06-24T07:31:53+0000)",
	"go_version": "go1.20.2",
	"go_arch": "amd64",
	"database": {
		"version": "PostgreSQL 13.2 (Debian 13.2-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit",
		"size_mb": 11
	},
	"system": {
		"num_cpu": 8,
		"memory_alloc_mb": 12,
		"memory_from_os_mb": 33
	},
	"host": {
		"os": "Linux",
		"os_release": "6.2.15-200.fc37.x86_64",
		"arch": "x86_64",
		"hostname": "nova"
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants