mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 23:15:57 +03:00
[PR #1465] WIP: add initial support for prometheus metrics. #3813
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#3813
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amidaware/tacticalrmm/pull/1465
Author: @ykuksenko
Created: 3/29/2023
Status: 🔄 Open
Base:
develop← Head:prom_metrics📝 Commits (1)
15c155bfeat: add initial prometheus metrics support📊 Changes
3 files changed (+309 additions, -48 deletions)
View changed files
📝
api/tacticalrmm/core/decorators.py(+25 -13)📝
api/tacticalrmm/core/tests.py(+139 -0)📝
api/tacticalrmm/core/views.py(+145 -35)📄 Description
Could someone look over this and let me know if this okay for adding initial support for Prometheus metrics?
/metricsis used as that is traditional for Prometheus environments. I can change it back to/core/metricsif required.@csrf_exemptis actually needed or wanted here; the monitoring endpoint made it seem so, to me.Use instructions:
MON_TOKENas in Tips and Tricks.curl -s -H "Authorization: Bearer $MON_TOKEN" https://api.trmm.example.com/metricsedit: updated instructions to share json status endpoint. instructions also in commit message now.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.