contexts.settings.settings-statistics.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sos-statistics Show documentation
Show all versions of sos-statistics Show documentation
52°North SOS - OGC Statistics
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd"> <bean id="statisticsDefinitionGroup" class="org.n52.faroe.SettingDefinitionGroup"> <property name="title" value="Statistics" /> <property name="description" value="On this settings page you can enable and configure the statistics collection module. You can configure the folowwing settings: connection to Elasticsearch, Kibana preconfigured settings and GeoLocation transformation. <br /><br /> You need to have access to an Elasticsearch setup in order to store the collected data about the incoming requests of the client, exceptions and messages and interesting metrics of the response messages. <strong>These settings will be change on the next webapplication startup.</strong> <br /> The Kibana server can connect to the Elasticsearch setup and visualize the innformation. <br />"></property> <property name="order" value="11.0" /> </bean> <bean class="org.n52.faroe.settings.BooleanSettingDefinition"> <property name="key" value="statistics.elasticsearch.is_logging_enabled" /> <property name="title" value="All: Enable statistics collection?" /> <property name="description" value="Enable the statistics module. If unchecked all the below fields won't be processed." /> <property name="order" value="1.0" /> <property name="group" ref="statisticsDefinitionGroup" /> <property name="defaultValue" value="false" /> </bean> <bean class="org.n52.faroe.settings.ChoiceSettingDefinition"> <property name="key" value="statistics.elasticsearch.connection_mode" /> <property name="title" value="Elasticsearch: Connection mode" /> <property name="description" value="Connection mode to the Elasticsearch cluster. The 'Node client' and the 'Transport client' connects to an external Elasticsearch server. The 'Embedded Server' mode starts a local elasticsearch server which stores the data in the WEB-INF/elasticsearch directory it is recommended only for testing purposes (some preconfigured visualizations are not available with embedded server). <br /> For more information between Node and TransportClient mode visit the <a href='https://www.elastic.co/guide/en/elasticsearch/guide/current/_transport_client_versus_node_client.html'> official website </a> <br /> <br /> " /> <property name="order" value="2.0" /> <property name="group" ref="statisticsDefinitionGroup" /> <property name="defaultValue" value="statistics.elasticsearch.connection_mode.node" /> <property name="options"> <map> <entry key="statistics.elasticsearch.connection_mode.transport_client" value="Transport client" /> <entry key="statistics.elasticsearch.connection_mode.embedded_server" value="Embedded server" /> </map> </property> </bean> <bean class="org.n52.faroe.settings.StringSettingDefinition"> <property name="key" value="statistics.elasticsearch.cluster_name" /> <property name="title" value="Elasticsearch: Cluster name" /> <property name="description" value="Where to store your data. About the Elasticsearch <a href='https://www.elastic.co/guide/en/elasticsearch/reference/1.6/glossary.html'>terminology</a>" /> <property name="order" value="3.0" /> <property name="group" ref="statisticsDefinitionGroup" /> <property name="defaultValue" value="elasticsearch" /> </bean> <bean class="org.n52.faroe.settings.StringSettingDefinition"> <property name="key" value="statistics.elasticsearch.cluster_nodes" /> <property name="title" value="Elasticsearch: Address(es) of the cluster" /> <property name="description" value=" It requires a comma seperated list of hosts to use that will act as gossip routers to connect to the cluster. Beware of the port number it MUST be the node-to-node (9300) communication port NOT the HTTP traffic port (9200). The port number can be omitted the defaults will be used. <br /> Examples 1: localhost:9300 Example2: masternode1,masternode2:12345" /> <property name="order" value="4.0" /> <property name="group" ref="statisticsDefinitionGroup" /> <property name="defaultValue" value="localhost" /> </bean> <bean class="org.n52.faroe.settings.StringSettingDefinition"> <property name="key" value="statistics.elasticsearch.index_name" /> <property name="title" value="Elasticsearch: index name" /> <property name="description" value="Where to store your data. About the Elasticsearch <a href='https://www.elastic.co/guide/en/elasticsearch/reference/1.6/glossary.html'>terminology</a>" /> <property name="order" value="5.0" /> <property name="group" ref="statisticsDefinitionGroup" /> <property name="defaultValue" value="ogc-statistics-index" /> </bean> <bean class="org.n52.faroe.settings.StringSettingDefinition"> <property name="key" value="statistics.elasticsearch.type_name" /> <property name="title" value="Elasticsearch: type name" /> <property name="description" value="Where to store your precious data. About the Elasticsearch <a href='https://www.elastic.co/guide/en/elasticsearch/reference/1.6/glossary.html'>terminology</a>" /> <property name="order" value="6.0" /> <property name="group" ref="statisticsDefinitionGroup" /> <property name="defaultValue" value="ogc-type" /> </bean> <bean class="org.n52.faroe.settings.StringSettingDefinition"> <property name="key" value="statistics.elasticsearch.uuid" /> <property name="title" value="Elasticsearch: Unique id of your statistics collections" /> <property name="description" value="If you leave it empty we will generate a new one for you" /> <property name="optional" value="true" /> <property name="order" value="7.0" /> <property name="group" ref="statisticsDefinitionGroup" /> </bean> <bean class="org.n52.faroe.settings.BooleanSettingDefinition"> <property name="key" value="statistics.elasticsearch.kibana_config_enable" /> <property name="title" value="Kibana: Install preconfigured Kibana dashboards/visualizations" /> <property name="description" value="If this checkbox is enabled the preconfigured Kibana settings, visualizations and dashboards will be installed. <strong>The .kibana index will be deleted in Elasticsearch before the import. </strong> If you point your Kibana instance to this Elasticsearch cluster you can use our deployed configurations. The statistics collection MUST be enabled." /> <property name="order" value="9.0" /> <property name="group" ref="statisticsDefinitionGroup" /> <property name="defaultValue" value="false" /> </bean> <bean class="org.n52.faroe.settings.StringSettingDefinition"> <property name="key" value="statistics.elasticsearch.kibana_config_file" /> <property name="title" value="Kibana: external preconfigured dashboards/visualization" /> <property name="description" value="Absolute path to the Kibana configuration file which contains some predefined visualizations and dashboard. If you leave this field blank we import the default settings which came with this server deployment." /> <property name="optional" value="true" /> <property name="order" value="10.0" /> <property name="group" ref="statisticsDefinitionGroup" /> </bean> <!-- GEOLITE --> <bean class="org.n52.faroe.settings.BooleanSettingDefinition"> <property name="key" value="statistics.geoloc.enabled" /> <property name="title" value="GeoLocation: Enable geolocation" /> <property name="description" value="These settings below are for transforming the client's IP address to geolocation format. This feature use an external database from company Maxmind. These databases comes in two flavor 'City' and 'Country' they differ in accuracy and size. These settings will be change on the next webapplication startup. This product includes GeoLite2 data created by MaxMind, available from <a href='http://www.maxmind.com'>http://www.maxmind.com</a>."></property> <property name="order" value="20.0" /> <property name="group" ref="statisticsDefinitionGroup" /> <property name="defaultValue" value="false" /> </bean> <bean class="org.n52.faroe.settings.ChoiceSettingDefinition"> <property name="key" value="statistics.geoloc.db_downloader" /> <property name="title" value="GeoLocation: Downloading type" /> <property name="description" value="If you choose 'AUTO' you MUST Specify the 'Download directory' path. BY 'MANUAL' downloding you MUST point to the extracted database full path location. If you choose 'AUTO' and the 'geolocation transformation' is enabled the databases will be downloaded at the next application startup." /> <property name="order" value="21.0" /> <property name="group" ref="statisticsDefinitionGroup" /> <property name="defaultValue" value="statistics.geoloc.db_downloader.auto" /> <property name="options"> <map> <entry key="statistics.geoloc.db_downloader.auto" value="Auto download" /> <entry key="statistics.geoloc.db_downloader.manual" value="Manual" /> </map> </property> </bean> <bean class="org.n52.faroe.settings.StringSettingDefinition"> <property name="key" value="statistics.geoloc.download_folder" /> <property name="title" value="GeoLocation: Download directory" /> <property name="description" value="If you choose 'AUTO' download this property MUST be specified. Absolute address is needed. The databases will be downloaded to this location so the server must be able to write at this location." /> <property name="order" value="22.0" /> <property name="group" ref="statisticsDefinitionGroup" /> <property name="optional" value="true" /> </bean> <bean class="org.n52.faroe.settings.StringSettingDefinition"> <property name="key" value="statistics.geoloc.city_location" /> <property name="title" value="GeoLocation: City location" /> <property name="description" value="If you choose 'MANUAL' download and the 'GeoLocation database type' is CITY you MUST specify this property. The absolute path of the database is needed." /> <property name="order" value="23.0" /> <property name="group" ref="statisticsDefinitionGroup" /> <property name="optional" value="true" /> </bean> <bean class="org.n52.faroe.settings.StringSettingDefinition"> <property name="key" value="statistics.geoloc.country_location" /> <property name="title" value="GeoLocation: Country location" /> <property name="description" value="If you choose 'MANUAL' download and the 'GeoLocation database type' is COUNTRY you MUST specify this property. The absolute path of the database is needed." /> <property name="order" value="24.0" /> <property name="group" ref="statisticsDefinitionGroup" /> <property name="optional" value="true" /> </bean> <bean class="org.n52.faroe.settings.ChoiceSettingDefinition"> <property name="key" value="statistics.geoloc.db_type" /> <property name="title" value="GeoLocation: GeoLocation database type" /> <property name="description" value="Which database should be used." /> <property name="order" value="25.0" /> <property name="group" ref="statisticsDefinitionGroup" /> <property name="defaultValue" value="geoloc.db_type.city" /> <property name="options"> <map> <entry key="statistics.geoloc.db_type.city" value="City database" /> <entry key="statistics.geoloc.db_type.country" value="Country database" /> </map> </property> </bean> </beans>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy