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

Development plan #1

Open
rootwarp opened this issue Oct 31, 2024 · 0 comments
Open

Development plan #1

rootwarp opened this issue Oct 31, 2024 · 0 comments
Assignees
Labels

Comments

@rootwarp
Copy link
Member

prometheus-proxy

Objectives

Collect metrics from original service and filer the originals

  • whitelisting
  • blacklisting

Call some json rpc service and parse the response into prometheus metrics

What do I need to get this objetive?

  • url of prometheus service.
  • expected response code, in most cases, it will be 200.

Plan A

  • Should support GET / POST method.
  • Header required
  • Body required for POST method.
  • json structure of response body. -> how to parse this?
    • Get json schema data -> create Go struct by using reflection.
  • mapping definition to parse json response int prometheus metrics.
    • choose the field name of the schema
    • define the name of prometheus metric.

Plan B

  • Plan A is too complex.
@rootwarp rootwarp self-assigned this Oct 31, 2024
@rootwarp rootwarp added the plan label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant