Documentation ¶
Index ¶
- Constants
- Variables
- func AddShellCommand(name string, fun ShellCommand)
- func Agent()
- func Agitator()
- func AgitatorScheduleConfig()
- func AttrsToQueue(attrs []string) *deque.Deque
- func BUNDGetFromDictOrContext(l *tc.TCExecListener, d *tc.TCDict, key string) interface{}
- func BUNDGetStringFromDictOrContext(l *tc.TCExecListener, d *tc.TCDict, key string) string
- func BUNDLoadStorage(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)
- func BUNDNatsExecScript(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)
- func BUNDNatsSchedule(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)
- func BUNDNatsSendEvent(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)
- func BUNDNatsSendLog(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)
- func BUNDNatsSendMetric(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)
- func BUNDNatsSendMsg(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)
- func BUNDNatsSendSync(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)
- func BUNDNewrelicQuery(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)
- func BUNDPrometheusQuery(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)
- func BUNDQueryStorage(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)
- func BUNDSampleStorage(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)
- func BUNDSendStop(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)
- func BUNDSetLocalConf(l *tc.TCExecListener, name string, q *deque.Deque) (interface{}, error)
- func BundEvalExpression(code string)
- func BundGlobalEvalExpression(code string, args []string, res map[string]interface{})
- func CloseEtcdAgent()
- func CloseInternalStorage()
- func CloseNatsAgent()
- func Config()
- func DisplayEtcdConfig()
- func EtcdDelItems()
- func EtcdGetConfItems()
- func EtcdGetItems() *map[string]string
- func EtcdReturnConfItems() *map[string]string
- func EtcdSetConfItem(key string, value string)
- func EtcdSetItem(key string, value string)
- func Eval()
- func EvalDisplayResult(core *stdlib.BUNDEnv)
- func Fin()
- func HJsonLoadConfig(uri string) *map[string]interface{}
- func IfMSG(msg *NRBundPacket) bool
- func IfSTOP(msg *NRBundPacket) bool
- func IfSYNC(msg *NRBundPacket) bool
- func Init()
- func InitEtcdAgent(otype string)
- func InitInternalStorage()
- func InitNatsAgent()
- func InitNewRelicAgent() bool
- func InitPrometheusAgent() bool
- func InitStoragePipe()
- func InitZabbixAgent() bool
- func IsShellCommand(name string) bool
- func Loop()
- func Main()
- func MakeMsg(msg string) ([]byte, error)
- func MakeScript(uri string, orole string, script []byte, args []string, ...) ([]byte, error)
- func MakeStop(orole string) ([]byte, error)
- func MakeSync(orole string) ([]byte, error)
- func Marshal(uri string, orole string, pktclass string, pktkey string, args []string, ...) ([]byte, error)
- func MarshalPacket(pkt *NRBundPacket) ([]byte, error)
- func NRBundAgent(m *nats.Msg)
- func NRBundExecuteScript(m *nats.Msg)
- func NatsPublishTelemetry(QueueName string, data []byte)
- func NatsRecv(fun nats.MsgHandler)
- func NatsRecvSys(fun nats.MsgHandler)
- func NatsSend(data []byte)
- func NatsSendEvent(data *tc.TCJson) error
- func NatsSendLog(data *tc.TCJson) error
- func NatsSendMetric(data *tc.TCJson) error
- func NatsSendSys(data []byte)
- func NatsSendTelemetry(data *tc.TCJson, uri string, pktkey string) error
- func NatsSendTrace(data *tc.TCJson) error
- func NatsTelemetryRecv(fun nats.MsgHandler)
- func Newrelic_Client()
- func Newrelic_NRQL_Shell()
- func ProcessMetric(m *nats.Msg)
- func ProcessPrometheusMetric(m *nats.Msg)
- func ProcessZabbixMetric(m *nats.Msg)
- func Prometheus_Client()
- func ResetLocalConfig()
- func Run()
- func RunFile(core *stdlib.BUNDEnv, name string)
- func RunShellCommand(name string, core *tc.TCstate)
- func SendNewRelicEvent(data *gabs.Container)
- func SendNewRelicLog(data *gabs.Container)
- func SendNewRelicMetric(data *gabs.Container)
- func SendPrometheusMetric(data *gabs.Container)
- func SendStop()
- func SendSync()
- func SendZabbixEvent(data *gabs.Container)
- func SendZabbixLog(data *gabs.Container)
- func SendZabbixMetric(data *gabs.Container)
- func SetApplicationId(atype string)
- func SetDefaultConfiguration()
- func Shell()
- func ShellCommandLast(core *tc.TCstate) interface{}
- func ShellCommandStack(core *tc.TCstate) interface{}
- func ShellCommandVersion(core *tc.TCstate) interface{}
- func ShellDisplayResult(core *tc.TCstate, show bool)
- func Stop()
- func StorageCatchingDaemon()
- func StoreTelemetry(m *nats.Msg)
- func Submit()
- func Sync()
- func SysQueueHandler(m *nats.Msg)
- func Take()
- func Telemetry()
- func TelemetryAttributesToMap(data *gabs.Container) map[string]interface{}
- func UpdateBundVariablesFromLocalConf(core *stdlib.BUNDEnv)
- func UpdateConfigToEtcd()
- func UpdateLocalConfigFromEtcd()
- func Version()
- func WaitSync() bool
- func Watch()
- func WatchDisplay(m *nats.Msg)
- func Zabbix_Client()
- type NATSSync
- type NRBundPacket
- type ShellCommand
- type TheScript
Constants ¶
View Source
const MAXPIPECAP = 1000000
Variables ¶
View Source
var ApplicationId string
View Source
var ApplicationType string
View Source
var Conf cmap.Cmap
View Source
var DoContinue bool
View Source
var Etcd *clientv3.Client
View Source
var EvtQueueName string
View Source
var HadSync bool
View Source
var LogQueueName string
View Source
var MetricQueueName string
View Source
var NRAPI *nrapi.NRAPI
View Source
var (
NRQL_PROMPT = "[ NRQL ] "
)
View Source
var Nats *nats.Conn
View Source
var NatsCluster string
View Source
var NewRelicConfigured bool
View Source
var (
PROMPT = "[ MBUND ] "
)
View Source
var PrometheusConfigured bool
View Source
var QueueName string
View Source
var Storage tstorage.Storage
View Source
var StorageConfigured bool
View Source
var StoragePipe chan *gabs.Container
View Source
var SysQueueName string
View Source
var TraceQueueName string
View Source
var ZabbixConfigured bool
Functions ¶
func AddShellCommand ¶
func AddShellCommand(name string, fun ShellCommand)
func AgitatorScheduleConfig ¶
func AgitatorScheduleConfig()
func AttrsToQueue ¶
func BUNDGetFromDictOrContext ¶
func BUNDGetFromDictOrContext(l *tc.TCExecListener, d *tc.TCDict, key string) interface{}
func BUNDLoadStorage ¶
func BUNDNatsExecScript ¶
func BUNDNatsSchedule ¶
func BUNDNatsSendEvent ¶
func BUNDNatsSendLog ¶
func BUNDNatsSendMetric ¶
func BUNDNatsSendMsg ¶
func BUNDNatsSendSync ¶
func BUNDNewrelicQuery ¶
func BUNDPrometheusQuery ¶
func BUNDQueryStorage ¶
func BUNDSampleStorage ¶
func BUNDSendStop ¶
func BUNDSetLocalConf ¶
func BundEvalExpression ¶
func BundEvalExpression(code string)
func CloseEtcdAgent ¶
func CloseEtcdAgent()
func CloseInternalStorage ¶
func CloseInternalStorage()
func CloseNatsAgent ¶
func CloseNatsAgent()
func DisplayEtcdConfig ¶
func DisplayEtcdConfig()
func EtcdDelItems ¶
func EtcdDelItems()
func EtcdGetConfItems ¶
func EtcdGetConfItems()
func EtcdGetItems ¶
func EtcdReturnConfItems ¶
func EtcdSetConfItem ¶
func EtcdSetItem ¶
func EvalDisplayResult ¶
func HJsonLoadConfig ¶
func IfMSG ¶
func IfMSG(msg *NRBundPacket) bool
func IfSTOP ¶
func IfSTOP(msg *NRBundPacket) bool
func IfSYNC ¶
func IfSYNC(msg *NRBundPacket) bool
func InitEtcdAgent ¶
func InitEtcdAgent(otype string)
func InitInternalStorage ¶
func InitInternalStorage()
func InitNatsAgent ¶
func InitNatsAgent()
func InitNewRelicAgent ¶
func InitNewRelicAgent() bool
func InitPrometheusAgent ¶
func InitPrometheusAgent() bool
func InitStoragePipe ¶
func InitStoragePipe()
func InitZabbixAgent ¶
func InitZabbixAgent() bool
func IsShellCommand ¶
func MakeScript ¶
func MarshalPacket ¶
func MarshalPacket(pkt *NRBundPacket) ([]byte, error)
func NRBundAgent ¶
func NRBundAgent(m *nats.Msg)
func NRBundExecuteScript ¶
func NRBundExecuteScript(m *nats.Msg)
func NatsPublishTelemetry ¶
func NatsRecvSys ¶
func NatsRecvSys(fun nats.MsgHandler)
func NatsSendEvent ¶
func NatsSendLog ¶
func NatsSendMetric ¶
func NatsSendSys ¶
func NatsSendSys(data []byte)
func NatsSendTrace ¶
func NatsTelemetryRecv ¶
func NatsTelemetryRecv(fun nats.MsgHandler)
func Newrelic_Client ¶
func Newrelic_Client()
func Newrelic_NRQL_Shell ¶
func Newrelic_NRQL_Shell()
func ProcessMetric ¶
func ProcessMetric(m *nats.Msg)
func ProcessPrometheusMetric ¶
func ProcessPrometheusMetric(m *nats.Msg)
func ProcessZabbixMetric ¶
func ProcessZabbixMetric(m *nats.Msg)
func Prometheus_Client ¶
func Prometheus_Client()
func ResetLocalConfig ¶
func ResetLocalConfig()
func RunShellCommand ¶
func SendNewRelicEvent ¶
func SendNewRelicEvent(data *gabs.Container)
func SendNewRelicLog ¶
func SendNewRelicLog(data *gabs.Container)
func SendNewRelicMetric ¶
func SendNewRelicMetric(data *gabs.Container)
func SendPrometheusMetric ¶
func SendPrometheusMetric(data *gabs.Container)
func SendZabbixEvent ¶
func SendZabbixEvent(data *gabs.Container)
func SendZabbixLog ¶
func SendZabbixLog(data *gabs.Container)
func SendZabbixMetric ¶
func SendZabbixMetric(data *gabs.Container)
func SetApplicationId ¶
func SetApplicationId(atype string)
func SetDefaultConfiguration ¶
func SetDefaultConfiguration()
func ShellCommandLast ¶
func ShellCommandStack ¶
func ShellCommandVersion ¶
func ShellDisplayResult ¶
func StorageCatchingDaemon ¶
func StorageCatchingDaemon()
func StoreTelemetry ¶
func StoreTelemetry(m *nats.Msg)
func SysQueueHandler ¶
func SysQueueHandler(m *nats.Msg)
func TelemetryAttributesToMap ¶
func TelemetryAttributesToMap(data *gabs.Container) map[string]interface{}
func UpdateConfigToEtcd ¶
func UpdateConfigToEtcd()
func UpdateLocalConfigFromEtcd ¶
func UpdateLocalConfigFromEtcd()
func WatchDisplay ¶
func WatchDisplay(m *nats.Msg)
func Zabbix_Client ¶
func Zabbix_Client()
Types ¶
type NRBundPacket ¶
type NRBundPacket struct { Id string Uri string PktId string OrigName string OrgRole string PktClass string PktKey string Args []string Res map[string]interface{} Value []byte }
func NewBundPacket ¶
func UnMarshal ¶
func UnMarshal(data []byte) *NRBundPacket
func (*NRBundPacket) ApplicationId ¶
func (msg *NRBundPacket) ApplicationId() string
type ShellCommand ¶
Source Files ¶
- agent.go
- agitator.go
- bund.go
- bundglobalevalexpression.go
- bundglobalevalexpression_attrs.go
- catcher.go
- catcher_bund.go
- catcher_dataframe_bund.go
- config.go
- etcd.go
- etcd_bund.go
- eval.go
- fin.go
- hjson.go
- init.go
- loop.go
- nats.go
- nats_bund.go
- nats_bund_schedule.go
- nats_telemetry.go
- nats_telemetry_bund.go
- newrelic.go
- newrelic_query.go
- packet.go
- prometheus.go
- prometheus_query.go
- run.go
- shell.go
- shell_commands.go
- shell_display_result.go
- stop.go
- stop_bund.go
- storage.go
- submit.go
- sync.go
- take.go
- telemetry.go
- telemetry_lib.go
- version.go
- watch.go
- zabbix.go
Click to show internal directories.
Click to hide internal directories.