public class OpenCensusMetricExporterSpi
extends org.apache.ignite.internal.processors.metric.PushMetricsExporterAdapter
PushMetricsExporterAdapter.period
milliseconds.
PrometheusStatsCollector.createAndRegister();
HTTPServer server = new HTTPServer("localhost", 8888, true);
MetricRegistry
,
GridMetricManager
,
ReadOnlyMetricManager
Modifier and Type | Field and Description |
---|---|
static io.opencensus.tags.TagKey |
CONSISTENT_ID_TAG
Ignite node consistent id.
|
static io.opencensus.tags.TagKey |
INSTANCE_NAME_TAG
Ignite instance name.
|
static io.opencensus.tags.TagMetadata |
METADATA
Tags metadata.
|
static io.opencensus.tags.TagKey |
NODE_ID_TAG
Ignite node id.
|
DFLT_EXPORT_PERIOD, filter, mreg
ignite, igniteInstanceName, log
Constructor and Description |
---|
OpenCensusMetricExporterSpi() |
Modifier and Type | Method and Description |
---|---|
void |
export()
Callback to do the export of metrics info.
|
protected void |
onContextInitialized0(IgniteSpiContext spiCtx)
Method to be called in the end of onContextInitialized method.
|
void |
setSendConsistentId(boolean sendConsistentId)
If
true then CONSISTENT_ID_TAG will be added to each exported measure. |
void |
setSendInstanceName(boolean sendInstanceName)
If
true then INSTANCE_NAME_TAG will be added to each exported measure. |
void |
setSendNodeId(boolean sendNodeId)
If
true then NODE_ID_TAG will be added to each exported measure. |
void |
spiStart(@Nullable String igniteInstanceName)
This method is called to start SPI.
|
getPeriod, setExportFilter, setMetricRegistry, setPeriod, spiStop
addTimeoutObject, assertParameter, checkConfigurationConsistency0, clientFailureDetectionTimeout, configInfo, createSpiAttributeName, failureDetectionTimeout, failureDetectionTimeoutEnabled, failureDetectionTimeoutEnabled, getConsistentAttributeNames, getExceptionRegistry, getLocalNode, getName, getNodeAttributes, getSpiContext, ignite, initFailureDetectionTimeout, injectables, injectResources, isNodeStopping, onBeforeStart, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextDestroyed0, onContextInitialized, registerMBean, removeTimeoutObject, setName, started, startInfo, startStopwatch, stopInfo, unregisterMBean
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getNodeAttributes, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextInitialized
public static final io.opencensus.tags.TagKey INSTANCE_NAME_TAG
public static final io.opencensus.tags.TagKey NODE_ID_TAG
public static final io.opencensus.tags.TagKey CONSISTENT_ID_TAG
public static final io.opencensus.tags.TagMetadata METADATA
public void export()
PushMetricsExporterAdapter.getPeriod()
millisecond.export
in class org.apache.ignite.internal.processors.metric.PushMetricsExporterAdapter
public void spiStart(@Nullable @Nullable String igniteInstanceName) throws IgniteSpiException
spiStart
in interface IgniteSpi
spiStart
in class org.apache.ignite.internal.processors.metric.PushMetricsExporterAdapter
igniteInstanceName
- Name of Ignite instance this SPI is being started for
(null
for default Ignite instance).IgniteSpiException
- Throws in case of any error during SPI start.protected void onContextInitialized0(IgniteSpiContext spiCtx) throws IgniteSpiException
onContextInitialized0
in class org.apache.ignite.internal.processors.metric.PushMetricsExporterAdapter
spiCtx
- SPI context.IgniteSpiException
- In case of errors.public void setSendInstanceName(boolean sendInstanceName)
true
then INSTANCE_NAME_TAG
will be added to each exported measure.sendInstanceName
- Flag value.public void setSendNodeId(boolean sendNodeId)
true
then NODE_ID_TAG
will be added to each exported measure.sendNodeId
- Flag value.public void setSendConsistentId(boolean sendConsistentId)
true
then CONSISTENT_ID_TAG
will be added to each exported measure.sendConsistentId
- Flag value.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023