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 / atsd_write_plugin_example_conf
Last active November 25, 2015 08:41
atsd_write_plugin_example_conf
LoadPlugin aggregation
LoadPlugin contextswitch
LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin entropy
LoadPlugin interface
LoadPlugin load
LoadPlugin logfile
LoadPlugin memory
@heinrichvk
heinrichvk / atsd_write_plugin_conf
Last active November 25, 2015 08:40
ATSD Write Plugin Conf
#LoadPlugin write_atsd
#...
#<Plugin write_atsd>
# <Node "atsd">
# Host "atsd_server"
# Port 8081
# Protocol "tcp"
# ShortHostname true
# <Cache "cpu">
# Interval 95
@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 / 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>
@heinrichvk
heinrichvk / logback-tcp-writer.xml
Last active October 30, 2015 08:28
TCP writer configuration example
<writer class="com.axibase.tsd.collector.writer.TcpAtsdWriter">
<host>atsd_server</host>
<port>8081</port>
</writer>