Skip to content

Instantly share code, notes, and snippets.

View postwait's full-sized avatar

Theo Schlossnagle postwait

View GitHub Profile
diff --git a/src/datasource.ts b/src/datasource.ts
index 25e4427..e5aa5df 100644
--- a/src/datasource.ts
+++ b/src/datasource.ts
@@ -126,12 +126,14 @@ export default class IrondbDatasource {
headers['X-Circonus-App-Name'] = this.appName;
}
if ('standalone' == this.irondbType && !isCaql) {
+ headers['X-Circonus-Account'] = this.accountId;
baseUrl = baseUrl + '/graphite/' + this.accountId;
.SUFFIXES: .c .cpp .lo .mo .xml .xmlh
Q=
ifeq ($(V),)
Q=@
endif
MAKE?=gmake
DISPLACE?=../
CC=@CC@
DISPLACE=../
MODULES=prometheus.$(MODULEEXT)
include ../Makefile
LIBS=-lsnappyc -lnoit
OBJS=prometheus.mo prometheus.pb-c.mo types.pb-c.mo
### Prometheus Ingress Module
prometheus.mo: prometheus.c prometheus.xmlh
prometheus.pb-c.mo: prometheus.pb-c.c
/*
* Copyright (c) 2020, Circonus, Inc.
* All rights reserved.
*/
#ifndef SNOWTH_UTIL_MTEV_MEMORY_SAFE_OBJECT_HPP
#define SNOWTH_UTIL_MTEV_MEMORY_SAFE_OBJECT_HPP
#include <mtev_memory.h>
#!/opt/circonus/bin/luamtev -L+/opt/circonus/share/lua/5.1/?.lua;/opt/circonus/share/lua/5.1/?/init.lua
module(..., package.seeall)
function calc_next(last, period)
if not last then last = mtev.timeval.now() end
local ne = last:seconds() + period
return mtev.timeval.new(math.floor(ne), math.floor((ne - math.floor(ne)) * 1000000))
end