sentilo/sentilo

View on GitHub
sentilo-agent-historian/src/main/resources/properties/sentilo-agent-historian-opentsdb.conf

Summary

Maintainability
Test Coverage
#-------------------------------------------------------------------------------
# Sentilo
#  
# Original version 1.4 Copyright (C) 2013 Institut Municipal d’Informàtica, Ajuntament de Barcelona.
# Modified by Opentrends adding support for multitenant deployments and SaaS. Modifications on version 1.5 Copyright (C) 2015 Opentrends Solucions i Sistemes, S.L.
# 
#   
# This program is licensed and may be used, modified and redistributed under the
# terms  of the European Public License (EUPL), either version 1.1 or (at your 
# option) any later version as soon as they are approved by the European 
# Commission.
#   
# Alternatively, you may redistribute and/or modify this program under the terms
# of the GNU Lesser General Public License as published by the Free Software 
# Foundation; either  version 3 of the License, or (at your option) any later 
# version. 
#   
# Unless required by applicable law or agreed to in writing, software distributed
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 
# CONDITIONS OF ANY KIND, either express or implied. 
#   
# See the licenses for the specific language governing permissions, limitations 
# and more details.
#   
# You should have received a copy of the EUPL1.1 and the LGPLv3 licenses along 
# with this program; if not, you may find them at: 
#   
#   https://joinup.ec.europa.eu/software/page/eupl/licence-eupl
#   http://www.gnu.org/licenses/ 
#   and 
#   https://www.gnu.org/licenses/lgpl.txt
#-------------------------------------------------------------------------------
#####################################################################################
# This file allows configuring the monitor agent properties such as the connection to
# opentsdb and the pool of internal workers, and events to which to be subscribed. 
#####################################################################################

# Endpoint for opentsdb
opentsdb.url=http://127.0.0.1:4242

# If set to true, metric name will have for of i.e. data.sensorType
# If set to false, metric name will result in data.providerName.sensorName
metrics.fromSensorType=true

# If set to true, OpenTSDB's datapoint will have the timestamp of the 'publishedAt' property of the event.
# If set to false, the datapoint will use the 'time' property of the event message. 
metrics.usePublishedAtTimestamp=false

sentilo.mongodb.application-name=sentilo-agent-historian-opentsdb
#######################################################################################################################################
# This property allows configuring which Sentilo's events must be persisted in OpenTSDB
# 
#    subscriptions=topic1,topic2,...,topicN
#
# where each topic must follow the following pattern: /{eventType}/{resourceId}, with:
#  + eventType must be one of the following values: data, alarm or order
#  + resourceId could be any of the following listed below:
#         - *, if you want to export all the events of this type
#         - providerId/*, if you want to export all the events related to the provider {providerId}
#         - providerId/sensorId if you only want to export events related to the sensor {sensorId} from the provider {providerId}
#         - alertId if you only want to export alarms associated with alert {alertId}.    
#######################################################################################################################################
subscriptions=/alarm/*,/data/*,/order/*