Maximum amount of virtual memory available in bytes
process_resident_memory_bytes
Resident memory size in bytes
process_start_time_seconds
Start time of the process since unix epoch in seconds
Prometheus metrics
promhttp_*
Prometheus related counters documented here, provided by the default handler
promhttp_metric_handler_requests_total
Total number of scrapes by HTTP status code.
Labels:
Code (200, 501, ...) - HTTP status code
promhttp_metric_handler_requests_in_flight
Current number of scrapes being served. This function idempotently registers collectors for both metrics with the provided Registerer. It panics if the registration fails. The provided metrics are useful to see how many scrapes hit the monitored target (which could be from different Prometheus servers or other scrapers), and how often they overlap (which would result in more than one scrape in flight at the same time). Note that the scrapes-in-flight gauge will contain the scrape by which it is exposed, while the scrape counter will only get incremented after the scrape is complete (as only then the status code is known). For tracking scrape durations, use the "scrape_duration_seconds" gauge created by the Prometheus server upon each scrape.
Pace Bricks specific metrics
HTTP Request Metrics
pace_api_http_request_total (Counter)
Collects statistics about each microservice endpoint
Use cases:
Track API usage for business partners (ClientID)
Track error rate per service path/method (Golden Signal)
Track API usage for developers (Path and Method) for deprecations
Track request rate (Golden Signal)
Labels:
Code (200, 501, ...) - HTTP status code
Method (GET, PUT, POST, ...) - HTTP method
Path ("/beta/cars", "/beta/cars/{id}", ...) - Path to the endpoint as defined in the OpenAPIv3 spec
Service (car, dtc, ...) - name of the microservice
ClientID (unknown, "XYZ") - OAuth2 ClientID to filter usage per business partner, app, cockpit, ...
Handler simply return the prometheus http handler.
The handler will expose all of the collectors and metrics
that are attached to the prometheus default registry
Package jsonapi implements the json api related metrics documented here: https://lab.jamit.de/pace/web/meta/wikis/concept/metrics#m2-microservice-any-pace-microservice
Package jsonapi implements the json api related metrics documented here: https://lab.jamit.de/pace/web/meta/wikis/concept/metrics#m2-microservice-any-pace-microservice
Click to show internal directories.
Click to hide internal directories.
go.dev uses cookies from Google to deliver and enhance the quality of its services and to
analyze traffic. Learn more.