SigNoz / signoz

SigNoz is an open-source observability platform native to OpenTelemetry with logs, traces and metrics in a single application. An open-source alternative to DataDog, NewRelic, etc. 🔥 🖥. 👉 Open source Application Performance Monitoring (APM) & Observability tool
https://signoz.io
Other
19.51k stars 1.32k forks source link

chore: add k8s job resources #6410

Closed srikanthccv closed 2 weeks ago

srikanthccv commented 3 weeks ago

Summary

Part of https://github.com/SigNoz/signoz/issues/5373


[!IMPORTANT] Adds Kubernetes job metrics handling to the query service with new endpoints, models, and repository for job metrics queries.

  • Behavior:
    • Adds job metrics handling to APIHandler in http_handler.go with new endpoints for job attribute keys, values, and list.
    • Introduces JobsRepo in jobs.go for handling job metrics queries.
  • Models:
    • Adds JobListRequest, JobListResponse, and JobListRecord to model/infra.go.
  • Functions:
    • Adds getParamsForTopJobs() in common.go for job metrics aggregation.
    • Implements job metrics queries in JobsRepo in jobs.go.
  • Misc:
    • Updates infra.go to include job-related API handler functions.

This description was created by Ellipsis for 51df0c46f86f47b4fb8bb45ffc28d84b423a3579. It will automatically update as commits are pushed.

srikanthccv commented 2 weeks ago

I will change the query names for all in another PR.