This site uses cookies to offer you a better browsing experience. Click accept to continue or use cookie settings to activate/deactivate specific types of cookies.
Below is the configuration needed to set up either version of the Elasticsearch reporter. The Reference tab shows all the configurable settings for the Elasticsearch reporter.
cinnamon.chmetrics {
elasticsearch-reporter {# A list of hosts used to connect to elasticsearch.# Must be in the format `[http://][username:password@]hostname:port`.
hosts =["localhost:9200"]# Username and password to be used with all hosts (that don't define credentials directly).# Basic authentication is enabled when both username and password are non-empty.
basic-auth {
username =""
password =""}# Additional fields to be included will all metrics.# Structured config data will be converted to structured JSON.# E.g. the following configuration:# additional-fields {# country = "UK"# environment {# role = "staging"# run = 123456# }# }# will add those fields to every metric document in Elasticsearch.
additional-fields {}# Milliseconds to wait for an established connection, before the next host in the list is tried.
timeout =1000# Defines how many metrics are sent per bulk requests.
bulksize =2500# The name of the index to write to, defaults to metrics.
index ="cinnamon-metrics"# The date format to make sure to rotate to a new index.
index-date-format ="yyyy-MM"# The field name of the timestamp (kibana default is @timestamp).
timestamp-field-name ="@timestamp"# Frequency with which to report metrics.
frequency =10s# JSON files containing index mappings.# Default mapping will be applied if no file is specified.
index-mapping-file-names =[]# Whether to enable detailed debug logging for the Elasticsearch reporter.# This also requires enabling DEBUG in your logger for class:# `com.lightbend.cinnamon.chmetrics.elasticsearch.CinnamonElasticsearchReporter`# AND setting the `akka.loglevel` configuration to DEBUG# Note: only use for troubleshooting.
debug = off
percolation {# MetricFilter to define which metrics should be percolated.
filter ="empty-filter"
empty-filter {
filter-class="com.lightbend.cinnamon.chmetrics.elasticsearch.EmptyFilter"}# Implementation of the Notifier interface, which is executed upon a matching percolator.
notifier ="empty-notifier"
empty-notifier {
notifier-class="com.lightbend.cinnamon.chmetrics.elasticsearch.EmptyNotifier"}}}}
Note
These settings are defined in the reference.conf. You only need to specify any of these settings when you want to override the defaults.
HTTP authentication
To set credentials for Elasticsearch using HTTP Basic Authentication, configure the basic-auth section for the reporter:
The host and application identifiers reported to Elasticsearch are based on the shared Cinnamon metadata, and will default to the local host name and the Java main class. To configure these, use the cinnamon.host and cinnamon.application settings. For example: