Skip to content

Instantly share code, notes, and snippets.

@heinrichvk
heinrichvk / lastInsertDate
Created December 2, 2015 09:38
Returns the last insert date for the entity or entity/metric combination in ISO format. Metric is an optional parameter.
lastInsertDate('nurswgvml007', 'cpu_busy')
@heinrichvk
heinrichvk / lastInsertTime
Created December 2, 2015 09:34
Returns the last insert time for the entity or entity/metric combination in milliseconds. Metric is an optional parameter.
lastInsertTime('nurswgvml007', 'cpu_busy')
@heinrichvk
heinrichvk / custom_metrics.java
Created November 30, 2015 13:47
Wrap a single methods using custom metrics - Axibase Time Series Database Spring Storage Driver
@Measured
public List<City> findCities()
@heinrichvk
heinrichvk / collectd.conf
Created November 5, 2015 15:10
Default ATSD collectd configuration.
LoadPlugin aggregation
LoadPlugin contextswitch
LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin entropy
LoadPlugin interface
LoadPlugin load
LoadPlugin logfile
LoadPlugin memory
@heinrichvk
heinrichvk / get_aggregation_log_filter.xml
Last active October 29, 2015 13:56
To use the Aggregation Log Filter in your project, you can simple include its module into the build of your project and configure it.
<dependency>
<groupId>com.axibase</groupId>
<artifactId>aggregation-log-filter</artifactId>
<version>0.3.1</version>
</dependency>
@heinrichvk
heinrichvk / logback-example.xml
Last active October 29, 2015 09:40
Example Aggregation Log Filter Configuration
<!--
~ Copyright 2015 Axibase Corporation or its affiliates. All Rights Reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License").
~ You may not use this file except in compliance with the License.
~ A copy of the License is located at
~
~ https://www.axibase.com/atsd/axibase-apache-2.0.pdf
~
~ or in the "license" file accompanying this file. This file is distributed
@heinrichvk
heinrichvk / logback-sendMessage.xml
Last active October 29, 2015 13:57
sendMessage configuration example
<sendMessage>
<level>WARN</level>
</sendMessage>
<sendMessage>
<level>ERROR</level>
<stackTraceLines>15</stackTraceLines>
<sendMultiplier>3</sendMultiplier>
<resetIntervalSeconds>600</resetIntervalSeconds>
</sendMessage>
@heinrichvk
heinrichvk / logback-sendSeries.xml
Last active October 30, 2015 08:33
sendSeries configuration example
<sendSeries>
<!-- default: 60 -->
<intervalSeconds>60</intervalSeconds>
<!-- 0+ default:1 -->
<repeatCount>5</repeatCount>
<!-- default: 0 -->
<minIntervalThreshold>0</minIntervalThreshold>
<!-- default: 5 -->
<minIntervalSeconds>5</minIntervalSeconds>
</sendSeries>
@heinrichvk
heinrichvk / logback-http-writer.xml
Last active October 30, 2015 08:31
HTTP writer configuration example
<writer class="com.axibase.tsd.collector.writer.HttpStreamingAtsdWriter">
<url>http://atsd_server:8088/api/v1/command/</url>
<username>axibase</username>
<password>*****</password>
</writer>
@heinrichvk
heinrichvk / logback-udp-writer.xml
Last active October 30, 2015 08:30
UDP writer configuration example
<writer class="com.axibase.tsd.collector.writer.UdpAtsdWriter">
<host>atsd_server</host>
<port>8082</port>
</writer>