@nsshunt/stsobservability 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6529,6 +6529,431 @@ EstablishSocketConnect_fn = function(name, onConnectCallBack, socketEventsCallBa
|
|
|
6529
6529
|
}
|
|
6530
6530
|
});
|
|
6531
6531
|
};
|
|
6532
|
+
var influxDBDataType = /* @__PURE__ */ ((influxDBDataType2) => {
|
|
6533
|
+
influxDBDataType2["intField"] = "intField";
|
|
6534
|
+
influxDBDataType2["floatField"] = "floatField";
|
|
6535
|
+
influxDBDataType2["stringField"] = "stringField";
|
|
6536
|
+
return influxDBDataType2;
|
|
6537
|
+
})(influxDBDataType || {});
|
|
6538
|
+
const globalServiceDefinitions = {
|
|
6539
|
+
coreFieldList: [
|
|
6540
|
+
{
|
|
6541
|
+
fieldName: "requestCount",
|
|
6542
|
+
gauge: Gauge.REQUEST_COUNT_GAUGE,
|
|
6543
|
+
instrumentProperty: "val",
|
|
6544
|
+
dataType: "number",
|
|
6545
|
+
influxdbDataType: "intField"
|
|
6546
|
+
/* intField */
|
|
6547
|
+
},
|
|
6548
|
+
{
|
|
6549
|
+
fieldName: "errorCount",
|
|
6550
|
+
gauge: Gauge.ERROR_COUNT_GAUGE,
|
|
6551
|
+
instrumentProperty: "val",
|
|
6552
|
+
dataType: "number",
|
|
6553
|
+
influxdbDataType: "intField"
|
|
6554
|
+
/* intField */
|
|
6555
|
+
},
|
|
6556
|
+
{
|
|
6557
|
+
fieldName: "retryCount",
|
|
6558
|
+
gauge: Gauge.RETRY_COUNT_GAUGE,
|
|
6559
|
+
instrumentProperty: "val",
|
|
6560
|
+
dataType: "number",
|
|
6561
|
+
influxdbDataType: "intField"
|
|
6562
|
+
/* intField */
|
|
6563
|
+
},
|
|
6564
|
+
{
|
|
6565
|
+
fieldName: "authenticationCount",
|
|
6566
|
+
gauge: Gauge.AUTHENTICATION_COUNT_GAUGE,
|
|
6567
|
+
instrumentProperty: "val",
|
|
6568
|
+
dataType: "number",
|
|
6569
|
+
influxdbDataType: "intField"
|
|
6570
|
+
/* intField */
|
|
6571
|
+
},
|
|
6572
|
+
{
|
|
6573
|
+
fieldName: "authenticationErrorCount",
|
|
6574
|
+
gauge: Gauge.AUTHENTICATION_ERROR_COUNT_GAUGE,
|
|
6575
|
+
instrumentProperty: "val",
|
|
6576
|
+
dataType: "number",
|
|
6577
|
+
influxdbDataType: "intField"
|
|
6578
|
+
/* intField */
|
|
6579
|
+
},
|
|
6580
|
+
{
|
|
6581
|
+
fieldName: "authenticationRetryCount",
|
|
6582
|
+
gauge: Gauge.AUTHENTICATION_RETRY_COUNT_GAUGE,
|
|
6583
|
+
instrumentProperty: "val",
|
|
6584
|
+
dataType: "number",
|
|
6585
|
+
influxdbDataType: "intField"
|
|
6586
|
+
/* intField */
|
|
6587
|
+
},
|
|
6588
|
+
{
|
|
6589
|
+
fieldName: "velocity",
|
|
6590
|
+
gauge: Gauge.VELOCITY_GAUGE,
|
|
6591
|
+
instrumentProperty: "va",
|
|
6592
|
+
dataType: "number",
|
|
6593
|
+
influxdbDataType: "floatField"
|
|
6594
|
+
/* floatField */
|
|
6595
|
+
},
|
|
6596
|
+
{
|
|
6597
|
+
fieldName: "activeRequestCount",
|
|
6598
|
+
gauge: Gauge.ACTIVE_REQUEST_GAUGE,
|
|
6599
|
+
instrumentProperty: "val",
|
|
6600
|
+
dataType: "number",
|
|
6601
|
+
timeSeriesIndex: true,
|
|
6602
|
+
quantile: true,
|
|
6603
|
+
influxdbDataType: "intField"
|
|
6604
|
+
/* intField */
|
|
6605
|
+
},
|
|
6606
|
+
{
|
|
6607
|
+
fieldName: "coreCount",
|
|
6608
|
+
gauge: Gauge.CORE_COUNT_GAUGE,
|
|
6609
|
+
instrumentProperty: "val",
|
|
6610
|
+
dataType: "number",
|
|
6611
|
+
influxdbDataType: "intField"
|
|
6612
|
+
/* intField */
|
|
6613
|
+
},
|
|
6614
|
+
{
|
|
6615
|
+
fieldName: "rx",
|
|
6616
|
+
gauge: Gauge.NETWORK_RX_GAUGE,
|
|
6617
|
+
instrumentProperty: "va",
|
|
6618
|
+
dataType: "number",
|
|
6619
|
+
influxdbDataType: "floatField"
|
|
6620
|
+
/* floatField */
|
|
6621
|
+
},
|
|
6622
|
+
{
|
|
6623
|
+
fieldName: "tx",
|
|
6624
|
+
gauge: Gauge.NETWORK_TX_GAUGE,
|
|
6625
|
+
instrumentProperty: "va",
|
|
6626
|
+
dataType: "number",
|
|
6627
|
+
influxdbDataType: "floatField"
|
|
6628
|
+
/* floatField */
|
|
6629
|
+
},
|
|
6630
|
+
{
|
|
6631
|
+
fieldName: "timer",
|
|
6632
|
+
gauge: Gauge.TIMER_GAUGE,
|
|
6633
|
+
instrumentProperty: "val",
|
|
6634
|
+
dataType: "number",
|
|
6635
|
+
influxdbDataType: "floatField"
|
|
6636
|
+
/* floatField */
|
|
6637
|
+
},
|
|
6638
|
+
{
|
|
6639
|
+
fieldName: "duration",
|
|
6640
|
+
gauge: Gauge.DURATION_GAUGE,
|
|
6641
|
+
instrumentProperty: "val",
|
|
6642
|
+
dataType: "number",
|
|
6643
|
+
timeSeriesIndex: true,
|
|
6644
|
+
quantile: true,
|
|
6645
|
+
influxdbDataType: "floatField",
|
|
6646
|
+
histo: [
|
|
6647
|
+
{ label: "B10", bucketLimit: 10 },
|
|
6648
|
+
{ label: "B20", bucketLimit: 20 },
|
|
6649
|
+
{ label: "B50", bucketLimit: 50 },
|
|
6650
|
+
{ label: "B100", bucketLimit: 100 },
|
|
6651
|
+
{ label: "B1000", bucketLimit: 1e3 },
|
|
6652
|
+
{ label: "B50000", bucketLimit: 5e4 },
|
|
6653
|
+
{ label: "BInfinity", bucketLimit: -1 }
|
|
6654
|
+
]
|
|
6655
|
+
},
|
|
6656
|
+
{
|
|
6657
|
+
fieldName: "latency",
|
|
6658
|
+
gauge: Gauge.LATENCY_GAUGE,
|
|
6659
|
+
instrumentProperty: "val",
|
|
6660
|
+
dataType: "number",
|
|
6661
|
+
timeSeriesIndex: true,
|
|
6662
|
+
quantile: true,
|
|
6663
|
+
influxdbDataType: "floatField",
|
|
6664
|
+
histo: [
|
|
6665
|
+
{ label: "B10", bucketLimit: 10 },
|
|
6666
|
+
{ label: "B20", bucketLimit: 20 },
|
|
6667
|
+
{ label: "B50", bucketLimit: 50 },
|
|
6668
|
+
{ label: "B100", bucketLimit: 100 },
|
|
6669
|
+
{ label: "B1000", bucketLimit: 1e3 },
|
|
6670
|
+
{ label: "B50000", bucketLimit: 5e4 },
|
|
6671
|
+
{ label: "BInfinity", bucketLimit: -1 }
|
|
6672
|
+
]
|
|
6673
|
+
}
|
|
6674
|
+
],
|
|
6675
|
+
services: {
|
|
6676
|
+
["service"]: {
|
|
6677
|
+
influxDBContextTags: [
|
|
6678
|
+
"serviceId",
|
|
6679
|
+
"serviceName",
|
|
6680
|
+
"serviceVersion",
|
|
6681
|
+
"serviceInstanceId",
|
|
6682
|
+
"serviceInstanceProcessId",
|
|
6683
|
+
"hostName",
|
|
6684
|
+
"pid",
|
|
6685
|
+
"ppid"
|
|
6686
|
+
],
|
|
6687
|
+
redisIndexPrefixDefinitions: {
|
|
6688
|
+
timeSeriesIndex: "idx:serviceIndexTimeSeries",
|
|
6689
|
+
timeSeriesPrefix: "/serviceTimeSeries:",
|
|
6690
|
+
instantIndex: "idx:serviceIndexInstant",
|
|
6691
|
+
instantPrefix: "/serviceInstant:"
|
|
6692
|
+
},
|
|
6693
|
+
fieldList: [
|
|
6694
|
+
{
|
|
6695
|
+
fieldName: "cpu",
|
|
6696
|
+
gauge: Gauge.CPU_LOAD_GAUGE,
|
|
6697
|
+
instrumentProperty: "val",
|
|
6698
|
+
dataType: "number",
|
|
6699
|
+
timeSeriesIndex: true,
|
|
6700
|
+
quantile: true,
|
|
6701
|
+
influxdbDataType: "floatField"
|
|
6702
|
+
/* floatField */
|
|
6703
|
+
},
|
|
6704
|
+
{
|
|
6705
|
+
fieldName: "connectionCount",
|
|
6706
|
+
gauge: Gauge.CONNECTION_COUNT_GAUGE,
|
|
6707
|
+
instrumentProperty: "val",
|
|
6708
|
+
dataType: "number",
|
|
6709
|
+
timeSeriesIndex: true,
|
|
6710
|
+
quantile: true,
|
|
6711
|
+
influxdbDataType: "intField"
|
|
6712
|
+
/* intField */
|
|
6713
|
+
},
|
|
6714
|
+
{
|
|
6715
|
+
fieldName: "connectionPoolCount",
|
|
6716
|
+
gauge: Gauge.CONNECTION_POOL_TOTAL_GAUGE,
|
|
6717
|
+
instrumentProperty: "val",
|
|
6718
|
+
dataType: "number",
|
|
6719
|
+
influxdbDataType: "intField"
|
|
6720
|
+
/* intField */
|
|
6721
|
+
},
|
|
6722
|
+
{
|
|
6723
|
+
fieldName: "connectionIdleCount",
|
|
6724
|
+
gauge: Gauge.CONNECTION_POOL_IDLE_GAUGE,
|
|
6725
|
+
instrumentProperty: "val",
|
|
6726
|
+
dataType: "number",
|
|
6727
|
+
influxdbDataType: "intField"
|
|
6728
|
+
/* intField */
|
|
6729
|
+
},
|
|
6730
|
+
{
|
|
6731
|
+
fieldName: "connectionWaitingCount",
|
|
6732
|
+
gauge: Gauge.CONNECTION_POOL_WAITING_GAUGE,
|
|
6733
|
+
instrumentProperty: "val",
|
|
6734
|
+
dataType: "number",
|
|
6735
|
+
influxdbDataType: "intField"
|
|
6736
|
+
/* intField */
|
|
6737
|
+
},
|
|
6738
|
+
{
|
|
6739
|
+
fieldName: "systemcpu",
|
|
6740
|
+
gauge: Gauge.CPU_SYSTEM_LOAD_GAUGE,
|
|
6741
|
+
instrumentProperty: "val",
|
|
6742
|
+
dataType: "number",
|
|
6743
|
+
timeSeriesIndex: true,
|
|
6744
|
+
quantile: true,
|
|
6745
|
+
influxdbDataType: "floatField"
|
|
6746
|
+
/* floatField */
|
|
6747
|
+
},
|
|
6748
|
+
{
|
|
6749
|
+
fieldName: "memory",
|
|
6750
|
+
gauge: Gauge.OBJECT_GAUGE,
|
|
6751
|
+
instrumentProperty: "val",
|
|
6752
|
+
dataType: "JSON",
|
|
6753
|
+
influxdbDataType: "stringField"
|
|
6754
|
+
/* stringField */
|
|
6755
|
+
}
|
|
6756
|
+
],
|
|
6757
|
+
GetPathFromContext(context) {
|
|
6758
|
+
const { serviceId, serviceInstanceId, serviceInstanceProcessId } = context;
|
|
6759
|
+
return `/${serviceId}/${serviceInstanceId}/${serviceInstanceProcessId}`;
|
|
6760
|
+
},
|
|
6761
|
+
redisQueryFilters: {
|
|
6762
|
+
level1ContextField: "serviceType",
|
|
6763
|
+
level2ContextField: "appid",
|
|
6764
|
+
level3ContextField: "appinstanceid"
|
|
6765
|
+
},
|
|
6766
|
+
subscriptionTopics: [
|
|
6767
|
+
{
|
|
6768
|
+
subscriptionTopic: SubscriptionTopic.AllServicesCombined,
|
|
6769
|
+
route: "/metrics"
|
|
6770
|
+
},
|
|
6771
|
+
{
|
|
6772
|
+
subscriptionTopic: SubscriptionTopic.Services,
|
|
6773
|
+
route: "/metrics/services"
|
|
6774
|
+
},
|
|
6775
|
+
{
|
|
6776
|
+
subscriptionTopic: SubscriptionTopic.ServiceInstances,
|
|
6777
|
+
route: "/metrics/services/:key"
|
|
6778
|
+
},
|
|
6779
|
+
{
|
|
6780
|
+
subscriptionTopic: SubscriptionTopic.ServiceInstance,
|
|
6781
|
+
route: "/metrics/services/:key/:subkey"
|
|
6782
|
+
}
|
|
6783
|
+
]
|
|
6784
|
+
},
|
|
6785
|
+
["agent"]: {
|
|
6786
|
+
influxDBContextTags: [
|
|
6787
|
+
"id",
|
|
6788
|
+
"hostName",
|
|
6789
|
+
"agentName",
|
|
6790
|
+
"threadId",
|
|
6791
|
+
"asyncRunnerId"
|
|
6792
|
+
],
|
|
6793
|
+
redisIndexPrefixDefinitions: {
|
|
6794
|
+
timeSeriesIndex: "idx:agentIndexTimeSeries",
|
|
6795
|
+
timeSeriesPrefix: "/agentTimeSeries:",
|
|
6796
|
+
instantIndex: "idx:agentIndexInstant",
|
|
6797
|
+
instantPrefix: "/agentInstant:"
|
|
6798
|
+
},
|
|
6799
|
+
fieldList: [
|
|
6800
|
+
{
|
|
6801
|
+
fieldName: "childCount",
|
|
6802
|
+
gauge: Gauge.CHILD_COUNT,
|
|
6803
|
+
instrumentProperty: "val",
|
|
6804
|
+
dataType: "number",
|
|
6805
|
+
influxdbDataType: "intField"
|
|
6806
|
+
/* intField */
|
|
6807
|
+
}
|
|
6808
|
+
],
|
|
6809
|
+
//@@ need type declare in appframework ?? agent does not use appframework ... perhaps stspublisher
|
|
6810
|
+
GetPathFromContext(context) {
|
|
6811
|
+
const { agentName, threadId, asyncRunnerId } = context;
|
|
6812
|
+
return `/${agentName}/${threadId}/${asyncRunnerId}`;
|
|
6813
|
+
},
|
|
6814
|
+
redisQueryFilters: {
|
|
6815
|
+
level1ContextField: "serviceType",
|
|
6816
|
+
level2ContextField: "appid",
|
|
6817
|
+
//@@ this should be named something else
|
|
6818
|
+
level3ContextField: "appinstanceid"
|
|
6819
|
+
//@@ this should be named something else
|
|
6820
|
+
},
|
|
6821
|
+
subscriptionTopics: [
|
|
6822
|
+
{
|
|
6823
|
+
subscriptionTopic: SubscriptionTopic.AllAgentsCombined,
|
|
6824
|
+
route: "/metrics"
|
|
6825
|
+
},
|
|
6826
|
+
{
|
|
6827
|
+
subscriptionTopic: SubscriptionTopic.Agents,
|
|
6828
|
+
route: "/metrics/agents"
|
|
6829
|
+
},
|
|
6830
|
+
{
|
|
6831
|
+
subscriptionTopic: SubscriptionTopic.AgentWorkers,
|
|
6832
|
+
route: "/metrics/agents/:key"
|
|
6833
|
+
},
|
|
6834
|
+
{
|
|
6835
|
+
subscriptionTopic: SubscriptionTopic.AgentWorker,
|
|
6836
|
+
route: "/metrics/agents/:key/:subkey"
|
|
6837
|
+
}
|
|
6838
|
+
]
|
|
6839
|
+
},
|
|
6840
|
+
["lambda"]: {
|
|
6841
|
+
influxDBContextTags: [
|
|
6842
|
+
"technology",
|
|
6843
|
+
"subTechnology",
|
|
6844
|
+
"lambdaFunctionName",
|
|
6845
|
+
"lambdaInstance",
|
|
6846
|
+
"hostName",
|
|
6847
|
+
"processId",
|
|
6848
|
+
"parentProcessId",
|
|
6849
|
+
"useCase",
|
|
6850
|
+
"pattern"
|
|
6851
|
+
],
|
|
6852
|
+
redisIndexPrefixDefinitions: {
|
|
6853
|
+
timeSeriesIndex: "idx:lambdaIndexTimeSeries",
|
|
6854
|
+
timeSeriesPrefix: "/lambdaTimeSeries:",
|
|
6855
|
+
instantIndex: "idx:lambdaIndexInstant",
|
|
6856
|
+
instantPrefix: "/lambdaInstant:"
|
|
6857
|
+
},
|
|
6858
|
+
fieldList: [
|
|
6859
|
+
{
|
|
6860
|
+
fieldName: "cpu",
|
|
6861
|
+
gauge: Gauge.CPU_LOAD_GAUGE,
|
|
6862
|
+
instrumentProperty: "val",
|
|
6863
|
+
dataType: "number",
|
|
6864
|
+
timeSeriesIndex: true,
|
|
6865
|
+
quantile: true,
|
|
6866
|
+
influxdbDataType: "floatField"
|
|
6867
|
+
/* floatField */
|
|
6868
|
+
},
|
|
6869
|
+
{
|
|
6870
|
+
fieldName: "connectionCount",
|
|
6871
|
+
gauge: Gauge.CONNECTION_COUNT_GAUGE,
|
|
6872
|
+
instrumentProperty: "val",
|
|
6873
|
+
dataType: "number",
|
|
6874
|
+
timeSeriesIndex: true,
|
|
6875
|
+
quantile: true,
|
|
6876
|
+
influxdbDataType: "intField"
|
|
6877
|
+
/* intField */
|
|
6878
|
+
},
|
|
6879
|
+
{
|
|
6880
|
+
fieldName: "connectionPoolCount",
|
|
6881
|
+
gauge: Gauge.CONNECTION_POOL_TOTAL_GAUGE,
|
|
6882
|
+
instrumentProperty: "val",
|
|
6883
|
+
dataType: "number",
|
|
6884
|
+
influxdbDataType: "intField"
|
|
6885
|
+
/* intField */
|
|
6886
|
+
},
|
|
6887
|
+
{
|
|
6888
|
+
fieldName: "connectionIdleCount",
|
|
6889
|
+
gauge: Gauge.CONNECTION_POOL_IDLE_GAUGE,
|
|
6890
|
+
instrumentProperty: "val",
|
|
6891
|
+
dataType: "number",
|
|
6892
|
+
influxdbDataType: "intField"
|
|
6893
|
+
/* intField */
|
|
6894
|
+
},
|
|
6895
|
+
{
|
|
6896
|
+
fieldName: "connectionWaitingCount",
|
|
6897
|
+
gauge: Gauge.CONNECTION_POOL_WAITING_GAUGE,
|
|
6898
|
+
instrumentProperty: "val",
|
|
6899
|
+
dataType: "number",
|
|
6900
|
+
influxdbDataType: "intField"
|
|
6901
|
+
/* intField */
|
|
6902
|
+
},
|
|
6903
|
+
{
|
|
6904
|
+
fieldName: "systemcpu",
|
|
6905
|
+
gauge: Gauge.CPU_SYSTEM_LOAD_GAUGE,
|
|
6906
|
+
instrumentProperty: "val",
|
|
6907
|
+
dataType: "number",
|
|
6908
|
+
timeSeriesIndex: true,
|
|
6909
|
+
quantile: true,
|
|
6910
|
+
influxdbDataType: "floatField"
|
|
6911
|
+
/* floatField */
|
|
6912
|
+
},
|
|
6913
|
+
{
|
|
6914
|
+
fieldName: "memory",
|
|
6915
|
+
gauge: Gauge.OBJECT_GAUGE,
|
|
6916
|
+
instrumentProperty: "val",
|
|
6917
|
+
dataType: "JSON",
|
|
6918
|
+
influxdbDataType: "stringField"
|
|
6919
|
+
/* stringField */
|
|
6920
|
+
}
|
|
6921
|
+
],
|
|
6922
|
+
//@@ need type declare in appframework
|
|
6923
|
+
GetPathFromContext(context) {
|
|
6924
|
+
const { technology, subTechnology, lambdaInstance } = context;
|
|
6925
|
+
return `/${technology}/${subTechnology}/${lambdaInstance}`;
|
|
6926
|
+
},
|
|
6927
|
+
redisQueryFilters: {
|
|
6928
|
+
level1ContextField: "serviceType",
|
|
6929
|
+
level2ContextField: "technology",
|
|
6930
|
+
level3ContextField: "subTechnology"
|
|
6931
|
+
},
|
|
6932
|
+
subscriptionTopics: [
|
|
6933
|
+
{
|
|
6934
|
+
subscriptionTopic: SubscriptionTopic.AllLambdasCombined,
|
|
6935
|
+
// uicontrollerlanding
|
|
6936
|
+
route: "/metrics"
|
|
6937
|
+
},
|
|
6938
|
+
{
|
|
6939
|
+
subscriptionTopic: SubscriptionTopic.LambdaTechnologies,
|
|
6940
|
+
// uicontrollerlambda
|
|
6941
|
+
route: "/metrics/lambdas"
|
|
6942
|
+
},
|
|
6943
|
+
{
|
|
6944
|
+
subscriptionTopic: SubscriptionTopic.LambdaSubTechnologies,
|
|
6945
|
+
// uicontrollerlambdasubtechnologies
|
|
6946
|
+
route: "/metrics/lambdas/:key"
|
|
6947
|
+
},
|
|
6948
|
+
{
|
|
6949
|
+
subscriptionTopic: SubscriptionTopic.LambdaSubTechnologiesInstance,
|
|
6950
|
+
// uicontrollerlambdasubtechnologiesinstance
|
|
6951
|
+
route: "/metrics/lambdas/:key/:subkey"
|
|
6952
|
+
}
|
|
6953
|
+
]
|
|
6954
|
+
}
|
|
6955
|
+
}
|
|
6956
|
+
};
|
|
6532
6957
|
export {
|
|
6533
6958
|
AgentInstrumentController,
|
|
6534
6959
|
CompareSTSInstrumentControllerPluginKey,
|
|
@@ -6580,6 +7005,8 @@ export {
|
|
|
6580
7005
|
SubscriptionTopic,
|
|
6581
7006
|
TransportType,
|
|
6582
7007
|
ePublishState,
|
|
7008
|
+
globalServiceDefinitions,
|
|
7009
|
+
influxDBDataType,
|
|
6583
7010
|
useSTSInstrumentControllerPlugin
|
|
6584
7011
|
};
|
|
6585
7012
|
//# sourceMappingURL=stsobservability.mjs.map
|