Module ocs_rest_res_prometheus

This library module implements resource handling functions for a REST server in the ocs application.

Copyright © 2022 - 2026 SigScale Global Inc.

References

Description

This library module implements resource handling functions for a REST server in the ocs application.

This module exports metrics for Prometheus server to "scrape".

Function Index

content_types_accepted/0Provide list of resource representations accepted.
content_types_provided/0Provides list of resource representations available.
get_metrics/2Body producing function for GET /metrics requests.

Function Details

content_types_accepted/0

content_types_accepted() -> ContentTypes

Provide list of resource representations accepted.

content_types_provided/0

content_types_provided() -> ContentTypes

Provides list of resource representations available.

get_metrics/2

get_metrics(Query, Headers) -> Result

Body producing function for GET /metrics requests.


Generated by EDoc