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] Implement metrics ingestion endpoint #63

Open
hayk96 opened this issue Dec 20, 2024 · 0 comments
Open

[API] Implement metrics ingestion endpoint #63

hayk96 opened this issue Dec 20, 2024 · 0 comments
Labels
feature request Suggest new feature

Comments

@hayk96
Copy link
Owner

hayk96 commented Dec 20, 2024

Is your feature request related to a problem? Please describe.
Create a new endpoint for metrics ingestion. The idea is to allow users to easily write their custom data into Prometheus, for example, by making a POST request with a defined JSON body that will be converted into Prometheus metrics on the fly.

Describe the solution you'd like
Required a new API for metrics ingestion. Once the server receives JSON data it should implement a Remote Write request.

Describe alternatives you've considered
N/A

Additional context

input data JSON example:

{
  "__name__": "my_custom_metric",
  "label_1": "MyCustomLabel-1",
  "label_2": "MyCustomLabel-2",
  "label_N": "MyCustomLabel-N",
  "__value__": 100
}

output time-series example

my_custom_metric{"label_1": "MyCustomLabel-1", "label_2": "MyCustomLabel-2", "label_N": "MyCustomLabel-N"} 100 @ 1734732148.316
@hayk96 hayk96 added the feature request Suggest new feature label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Suggest new feature
Projects
None yet
Development

No branches or pull requests

1 participant