public class OpenCensusMetricExporterSpi extends 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() |
protected void |
onContextInitialized0(IgniteSpiContext spiCtx) |
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) |
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()
export in class PushMetricsExporterAdapterpublic void spiStart(@Nullable
@Nullable String igniteInstanceName)
throws IgniteSpiException
spiStart in interface IgniteSpispiStart in class PushMetricsExporterAdapterIgniteSpiExceptionprotected void onContextInitialized0(IgniteSpiContext spiCtx) throws IgniteSpiException
onContextInitialized0 in class PushMetricsExporterAdapterIgniteSpiExceptionpublic 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. 8.9.30 Release Date : February 17 2026