OpenTelemetry SDK
Preparing search index...
@opentelemetry/exporter-prometheus
PrometheusSerializer
Class PrometheusSerializer
Index
Constructors
constructor
Methods
_
serialize
Resource
serialize
Constructors
constructor
new
PrometheusSerializer
(
prefix
?:
string
,
appendTimestamp
?:
boolean
,
withResourceConstantLabels
?:
RegExp
,
withoutTargetInfo
?:
boolean
,
withoutScopeInfo
?:
boolean
,
)
:
PrometheusSerializer
Parameters
Optional
prefix
:
string
appendTimestamp
:
boolean
= false
Optional
withResourceConstantLabels
:
RegExp
Optional
withoutTargetInfo
:
boolean
Optional
withoutScopeInfo
:
boolean
Returns
PrometheusSerializer
Methods
Protected
_
serialize
Resource
_serializeResource
(
resource
:
resources
.
Resource
)
:
string
Parameters
resource
:
resources
.
Resource
Returns
string
serialize
serialize
(
resourceMetrics
:
metrics
.
ResourceMetrics
)
:
string
Parameters
resourceMetrics
:
metrics
.
ResourceMetrics
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
_
serialize
Resource
serialize
OpenTelemetry SDK
Loading...