Metrics exporters are responsible for passing the recorded metrics to a metric storage. They can implement a push approach where metrics are sent to a collector or a pull approach where metrics are scraped by an external system.
If an exporter supports run-time updates it means that it can be enabled/disabled during the run-time or that any property related to the exporter can be changed. This way you can, for example, change the endpoint where exporter pushes the metrics without a need to restart the application. In order to use run-time updates, you must enable one of the externalized configuration methods that support dynamic updates.
inspectIT Ocelot current supports the following OpenCensus metrics exporters:
|Exporter||Supports run-time updates||Push / Pull||Enabled by default|
Prometheus exporter exposes the metrics in Prometheus format and is the default metrics exporter set up by inspectIT Ocelot.
When enabled, inspectIT starts a Prometheus HTTP server in parallel with your application.
The server is by default started on the port
8888 and metrics can then be accessed by visiting http://localhost:8888/metrics.
|If true, the inspectIT Ocelot agent will try to start the Prometheus metrics exporter and Prometheus HTTP server.|
|The hostname or network address to which the Prometheus HTTP server should bind.|
|The port the Prometheus HTTP server should use.|
Don't forget to check the official OpenCensus Prometheus exporter documentation.
OpenCensus Agent Metrics Exporter
Metrics can be additionally exported to the OpenCensus Agent.
When enabled, all metrics are sent via gRCP to the OpenCensus Agent. By default, the exporter is enabled, but the agent address is set to
|If true, the agent will try to start the OpenCensus Agent Metrics exporter.|
|Address of the open-census agent (e.g. localhost:1234).|
|If true, SSL is disabled.|
|refers to ||The service-name which will be used to publish the metrics.|
|The time at which the exporter tries to reconnect to the OpenCensus agent.|
|refers to ||The export interval of the metrics.|
Don't forget to check the official OpenCensus Agent exporter documentation.