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, mregignite, 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, spiStopaddTimeoutObject, 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, unregisterMBeanclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getNodeAttributes, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextInitializedpublic 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.PushMetricsExporterAdapterpublic void spiStart(@Nullable
@Nullable String igniteInstanceName)
throws IgniteSpiException
spiStart in interface IgniteSpispiStart in class org.apache.ignite.internal.processors.metric.PushMetricsExporterAdapterigniteInstanceName - 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.PushMetricsExporterAdapterspiCtx - 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.
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025