diff --git a/internal/signalfx-agent/bundle/collectd-plugins.yaml b/internal/signalfx-agent/bundle/collectd-plugins.yaml index ed9efb940f..15900c1adf 100644 --- a/internal/signalfx-agent/bundle/collectd-plugins.yaml +++ b/internal/signalfx-agent/bundle/collectd-plugins.yaml @@ -7,12 +7,6 @@ version: v1.2.0 repo: signalfx/collectd-couchbase -- name: elasticsearch - version: v1.4.1 - repo: signalfx/collectd-elasticsearch - can_remove: - - tests - - name: etcd version: v2.0.0 repo: signalfx/collectd-etcd diff --git a/internal/signalfx-agent/pkg/core/modules.go b/internal/signalfx-agent/pkg/core/modules.go index 03de0d4813..5af102e595 100644 --- a/internal/signalfx-agent/pkg/core/modules.go +++ b/internal/signalfx-agent/pkg/core/modules.go @@ -11,7 +11,6 @@ import ( _ "github.com/signalfx/signalfx-agent/pkg/monitors/cloudfoundry" _ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/consul" _ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/couchbase" - _ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/elasticsearch" _ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/etcd" _ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/hadoop" _ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/healthchecker" diff --git a/internal/signalfx-agent/pkg/monitors/collectd/elasticsearch/elasticsearch.go b/internal/signalfx-agent/pkg/monitors/collectd/elasticsearch/elasticsearch.go deleted file mode 100644 index a68248a3b3..0000000000 --- a/internal/signalfx-agent/pkg/monitors/collectd/elasticsearch/elasticsearch.go +++ /dev/null @@ -1,136 +0,0 @@ -package elasticsearch - -import ( - "fmt" - - "github.com/signalfx/signalfx-agent/pkg/core/config" - "github.com/signalfx/signalfx-agent/pkg/monitors/collectd" - - "github.com/signalfx/signalfx-agent/pkg/monitors" - "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/python" - "github.com/signalfx/signalfx-agent/pkg/monitors/subproc" -) - -func init() { - monitors.Register(&monitorMetadata, func() interface{} { - return &Monitor{ - python.PyMonitor{ - MonitorCore: subproc.New(), - }, - } - }, &Config{}) -} - -var _ config.ExtraMetrics = &Config{} - -// Config is the monitor-specific config with the generic config embedded -type Config struct { - config.MonitorConfig `yaml:",inline" acceptsEndpoints:"true"` - python.CommonConfig `yaml:",inline"` - pyConf *python.Config - Host string `yaml:"host" validate:"required"` - Port uint16 `yaml:"port" validate:"required"` - // AdditionalMetrics to report on - AdditionalMetrics []string `yaml:"additionalMetrics"` - // Cluster name to which the node belongs. This is an optional config that - // will override the cluster name fetched from a node and will be used to - // populate the plugin_instance dimension - Cluster string `yaml:"cluster"` - // DetailedMetrics turns on additional metric time series - DetailedMetrics *bool `yaml:"detailedMetrics" default:"true"` - // EnableClusterHealth enables reporting on the cluster health - EnableClusterHealth *bool `yaml:"enableClusterHealth" default:"true"` - // EnableIndexStats reports metrics about indexes - EnableIndexStats *bool `yaml:"enableIndexStats" default:"true"` - // Indexes to report on - Indexes []string `yaml:"indexes" default:"[\"_all\"]"` - // IndexInterval is an interval in seconds at which the plugin will report index stats. - // It must be greater than or equal, and divisible by the Interval configuration - IndexInterval *uint `yaml:"indexInterval" default:"300"` - // IndexStatsMasterOnly sends index stats from the master only - IndexStatsMasterOnly *bool `yaml:"indexStatsMasterOnly" default:"false"` - IndexSummaryOnly *bool `yaml:"indexSummaryOnly" default:"false"` - // Password used to access elasticsearch stats api - Password string `yaml:"password" neverLog:"true"` - // Protocol used to connect: http or https - Protocol string `yaml:"protocol"` - // ThreadPools to report on - ThreadPools []string `yaml:"threadPools" default:"[\"search\", \"index\"]"` - // Username used to access elasticsearch stats api - Username string `yaml:"username"` - Version string `yaml:"version"` -} - -// PythonConfig returns the embedded python.Config struct from the interface -func (c *Config) PythonConfig() *python.Config { - c.pyConf.CommonConfig = c.CommonConfig - return c.pyConf -} - -// Monitor is the main type that represents the monitor -type Monitor struct { - python.PyMonitor -} - -// Configure configures and runs the plugin in collectd -func (m *Monitor) Configure(conf *Config) error { - m.Logger().Warn("The collectd/elasticsearch monitor is deprecated in favor of the elasticsearch monitor.") - conf.pyConf = &python.Config{ - MonitorConfig: conf.MonitorConfig, - Host: conf.Host, - Port: conf.Port, - ModuleName: "elasticsearch_collectd", - ModulePaths: []string{collectd.MakePythonPluginPath(conf.BundleDir, "elasticsearch")}, - TypesDBPaths: []string{collectd.DefaultTypesDBPath(conf.BundleDir)}, - PluginConfig: map[string]interface{}{ - "Host": conf.Host, - "Port": conf.Port, - "Cluster": conf.Cluster, - "DetailedMetrics": conf.DetailedMetrics, - "EnableClusterHealth": conf.EnableClusterHealth, - "EnableIndexStats": conf.EnableIndexStats, - "IndexInterval": conf.IndexInterval, - "IndexStatsMasterOnly": conf.IndexStatsMasterOnly, - "IndexSummaryOnly": conf.IndexSummaryOnly, - "Interval": conf.IntervalSeconds, - "Verbose": false, - "AdditionalMetrics": conf.AdditionalMetrics, - "Indexes": conf.Indexes, - "Password": conf.Password, - "Protocol": conf.Protocol, - "Username": conf.Username, - "ThreadPools": conf.ThreadPools, - "Version": conf.Version, - }, - } - - return m.PyMonitor.Configure(conf) -} - -// GetExtraMetrics returns additional metrics that should be allowed through. -func (c *Config) GetExtraMetrics() []string { - var extraMetrics []string - - for _, metric := range c.AdditionalMetrics { - counterType := fmt.Sprintf("counter.%s", metric) - gaugeType := fmt.Sprintf("gauge.%s", metric) - - // AdditionalMetrics doesn't specify the full metric name but it's either - // a counter or a gauge so just check both. - if monitorMetadata.HasMetric(counterType) { - extraMetrics = append(extraMetrics, counterType) - continue - } - - if monitorMetadata.HasMetric(gaugeType) { - extraMetrics = append(extraMetrics, gaugeType) - continue - } - - // We don't know about the metric so just enable both. - extraMetrics = append(extraMetrics, counterType) - extraMetrics = append(extraMetrics, gaugeType) - } - - return extraMetrics -} diff --git a/internal/signalfx-agent/pkg/monitors/collectd/elasticsearch/genmetadata.go b/internal/signalfx-agent/pkg/monitors/collectd/elasticsearch/genmetadata.go deleted file mode 100644 index da28d66c7b..0000000000 --- a/internal/signalfx-agent/pkg/monitors/collectd/elasticsearch/genmetadata.go +++ /dev/null @@ -1,407 +0,0 @@ -// Code generated by monitor-code-gen. DO NOT EDIT. - -package elasticsearch - -import ( - "github.com/signalfx/golib/v3/datapoint" - "github.com/signalfx/signalfx-agent/pkg/monitors" -) - -const monitorType = "collectd/elasticsearch" - -var groupSet = map[string]bool{} - -const ( - bytesIndicesPrimariesMergesTotalSize = "bytes.indices.primaries.merges.total-size" - bytesIndicesTotalMergesTotalSize = "bytes.indices.total.merges.total-size" - counterHTTPTotalOpen = "counter.http.total_open" - counterIndicesCacheFieldEviction = "counter.indices.cache.field.eviction" - counterIndicesCacheFilterCacheCount = "counter.indices.cache.filter.cache-count" - counterIndicesCacheFilterEvictions = "counter.indices.cache.filter.evictions" - counterIndicesCacheFilterHitCount = "counter.indices.cache.filter.hit-count" - counterIndicesCacheFilterMissCount = "counter.indices.cache.filter.miss-count" - counterIndicesCacheFilterTotalCount = "counter.indices.cache.filter.total-count" - counterIndicesFlushTime = "counter.indices.flush.time" - counterIndicesFlushTotal = "counter.indices.flush.total" - counterIndicesGetExistsTime = "counter.indices.get.exists-time" - counterIndicesGetExistsTotal = "counter.indices.get.exists-total" - counterIndicesGetMissingTime = "counter.indices.get.missing-time" - counterIndicesGetMissingTotal = "counter.indices.get.missing-total" - counterIndicesGetTime = "counter.indices.get.time" - counterIndicesGetTotal = "counter.indices.get.total" - counterIndicesIndexingDeleteTime = "counter.indices.indexing.delete-time" - counterIndicesIndexingDeleteTotal = "counter.indices.indexing.delete-total" - counterIndicesIndexingIndexTime = "counter.indices.indexing.index-time" - counterIndicesIndexingIndexTotal = "counter.indices.indexing.index-total" - counterIndicesMergesTime = "counter.indices.merges.time" - counterIndicesMergesTotal = "counter.indices.merges.total" - counterIndicesMergesTotalSize = "counter.indices.merges.total-size" - counterIndicesPrimariesFielddataEvictions = "counter.indices.primaries.fielddata.evictions" - counterIndicesPrimariesFlushTotal = "counter.indices.primaries.flush.total" - counterIndicesPrimariesFlushTotalTime = "counter.indices.primaries.flush.total-time" - counterIndicesPrimariesGetExistsTime = "counter.indices.primaries.get.exists-time" - counterIndicesPrimariesGetExistsTotal = "counter.indices.primaries.get.exists-total" - counterIndicesPrimariesGetMissingTime = "counter.indices.primaries.get.missing-time" - counterIndicesPrimariesGetMissingTotal = "counter.indices.primaries.get.missing-total" - counterIndicesPrimariesGetTime = "counter.indices.primaries.get.time" - counterIndicesPrimariesIndexingDeleteTime = "counter.indices.primaries.indexing.delete-time" - counterIndicesPrimariesIndexingDeleteTotal = "counter.indices.primaries.indexing.delete-total" - counterIndicesPrimariesIndexingIndexTime = "counter.indices.primaries.indexing.index-time" - counterIndicesPrimariesIndexingIndexTotal = "counter.indices.primaries.indexing.index-total" - counterIndicesPrimariesMergesTotal = "counter.indices.primaries.merges.total" - counterIndicesPrimariesMergesTotalDocs = "counter.indices.primaries.merges.total-docs" - counterIndicesPrimariesMergesTotalTime = "counter.indices.primaries.merges.total-time" - counterIndicesPrimariesRefreshTotal = "counter.indices.primaries.refresh.total" - counterIndicesPrimariesRefreshTotalTime = "counter.indices.primaries.refresh.total-time" - counterIndicesPrimariesSearchFetchTime = "counter.indices.primaries.search.fetch-time" - counterIndicesPrimariesSearchFetchTotal = "counter.indices.primaries.search.fetch-total" - counterIndicesPrimariesSearchQueryTime = "counter.indices.primaries.search.query-time" - counterIndicesPrimariesSearchQueryTotal = "counter.indices.primaries.search.query-total" - counterIndicesPrimariesSegmentsCount = "counter.indices.primaries.segments.count" - counterIndicesPrimariesTranslogOperations = "counter.indices.primaries.translog.operations" - counterIndicesPrimariesWarmerTotal = "counter.indices.primaries.warmer.total" - counterIndicesPrimariesWarmerTotalPrimariesWarmerTotalTime = "counter.indices.primaries.warmer.total.primaries.warmer.total-time" - counterIndicesRefreshTime = "counter.indices.refresh.time" - counterIndicesRefreshTotal = "counter.indices.refresh.total" - counterIndicesSearchFetchTime = "counter.indices.search.fetch-time" - counterIndicesSearchFetchTotal = "counter.indices.search.fetch-total" - counterIndicesSearchQueryTime = "counter.indices.search.query-time" - counterIndicesSearchQueryTotal = "counter.indices.search.query-total" - counterIndicesSearchScrollTime = "counter.indices.search.scroll-time" - counterIndicesSearchScrollTotal = "counter.indices.search.scroll.total" - counterIndicesTotalFielddataEvictions = "counter.indices.total.fielddata.evictions" - counterIndicesTotalFlushPeriodic = "counter.indices.total.flush.periodic" - counterIndicesTotalGetExistsTime = "counter.indices.total.get.exists-time" - counterIndicesTotalGetExistsTotal = "counter.indices.total.get.exists-total" - counterIndicesTotalGetMissingTime = "counter.indices.total.get.missing-time" - counterIndicesTotalGetMissingTotal = "counter.indices.total.get.missing-total" - counterIndicesTotalGetTime = "counter.indices.total.get.time" - counterIndicesTotalGetTotal = "counter.indices.total.get.total" - counterIndicesTotalIndexingDeleteTime = "counter.indices.total.indexing.delete-time" - counterIndicesTotalIndexingDeleteTotal = "counter.indices.total.indexing.delete-total" - counterIndicesTotalIndexingIndexTime = "counter.indices.total.indexing.index-time" - counterIndicesTotalIndexingIndexTotal = "counter.indices.total.indexing.index-total" - counterIndicesTotalMergesTotal = "counter.indices.total.merges.total" - counterIndicesTotalMergesTotalDocs = "counter.indices.total.merges.total-docs" - counterIndicesTotalMergesTotalTime = "counter.indices.total.merges.total-time" - counterIndicesTotalSearchFetchTotal = "counter.indices.total.search.fetch-total" - counterIndicesTotalSearchQueryTime = "counter.indices.total.search.query-time" - counterIndicesTotalSearchQueryTotal = "counter.indices.total.search.query-total" - counterIndicesTotalTranslogEarliestLastModifiedAge = "counter.indices.total.translog.earliest_last_modified_age" - counterIndicesTotalTranslogUncommittedOperations = "counter.indices.total.translog.uncommitted_operations" - counterIndicesTotalTranslogUncommittedSizeInBytes = "counter.indices.total.translog.uncommitted_size_in_bytes" - counterJvmGcCount = "counter.jvm.gc.count" - counterJvmGcOldCount = "counter.jvm.gc.old-count" - counterJvmGcOldTime = "counter.jvm.gc.old-time" - counterJvmGcTime = "counter.jvm.gc.time" - counterJvmUptime = "counter.jvm.uptime" - counterThreadPoolCompleted = "counter.thread_pool.completed" - counterThreadPoolRejected = "counter.thread_pool.rejected" - counterTransportRxCount = "counter.transport.rx.count" - counterTransportRxSize = "counter.transport.rx.size" - counterTransportTxCount = "counter.transport.tx.count" - counterTransportTxSize = "counter.transport.tx.size" - gaugeClusterActivePrimaryShards = "gauge.cluster.active-primary-shards" - gaugeClusterActiveShards = "gauge.cluster.active-shards" - gaugeClusterInitializingShards = "gauge.cluster.initializing-shards" - gaugeClusterNumberOfDataNodes = "gauge.cluster.number-of-data_nodes" - gaugeClusterNumberOfNodes = "gauge.cluster.number-of-nodes" - gaugeClusterRelocatingShards = "gauge.cluster.relocating-shards" - gaugeClusterStatus = "gauge.cluster.status" - gaugeClusterUnassignedShards = "gauge.cluster.unassigned-shards" - gaugeHTTPCurrentOpen = "gauge.http.current_open" - gaugeIndicesCacheFieldSize = "gauge.indices.cache.field.size" - gaugeIndicesCacheFilterSize = "gauge.indices.cache.filter.size" - gaugeIndicesDocsCount = "gauge.indices.docs.count" - gaugeIndicesDocsDeleted = "gauge.indices.docs.deleted" - gaugeIndicesGetCurrent = "gauge.indices.get.current" - gaugeIndicesIndexingDeleteCurrent = "gauge.indices.indexing.delete-current" - gaugeIndicesIndexingIndexCurrent = "gauge.indices.indexing.index-current" - gaugeIndicesMergesCurrent = "gauge.indices.merges.current" - gaugeIndicesMergesCurrentDocs = "gauge.indices.merges.current-docs" - gaugeIndicesMergesCurrentSize = "gauge.indices.merges.current-size" - gaugeIndicesMergesTotalDocs = "gauge.indices.merges.total-docs" - gaugeIndicesPrimariesCompletionSize = "gauge.indices.primaries.completion.size" - gaugeIndicesPrimariesDocsCount = "gauge.indices.primaries.docs.count" - gaugeIndicesPrimariesDocsDeleted = "gauge.indices.primaries.docs.deleted" - gaugeIndicesPrimariesFielddataMemorySize = "gauge.indices.primaries.fielddata.memory-size" - gaugeIndicesPrimariesFlushPeriodic = "gauge.indices.primaries.flush.periodic" - gaugeIndicesPrimariesGetCurrent = "gauge.indices.primaries.get.current" - gaugeIndicesPrimariesIndexingDeleteCurrent = "gauge.indices.primaries.indexing.delete-current" - gaugeIndicesPrimariesIndexingIndexCurrent = "gauge.indices.primaries.indexing.index-current" - gaugeIndicesPrimariesMergesCurrent = "gauge.indices.primaries.merges.current" - gaugeIndicesPrimariesMergesCurrentDocs = "gauge.indices.primaries.merges.current-docs" - gaugeIndicesPrimariesMergesCurrentSize = "gauge.indices.primaries.merges.current-size" - gaugeIndicesPrimariesSearchFetchCurrent = "gauge.indices.primaries.search.fetch-current" - gaugeIndicesPrimariesSearchOpenContexts = "gauge.indices.primaries.search.open-contexts" - gaugeIndicesPrimariesSearchQueryCurrent = "gauge.indices.primaries.search.query-current" - gaugeIndicesPrimariesSegmentsIndexWriterMemory = "gauge.indices.primaries.segments.index-writer-memory" - gaugeIndicesPrimariesSegmentsMemory = "gauge.indices.primaries.segments.memory" - gaugeIndicesPrimariesSegmentsVersionMapMemory = "gauge.indices.primaries.segments.version-map-memory" - gaugeIndicesPrimariesStoreSize = "gauge.indices.primaries.store.size" - gaugeIndicesPrimariesTranslogEarliestLastModifiedAge = "gauge.indices.primaries.translog.earliest_last_modified_age" - gaugeIndicesPrimariesTranslogSize = "gauge.indices.primaries.translog.size" - gaugeIndicesPrimariesTranslogUncommittedOperations = "gauge.indices.primaries.translog.uncommitted_operations" - gaugeIndicesPrimariesTranslogUncommittedSizeInBytes = "gauge.indices.primaries.translog.uncommitted_size_in_bytes" - gaugeIndicesPrimariesWarmerCurrent = "gauge.indices.primaries.warmer.current" - gaugeIndicesSearchFetchCurrent = "gauge.indices.search.fetch-current" - gaugeIndicesSearchOpenContexts = "gauge.indices.search.open-contexts" - gaugeIndicesSearchQueryCurrent = "gauge.indices.search.query-current" - gaugeIndicesSearchScrollCurrent = "gauge.indices.search.scroll.current" - gaugeIndicesSegmentsCount = "gauge.indices.segments.count" - gaugeIndicesSegmentsIndexWriterSize = "gauge.indices.segments.index-writer-size" - gaugeIndicesSegmentsSize = "gauge.indices.segments.size" - gaugeIndicesStoreSize = "gauge.indices.store.size" - gaugeIndicesTotalDocsCount = "gauge.indices.total.docs.count" - gaugeIndicesTotalDocsDeleted = "gauge.indices.total.docs.deleted" - gaugeIndicesTotalFielddataMemorySize = "gauge.indices.total.fielddata.memory-size" - gaugeIndicesTotalFilterCacheMemorySize = "gauge.indices.total.filter-cache.memory-size" - gaugeIndicesTotalGetCurrent = "gauge.indices.total.get.current" - gaugeIndicesTotalIndexingDeleteCurrent = "gauge.indices.total.indexing.delete-current" - gaugeIndicesTotalIndexingIndexCurrent = "gauge.indices.total.indexing.index-current" - gaugeIndicesTotalMergesCurrent = "gauge.indices.total.merges.current" - gaugeIndicesTotalMergesCurrentDocs = "gauge.indices.total.merges.current-docs" - gaugeIndicesTotalMergesCurrentSize = "gauge.indices.total.merges.current-size" - gaugeIndicesTotalSearchOpenContexts = "gauge.indices.total.search.open-contexts" - gaugeIndicesTotalSearchQueryCurrent = "gauge.indices.total.search.query-current" - gaugeIndicesTotalStoreSize = "gauge.indices.total.store.size" - gaugeIndicesTranslogUncommittedOperations = "gauge.indices.translog.uncommitted_operations" - gaugeIndicesTranslogUncommittedSizeInBytes = "gauge.indices.translog.uncommitted_size_in_bytes" - gaugeJvmMemHeapCommitted = "gauge.jvm.mem.heap-committed" - gaugeJvmMemHeapUsed = "gauge.jvm.mem.heap-used" - gaugeJvmMemNonHeapCommitted = "gauge.jvm.mem.non-heap-committed" - gaugeJvmMemNonHeapUsed = "gauge.jvm.mem.non-heap-used" - gaugeJvmMemPoolsOldMaxInBytes = "gauge.jvm.mem.pools.old.max_in_bytes" - gaugeJvmMemPoolsOldUsedInBytes = "gauge.jvm.mem.pools.old.used_in_bytes" - gaugeJvmMemPoolsYoungMaxInBytes = "gauge.jvm.mem.pools.young.max_in_bytes" - gaugeJvmMemPoolsYoungUsedInBytes = "gauge.jvm.mem.pools.young.used_in_bytes" - gaugeJvmThreadsCount = "gauge.jvm.threads.count" - gaugeJvmThreadsPeak = "gauge.jvm.threads.peak" - gaugeProcessCPUPercent = "gauge.process.cpu.percent" - gaugeProcessOpenFileDescriptors = "gauge.process.open_file_descriptors" - gaugeThreadPoolActive = "gauge.thread_pool.active" - gaugeThreadPoolLargest = "gauge.thread_pool.largest" - gaugeThreadPoolQueue = "gauge.thread_pool.queue" - gaugeThreadPoolThreads = "gauge.thread_pool.threads" - gaugeTransportServerOpen = "gauge.transport.server_open" - percentJvmMemHeapUsedPercent = "percent.jvm.mem.heap-used-percent" -) - -var metricSet = map[string]monitors.MetricInfo{ - bytesIndicesPrimariesMergesTotalSize: {Type: datapoint.Gauge}, - bytesIndicesTotalMergesTotalSize: {Type: datapoint.Gauge}, - counterHTTPTotalOpen: {Type: datapoint.Counter}, - counterIndicesCacheFieldEviction: {Type: datapoint.Counter}, - counterIndicesCacheFilterCacheCount: {Type: datapoint.Counter}, - counterIndicesCacheFilterEvictions: {Type: datapoint.Counter}, - counterIndicesCacheFilterHitCount: {Type: datapoint.Counter}, - counterIndicesCacheFilterMissCount: {Type: datapoint.Counter}, - counterIndicesCacheFilterTotalCount: {Type: datapoint.Counter}, - counterIndicesFlushTime: {Type: datapoint.Counter}, - counterIndicesFlushTotal: {Type: datapoint.Counter}, - counterIndicesGetExistsTime: {Type: datapoint.Counter}, - counterIndicesGetExistsTotal: {Type: datapoint.Counter}, - counterIndicesGetMissingTime: {Type: datapoint.Counter}, - counterIndicesGetMissingTotal: {Type: datapoint.Counter}, - counterIndicesGetTime: {Type: datapoint.Counter}, - counterIndicesGetTotal: {Type: datapoint.Counter}, - counterIndicesIndexingDeleteTime: {Type: datapoint.Counter}, - counterIndicesIndexingDeleteTotal: {Type: datapoint.Counter}, - counterIndicesIndexingIndexTime: {Type: datapoint.Counter}, - counterIndicesIndexingIndexTotal: {Type: datapoint.Counter}, - counterIndicesMergesTime: {Type: datapoint.Counter}, - counterIndicesMergesTotal: {Type: datapoint.Counter}, - counterIndicesMergesTotalSize: {Type: datapoint.Counter}, - counterIndicesPrimariesFielddataEvictions: {Type: datapoint.Counter}, - counterIndicesPrimariesFlushTotal: {Type: datapoint.Counter}, - counterIndicesPrimariesFlushTotalTime: {Type: datapoint.Counter}, - counterIndicesPrimariesGetExistsTime: {Type: datapoint.Counter}, - counterIndicesPrimariesGetExistsTotal: {Type: datapoint.Counter}, - counterIndicesPrimariesGetMissingTime: {Type: datapoint.Counter}, - counterIndicesPrimariesGetMissingTotal: {Type: datapoint.Counter}, - counterIndicesPrimariesGetTime: {Type: datapoint.Counter}, - counterIndicesPrimariesIndexingDeleteTime: {Type: datapoint.Counter}, - counterIndicesPrimariesIndexingDeleteTotal: {Type: datapoint.Counter}, - counterIndicesPrimariesIndexingIndexTime: {Type: datapoint.Counter}, - counterIndicesPrimariesIndexingIndexTotal: {Type: datapoint.Counter}, - counterIndicesPrimariesMergesTotal: {Type: datapoint.Counter}, - counterIndicesPrimariesMergesTotalDocs: {Type: datapoint.Counter}, - counterIndicesPrimariesMergesTotalTime: {Type: datapoint.Counter}, - counterIndicesPrimariesRefreshTotal: {Type: datapoint.Counter}, - counterIndicesPrimariesRefreshTotalTime: {Type: datapoint.Counter}, - counterIndicesPrimariesSearchFetchTime: {Type: datapoint.Counter}, - counterIndicesPrimariesSearchFetchTotal: {Type: datapoint.Counter}, - counterIndicesPrimariesSearchQueryTime: {Type: datapoint.Counter}, - counterIndicesPrimariesSearchQueryTotal: {Type: datapoint.Counter}, - counterIndicesPrimariesSegmentsCount: {Type: datapoint.Counter}, - counterIndicesPrimariesTranslogOperations: {Type: datapoint.Counter}, - counterIndicesPrimariesWarmerTotal: {Type: datapoint.Counter}, - counterIndicesPrimariesWarmerTotalPrimariesWarmerTotalTime: {Type: datapoint.Counter}, - counterIndicesRefreshTime: {Type: datapoint.Counter}, - counterIndicesRefreshTotal: {Type: datapoint.Counter}, - counterIndicesSearchFetchTime: {Type: datapoint.Counter}, - counterIndicesSearchFetchTotal: {Type: datapoint.Counter}, - counterIndicesSearchQueryTime: {Type: datapoint.Counter}, - counterIndicesSearchQueryTotal: {Type: datapoint.Counter}, - counterIndicesSearchScrollTime: {Type: datapoint.Counter}, - counterIndicesSearchScrollTotal: {Type: datapoint.Counter}, - counterIndicesTotalFielddataEvictions: {Type: datapoint.Counter}, - counterIndicesTotalFlushPeriodic: {Type: datapoint.Counter}, - counterIndicesTotalGetExistsTime: {Type: datapoint.Counter}, - counterIndicesTotalGetExistsTotal: {Type: datapoint.Counter}, - counterIndicesTotalGetMissingTime: {Type: datapoint.Counter}, - counterIndicesTotalGetMissingTotal: {Type: datapoint.Counter}, - counterIndicesTotalGetTime: {Type: datapoint.Counter}, - counterIndicesTotalGetTotal: {Type: datapoint.Counter}, - counterIndicesTotalIndexingDeleteTime: {Type: datapoint.Counter}, - counterIndicesTotalIndexingDeleteTotal: {Type: datapoint.Counter}, - counterIndicesTotalIndexingIndexTime: {Type: datapoint.Counter}, - counterIndicesTotalIndexingIndexTotal: {Type: datapoint.Counter}, - counterIndicesTotalMergesTotal: {Type: datapoint.Counter}, - counterIndicesTotalMergesTotalDocs: {Type: datapoint.Counter}, - counterIndicesTotalMergesTotalTime: {Type: datapoint.Counter}, - counterIndicesTotalSearchFetchTotal: {Type: datapoint.Counter}, - counterIndicesTotalSearchQueryTime: {Type: datapoint.Counter}, - counterIndicesTotalSearchQueryTotal: {Type: datapoint.Counter}, - counterIndicesTotalTranslogEarliestLastModifiedAge: {Type: datapoint.Counter}, - counterIndicesTotalTranslogUncommittedOperations: {Type: datapoint.Counter}, - counterIndicesTotalTranslogUncommittedSizeInBytes: {Type: datapoint.Counter}, - counterJvmGcCount: {Type: datapoint.Counter}, - counterJvmGcOldCount: {Type: datapoint.Counter}, - counterJvmGcOldTime: {Type: datapoint.Counter}, - counterJvmGcTime: {Type: datapoint.Counter}, - counterJvmUptime: {Type: datapoint.Counter}, - counterThreadPoolCompleted: {Type: datapoint.Counter}, - counterThreadPoolRejected: {Type: datapoint.Counter}, - counterTransportRxCount: {Type: datapoint.Counter}, - counterTransportRxSize: {Type: datapoint.Counter}, - counterTransportTxCount: {Type: datapoint.Counter}, - counterTransportTxSize: {Type: datapoint.Counter}, - gaugeClusterActivePrimaryShards: {Type: datapoint.Gauge}, - gaugeClusterActiveShards: {Type: datapoint.Gauge}, - gaugeClusterInitializingShards: {Type: datapoint.Gauge}, - gaugeClusterNumberOfDataNodes: {Type: datapoint.Gauge}, - gaugeClusterNumberOfNodes: {Type: datapoint.Gauge}, - gaugeClusterRelocatingShards: {Type: datapoint.Gauge}, - gaugeClusterStatus: {Type: datapoint.Gauge}, - gaugeClusterUnassignedShards: {Type: datapoint.Gauge}, - gaugeHTTPCurrentOpen: {Type: datapoint.Gauge}, - gaugeIndicesCacheFieldSize: {Type: datapoint.Gauge}, - gaugeIndicesCacheFilterSize: {Type: datapoint.Gauge}, - gaugeIndicesDocsCount: {Type: datapoint.Gauge}, - gaugeIndicesDocsDeleted: {Type: datapoint.Gauge}, - gaugeIndicesGetCurrent: {Type: datapoint.Gauge}, - gaugeIndicesIndexingDeleteCurrent: {Type: datapoint.Gauge}, - gaugeIndicesIndexingIndexCurrent: {Type: datapoint.Gauge}, - gaugeIndicesMergesCurrent: {Type: datapoint.Gauge}, - gaugeIndicesMergesCurrentDocs: {Type: datapoint.Gauge}, - gaugeIndicesMergesCurrentSize: {Type: datapoint.Gauge}, - gaugeIndicesMergesTotalDocs: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesCompletionSize: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesDocsCount: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesDocsDeleted: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesFielddataMemorySize: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesFlushPeriodic: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesGetCurrent: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesIndexingDeleteCurrent: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesIndexingIndexCurrent: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesMergesCurrent: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesMergesCurrentDocs: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesMergesCurrentSize: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesSearchFetchCurrent: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesSearchOpenContexts: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesSearchQueryCurrent: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesSegmentsIndexWriterMemory: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesSegmentsMemory: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesSegmentsVersionMapMemory: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesStoreSize: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesTranslogEarliestLastModifiedAge: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesTranslogSize: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesTranslogUncommittedOperations: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesTranslogUncommittedSizeInBytes: {Type: datapoint.Gauge}, - gaugeIndicesPrimariesWarmerCurrent: {Type: datapoint.Gauge}, - gaugeIndicesSearchFetchCurrent: {Type: datapoint.Gauge}, - gaugeIndicesSearchOpenContexts: {Type: datapoint.Gauge}, - gaugeIndicesSearchQueryCurrent: {Type: datapoint.Gauge}, - gaugeIndicesSearchScrollCurrent: {Type: datapoint.Gauge}, - gaugeIndicesSegmentsCount: {Type: datapoint.Gauge}, - gaugeIndicesSegmentsIndexWriterSize: {Type: datapoint.Gauge}, - gaugeIndicesSegmentsSize: {Type: datapoint.Gauge}, - gaugeIndicesStoreSize: {Type: datapoint.Gauge}, - gaugeIndicesTotalDocsCount: {Type: datapoint.Gauge}, - gaugeIndicesTotalDocsDeleted: {Type: datapoint.Gauge}, - gaugeIndicesTotalFielddataMemorySize: {Type: datapoint.Gauge}, - gaugeIndicesTotalFilterCacheMemorySize: {Type: datapoint.Gauge}, - gaugeIndicesTotalGetCurrent: {Type: datapoint.Gauge}, - gaugeIndicesTotalIndexingDeleteCurrent: {Type: datapoint.Gauge}, - gaugeIndicesTotalIndexingIndexCurrent: {Type: datapoint.Gauge}, - gaugeIndicesTotalMergesCurrent: {Type: datapoint.Gauge}, - gaugeIndicesTotalMergesCurrentDocs: {Type: datapoint.Gauge}, - gaugeIndicesTotalMergesCurrentSize: {Type: datapoint.Gauge}, - gaugeIndicesTotalSearchOpenContexts: {Type: datapoint.Gauge}, - gaugeIndicesTotalSearchQueryCurrent: {Type: datapoint.Gauge}, - gaugeIndicesTotalStoreSize: {Type: datapoint.Gauge}, - gaugeIndicesTranslogUncommittedOperations: {Type: datapoint.Gauge}, - gaugeIndicesTranslogUncommittedSizeInBytes: {Type: datapoint.Gauge}, - gaugeJvmMemHeapCommitted: {Type: datapoint.Gauge}, - gaugeJvmMemHeapUsed: {Type: datapoint.Gauge}, - gaugeJvmMemNonHeapCommitted: {Type: datapoint.Gauge}, - gaugeJvmMemNonHeapUsed: {Type: datapoint.Gauge}, - gaugeJvmMemPoolsOldMaxInBytes: {Type: datapoint.Gauge}, - gaugeJvmMemPoolsOldUsedInBytes: {Type: datapoint.Gauge}, - gaugeJvmMemPoolsYoungMaxInBytes: {Type: datapoint.Gauge}, - gaugeJvmMemPoolsYoungUsedInBytes: {Type: datapoint.Gauge}, - gaugeJvmThreadsCount: {Type: datapoint.Gauge}, - gaugeJvmThreadsPeak: {Type: datapoint.Gauge}, - gaugeProcessCPUPercent: {Type: datapoint.Gauge}, - gaugeProcessOpenFileDescriptors: {Type: datapoint.Gauge}, - gaugeThreadPoolActive: {Type: datapoint.Gauge}, - gaugeThreadPoolLargest: {Type: datapoint.Gauge}, - gaugeThreadPoolQueue: {Type: datapoint.Gauge}, - gaugeThreadPoolThreads: {Type: datapoint.Gauge}, - gaugeTransportServerOpen: {Type: datapoint.Gauge}, - percentJvmMemHeapUsedPercent: {Type: datapoint.Gauge}, -} - -var defaultMetrics = map[string]bool{ - counterIndicesGetTotal: true, - counterIndicesIndexingIndexTotal: true, - counterIndicesMergesTotal: true, - counterIndicesSearchQueryTime: true, - counterIndicesSearchQueryTotal: true, - counterIndicesTotalIndexingIndexTotal: true, - counterIndicesTotalMergesTotal: true, - counterIndicesTotalSearchQueryTotal: true, - counterJvmGcTime: true, - counterThreadPoolRejected: true, - gaugeClusterActivePrimaryShards: true, - gaugeClusterActiveShards: true, - gaugeClusterNumberOfDataNodes: true, - gaugeClusterNumberOfNodes: true, - gaugeClusterRelocatingShards: true, - gaugeClusterUnassignedShards: true, - gaugeIndicesCacheFieldSize: true, - gaugeIndicesCacheFilterSize: true, - gaugeIndicesDocsCount: true, - gaugeIndicesDocsDeleted: true, - gaugeIndicesMergesCurrent: true, - gaugeIndicesSegmentsCount: true, - gaugeIndicesTotalDocsCount: true, - gaugeIndicesTotalFielddataMemorySize: true, - gaugeIndicesTotalFilterCacheMemorySize: true, - gaugeJvmMemHeapCommitted: true, - gaugeJvmMemHeapUsed: true, - gaugeProcessOpenFileDescriptors: true, -} - -var groupMetricsMap = map[string][]string{} - -var monitorMetadata = monitors.Metadata{ - MonitorType: "collectd/elasticsearch", - DefaultMetrics: defaultMetrics, - Metrics: metricSet, - SendUnknown: false, - Groups: groupSet, - GroupMetricsMap: groupMetricsMap, - SendAll: false, -} diff --git a/internal/signalfx-agent/pkg/monitors/collectd/elasticsearch/metadata.yaml b/internal/signalfx-agent/pkg/monitors/collectd/elasticsearch/metadata.yaml deleted file mode 100644 index 7ce219eeec..0000000000 --- a/internal/signalfx-agent/pkg/monitors/collectd/elasticsearch/metadata.yaml +++ /dev/null @@ -1,704 +0,0 @@ -monitors: -- dimensions: - doc: | - Monitors ElasticSearch instances. We strongly recommend using the - [elasticsearch](./elasticsearch.md) monitor instead, as it will - scale much better. - - You can also [view the source of the Python - plugin](https://github.com/signalfx/collectd-elasticsearch). - metrics: - counter.indices.get.total: - description: The total number of get requests since node startup - default: true - type: cumulative - counter.indices.indexing.index-total: - description: The total number of index requests since node startup - default: true - type: cumulative - counter.indices.merges.total: - description: Total number of merges since node startup - default: true - type: cumulative - counter.indices.search.query-time: - description: Total time spent in search queries (milliseconds) - default: true - type: cumulative - counter.indices.search.query-total: - description: The total number of search requests since node startup - default: true - type: cumulative - counter.indices.total.indexing.index-total: - description: The total number of index requests per cluster - default: true - type: cumulative - counter.indices.total.merges.total: - description: Total number of merges per cluster - default: true - type: cumulative - counter.indices.total.search.query-total: - description: The total number of search requests per cluster - default: true - type: cumulative - counter.jvm.gc.time: - description: Total garbage collection time (milliseconds) - default: true - type: cumulative - counter.thread_pool.rejected: - description: Number of rejected thread pool requests - default: true - type: cumulative - gauge.cluster.active-primary-shards: - description: The number of active primary shards - default: true - type: gauge - gauge.cluster.active-shards: - description: The number of active shards - default: true - type: gauge - gauge.cluster.initializing-shards: - description: The number of currently initializing shards - default: false - type: gauge - gauge.cluster.number-of-data_nodes: - description: The current number of data nodes in the cluster - default: true - type: gauge - gauge.cluster.number-of-nodes: - description: Total number of nodes in the cluster - default: true - type: gauge - gauge.cluster.relocating-shards: - description: The number of shards that are currently being relocated - default: true - type: gauge - gauge.cluster.status: - description: The health status of the cluster - default: false - type: gauge - gauge.cluster.unassigned-shards: - description: The number of shards that are currently unassigned - default: true - type: gauge - gauge.indices.cache.field.size: - description: Field data size (bytes) - default: true - type: gauge - gauge.indices.cache.filter.size: - description: Filter cache size (bytes) - default: true - type: gauge - gauge.indices.docs.count: - description: Number of documents on this node - default: true - type: gauge - gauge.indices.docs.deleted: - description: Number of deleted documents on this node - default: true - type: gauge - gauge.indices.merges.current: - description: Number of active merges - default: true - type: gauge - gauge.indices.segments.count: - description: Number of segments on this node - default: true - type: gauge - gauge.indices.total.docs.count: - description: Number of documents in the cluster - default: true - type: gauge - gauge.indices.total.fielddata.memory-size: - description: Field data size (bytes) - default: true - type: gauge - gauge.indices.total.filter-cache.memory-size: - description: Filter cache size (bytes) - default: true - type: gauge - gauge.jvm.mem.heap-committed: - description: Total heap committed by the process (bytes) - default: true - type: gauge - gauge.jvm.mem.heap-used: - description: Total heap used (bytes) - default: true - type: gauge - gauge.process.open_file_descriptors: - description: Number of currently open file descriptors - default: true - type: gauge - gauge.thread_pool.active: - description: Number of active threads - default: false - type: gauge - gauge.thread_pool.largest: - description: Highest active threads in thread pool - default: false - type: gauge - gauge.thread_pool.queue: - description: Number of Tasks in thread pool - default: false - type: gauge - gauge.thread_pool.threads: - description: Number of Threads in thread pool - default: false - type: gauge - bytes.indices.primaries.merges.total-size: - description: - type: gauge - default: false - bytes.indices.total.merges.total-size: - description: - type: gauge - default: false - counter.http.total_open: - description: - type: cumulative - default: false - counter.indices.cache.field.eviction: - description: - type: cumulative - default: false - counter.indices.cache.filter.cache-count: - description: - type: cumulative - default: false - counter.indices.cache.filter.evictions: - description: - type: cumulative - default: false - counter.indices.cache.filter.hit-count: - description: - type: cumulative - default: false - counter.indices.cache.filter.miss-count: - description: - type: cumulative - default: false - counter.indices.cache.filter.total-count: - description: - type: cumulative - default: false - counter.indices.flush.time: - description: - type: cumulative - default: false - counter.indices.flush.total: - description: - type: cumulative - default: false - counter.indices.get.exists-time: - description: - type: cumulative - default: false - counter.indices.get.exists-total: - description: - type: cumulative - default: false - counter.indices.get.missing-time: - description: - type: cumulative - default: false - counter.indices.get.missing-total: - description: - type: cumulative - default: false - counter.indices.get.time: - description: - type: cumulative - default: false - counter.indices.indexing.delete-time: - description: - type: cumulative - default: false - counter.indices.indexing.delete-total: - description: - type: cumulative - default: false - counter.indices.indexing.index-time: - description: - type: cumulative - default: false - counter.indices.merges.time: - description: - type: cumulative - default: false - counter.indices.merges.total-size: - description: - type: cumulative - default: false - counter.indices.primaries.fielddata.evictions: - description: - type: cumulative - default: false - counter.indices.primaries.flush.total: - description: - type: cumulative - default: false - counter.indices.primaries.flush.total-time: - description: - type: cumulative - default: false - counter.indices.primaries.get.exists-time: - description: - type: cumulative - default: false - counter.indices.primaries.get.exists-total: - description: - type: cumulative - default: false - counter.indices.primaries.get.missing-time: - description: - type: cumulative - default: false - counter.indices.primaries.get.missing-total: - description: - type: cumulative - default: false - counter.indices.primaries.get.time: - description: - type: cumulative - default: false - counter.indices.primaries.indexing.delete-time: - description: - type: cumulative - default: false - counter.indices.primaries.indexing.delete-total: - description: - type: cumulative - default: false - counter.indices.primaries.indexing.index-time: - description: - type: cumulative - default: false - counter.indices.primaries.indexing.index-total: - description: - type: cumulative - default: false - counter.indices.primaries.merges.total: - description: - type: cumulative - default: false - counter.indices.primaries.merges.total-docs: - description: - type: cumulative - default: false - counter.indices.primaries.merges.total-time: - description: - type: cumulative - default: false - counter.indices.primaries.refresh.total: - description: - type: cumulative - default: false - counter.indices.primaries.refresh.total-time: - description: - type: cumulative - default: false - counter.indices.primaries.search.fetch-time: - description: - type: cumulative - default: false - counter.indices.primaries.search.fetch-total: - description: - type: cumulative - default: false - counter.indices.primaries.search.query-time: - description: - type: cumulative - default: false - counter.indices.primaries.search.query-total: - description: - type: cumulative - default: false - counter.indices.primaries.segments.count: - description: - type: cumulative - default: false - counter.indices.primaries.translog.operations: - description: - type: cumulative - default: false - counter.indices.primaries.warmer.total: - description: - type: cumulative - default: false - counter.indices.primaries.warmer.total.primaries.warmer.total-time: - description: - type: cumulative - default: false - counter.indices.refresh.time: - description: - type: cumulative - default: false - counter.indices.refresh.total: - description: - type: cumulative - default: false - counter.indices.search.fetch-time: - description: - type: cumulative - default: false - counter.indices.search.fetch-total: - description: - type: cumulative - default: false - counter.indices.search.scroll-time: - description: - type: cumulative - default: false - counter.indices.search.scroll.total: - description: - type: cumulative - default: false - counter.indices.total.fielddata.evictions: - description: - type: cumulative - default: false - counter.indices.total.flush.periodic: - description: - type: cumulative - default: false - counter.indices.total.get.exists-time: - description: - type: cumulative - default: false - counter.indices.total.get.exists-total: - description: - type: cumulative - default: false - counter.indices.total.get.missing-time: - description: - type: cumulative - default: false - counter.indices.total.get.missing-total: - description: - type: cumulative - default: false - counter.indices.total.get.time: - description: - type: cumulative - default: false - counter.indices.total.get.total: - description: - type: cumulative - default: false - counter.indices.total.indexing.delete-time: - description: - type: cumulative - default: false - counter.indices.total.indexing.delete-total: - description: - type: cumulative - default: false - counter.indices.total.indexing.index-time: - description: - type: cumulative - default: false - counter.indices.total.merges.total-docs: - description: - type: cumulative - default: false - counter.indices.total.merges.total-time: - description: - type: cumulative - default: false - counter.indices.total.search.fetch-total: - description: - type: cumulative - default: false - counter.indices.total.search.query-time: - description: - type: cumulative - default: false - counter.indices.total.translog.earliest_last_modified_age: - description: - type: cumulative - default: false - counter.indices.total.translog.uncommitted_operations: - description: - type: cumulative - default: false - counter.indices.total.translog.uncommitted_size_in_bytes: - description: - type: cumulative - default: false - counter.jvm.gc.count: - description: - type: cumulative - default: false - counter.jvm.gc.old-count: - description: - type: cumulative - default: false - counter.jvm.gc.old-time: - description: - type: cumulative - default: false - counter.jvm.uptime: - description: - type: cumulative - default: false - counter.thread_pool.completed: - description: - type: cumulative - default: false - counter.transport.rx.count: - description: - type: cumulative - default: false - counter.transport.rx.size: - description: - type: cumulative - default: false - counter.transport.tx.count: - description: - type: cumulative - default: false - counter.transport.tx.size: - description: - type: cumulative - default: false - gauge.http.current_open: - description: - type: gauge - default: false - gauge.indices.get.current: - description: - type: gauge - default: false - gauge.indices.indexing.delete-current: - description: - type: gauge - default: false - gauge.indices.indexing.index-current: - description: - type: gauge - default: false - gauge.indices.merges.current-docs: - description: - type: gauge - default: false - gauge.indices.merges.current-size: - description: - type: gauge - default: false - gauge.indices.merges.total-docs: - description: - type: gauge - default: false - gauge.indices.primaries.completion.size: - description: - type: gauge - default: false - gauge.indices.primaries.docs.count: - description: - type: gauge - default: false - gauge.indices.primaries.docs.deleted: - description: - type: gauge - default: false - gauge.indices.primaries.fielddata.memory-size: - description: - type: gauge - default: false - gauge.indices.primaries.flush.periodic: - description: - type: gauge - default: false - gauge.indices.primaries.get.current: - description: - type: gauge - default: false - gauge.indices.primaries.indexing.delete-current: - description: - type: gauge - default: false - gauge.indices.primaries.indexing.index-current: - description: - type: gauge - default: false - gauge.indices.primaries.merges.current: - description: - type: gauge - default: false - gauge.indices.primaries.merges.current-docs: - description: - type: gauge - default: false - gauge.indices.primaries.merges.current-size: - description: - type: gauge - default: false - gauge.indices.primaries.search.fetch-current: - description: - type: gauge - default: false - gauge.indices.primaries.search.open-contexts: - description: - type: gauge - default: false - gauge.indices.primaries.search.query-current: - description: - type: gauge - default: false - gauge.indices.primaries.segments.index-writer-memory: - description: - type: gauge - default: false - gauge.indices.primaries.segments.memory: - description: - type: gauge - default: false - gauge.indices.primaries.segments.version-map-memory: - description: - type: gauge - default: false - gauge.indices.primaries.store.size: - description: - type: gauge - default: false - gauge.indices.primaries.translog.earliest_last_modified_age: - description: - type: gauge - default: false - gauge.indices.primaries.translog.size: - description: - type: gauge - default: false - gauge.indices.primaries.translog.uncommitted_operations: - description: - type: gauge - default: false - gauge.indices.primaries.translog.uncommitted_size_in_bytes: - description: - type: gauge - default: false - gauge.indices.primaries.warmer.current: - description: - type: gauge - default: false - gauge.indices.search.fetch-current: - description: - type: gauge - default: false - gauge.indices.search.open-contexts: - description: - type: gauge - default: false - gauge.indices.search.query-current: - description: - type: gauge - default: false - gauge.indices.search.scroll.current: - description: - type: gauge - default: false - gauge.indices.segments.index-writer-size: - description: - type: gauge - default: false - gauge.indices.segments.size: - description: - type: gauge - default: false - gauge.indices.store.size: - description: - type: gauge - default: false - gauge.indices.total.docs.deleted: - description: - type: gauge - default: false - gauge.indices.total.get.current: - description: - type: gauge - default: false - gauge.indices.total.indexing.delete-current: - description: - type: gauge - default: false - gauge.indices.total.indexing.index-current: - description: - type: gauge - default: false - gauge.indices.total.merges.current: - description: - type: gauge - default: false - gauge.indices.total.merges.current-docs: - description: - type: gauge - default: false - gauge.indices.total.merges.current-size: - description: - type: gauge - default: false - gauge.indices.total.search.open-contexts: - description: - type: gauge - default: false - gauge.indices.total.search.query-current: - description: - type: gauge - default: false - gauge.indices.total.store.size: - description: - type: gauge - default: false - gauge.indices.translog.uncommitted_operations: - description: - type: gauge - default: false - gauge.indices.translog.uncommitted_size_in_bytes: - description: - type: gauge - default: false - gauge.jvm.mem.non-heap-committed: - description: - type: gauge - default: false - gauge.jvm.mem.non-heap-used: - description: - type: gauge - default: false - gauge.jvm.mem.pools.old.max_in_bytes: - description: - type: gauge - default: false - gauge.jvm.mem.pools.old.used_in_bytes: - description: - type: gauge - default: false - gauge.jvm.mem.pools.young.max_in_bytes: - description: - type: gauge - default: false - gauge.jvm.mem.pools.young.used_in_bytes: - description: - type: gauge - default: false - gauge.jvm.threads.count: - description: - type: gauge - default: false - gauge.jvm.threads.peak: - description: - type: gauge - default: false - gauge.process.cpu.percent: - description: - type: gauge - default: false - gauge.transport.server_open: - description: - type: gauge - default: false - percent.jvm.mem.heap-used-percent: - description: - type: gauge - default: false - monitorType: collectd/elasticsearch - properties: diff --git a/tests/receivers/smartagent/collectd-elasticsearch/collectd_elasticsearch_test.go b/tests/receivers/smartagent/collectd-elasticsearch/collectd_elasticsearch_test.go deleted file mode 100644 index 681a2de367..0000000000 --- a/tests/receivers/smartagent/collectd-elasticsearch/collectd_elasticsearch_test.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright Splunk, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -//go:build integration - -package tests - -import ( - "path" - "testing" - - "github.com/signalfx/splunk-otel-collector/tests/testutils" -) - -func TestCollectdElasticsearchReceiverProvidesAllMetrics(t *testing.T) { - containers := []testutils.Container{ - testutils.NewContainer().WithContext( - path.Join(".", "testdata", "server"), - ).WithEnv(map[string]string{ - "cluster.name": "testCluster", - }).WithExposedPorts( - "9200:9200", - ).WithName("elasticsearch").WillWaitForPorts("9200"), - } - - testutils.AssertAllMetricsReceived( - t, "all.yaml", "all_metrics_config.yaml", containers, nil, - ) -} diff --git a/tests/receivers/smartagent/collectd-elasticsearch/testdata/all_metrics_config.yaml b/tests/receivers/smartagent/collectd-elasticsearch/testdata/all_metrics_config.yaml deleted file mode 100644 index 8bc7d05034..0000000000 --- a/tests/receivers/smartagent/collectd-elasticsearch/testdata/all_metrics_config.yaml +++ /dev/null @@ -1,22 +0,0 @@ -receivers: - smartagent/collectd_elasticsearch: - type: collectd/elasticsearch - host: localhost - port: 9200 - username: elastic - password: testing123 - extraMetrics: ["*"] - intervalSeconds: 1 - -exporters: - otlp: - endpoint: "${OTLP_ENDPOINT}" - tls: - insecure: true - -service: - pipelines: - metrics: - receivers: - - smartagent/collectd_elasticsearch - exporters: [otlp] diff --git a/tests/receivers/smartagent/collectd-elasticsearch/testdata/resource_metrics/all.yaml b/tests/receivers/smartagent/collectd-elasticsearch/testdata/resource_metrics/all.yaml deleted file mode 100644 index 509c78402a..0000000000 --- a/tests/receivers/smartagent/collectd-elasticsearch/testdata/resource_metrics/all.yaml +++ /dev/null @@ -1,177 +0,0 @@ -resource_metrics: - - scope_metrics: - - metrics: - - name: counter.http.total_open - type: IntMonotonicCumulativeSum - - name: counter.indices.cache.field.eviction - type: IntMonotonicCumulativeSum - - name: counter.indices.cache.filter.cache-count - type: IntMonotonicCumulativeSum - - name: counter.indices.cache.filter.evictions - type: IntMonotonicCumulativeSum - - name: counter.indices.cache.filter.hit-count - type: IntMonotonicCumulativeSum - - name: counter.indices.cache.filter.miss-count - type: IntMonotonicCumulativeSum - - name: counter.indices.cache.filter.total-count - type: IntMonotonicCumulativeSum - - name: counter.indices.flush.time - type: IntMonotonicCumulativeSum - - name: counter.indices.flush.total - type: IntMonotonicCumulativeSum - - name: counter.indices.get.exists-time - type: IntMonotonicCumulativeSum - - name: counter.indices.get.exists-total - type: IntMonotonicCumulativeSum - - name: counter.indices.get.missing-time - type: IntMonotonicCumulativeSum - - name: counter.indices.get.missing-total - type: IntMonotonicCumulativeSum - - name: counter.indices.get.time - type: IntMonotonicCumulativeSum - - name: counter.indices.get.total - type: IntMonotonicCumulativeSum - - name: counter.indices.indexing.delete-time - type: IntMonotonicCumulativeSum - - name: counter.indices.indexing.delete-total - type: IntMonotonicCumulativeSum - - name: counter.indices.indexing.index-time - type: IntMonotonicCumulativeSum - - name: counter.indices.indexing.index-total - type: IntMonotonicCumulativeSum - - name: counter.indices.merges.time - type: IntMonotonicCumulativeSum - - name: counter.indices.merges.total-size - type: IntMonotonicCumulativeSum - - name: counter.indices.merges.total - type: IntMonotonicCumulativeSum - - name: counter.indices.refresh.time - type: IntMonotonicCumulativeSum - - name: counter.indices.refresh.total - type: IntMonotonicCumulativeSum - - name: counter.indices.search.fetch-time - type: IntMonotonicCumulativeSum - - name: counter.indices.search.fetch-total - type: IntMonotonicCumulativeSum - - name: counter.indices.search.query-time - type: IntMonotonicCumulativeSum - - name: counter.indices.search.query-total - type: IntMonotonicCumulativeSum - - name: counter.indices.search.scroll-time - type: IntMonotonicCumulativeSum - - name: counter.indices.search.scroll.total - type: IntMonotonicCumulativeSum - - name: counter.jvm.gc.count - type: IntMonotonicCumulativeSum - - name: counter.jvm.gc.old-count - type: IntMonotonicCumulativeSum - - name: counter.jvm.gc.old-time - type: IntMonotonicCumulativeSum - - name: counter.jvm.gc.time - type: IntMonotonicCumulativeSum - - name: counter.jvm.uptime - type: IntMonotonicCumulativeSum - - name: counter.thread_pool.completed - type: IntMonotonicCumulativeSum - - name: counter.thread_pool.rejected - type: IntMonotonicCumulativeSum - - name: counter.transport.rx.count - type: IntMonotonicCumulativeSum - - name: counter.transport.rx.size - type: IntMonotonicCumulativeSum - - name: counter.transport.tx.count - type: IntMonotonicCumulativeSum - - name: counter.transport.tx.size - type: IntMonotonicCumulativeSum - - name: gauge.cluster.active-primary-shards - type: IntGauge - - name: gauge.cluster.active-shards - type: IntGauge - - name: gauge.cluster.initializing-shards - type: IntGauge - - name: gauge.cluster.number-of-data_nodes - type: IntGauge - - name: gauge.cluster.number-of-nodes - type: IntGauge - - name: gauge.cluster.relocating-shards - type: IntGauge - - name: gauge.cluster.status - type: IntGauge - - name: gauge.cluster.unassigned-shards - type: IntGauge - - name: gauge.http.current_open - type: IntGauge - - name: gauge.indices.cache.field.size - type: IntGauge - - name: gauge.indices.cache.filter.size - type: IntGauge - - name: gauge.indices.docs.count - type: IntGauge - - name: gauge.indices.docs.deleted - type: IntGauge - - name: gauge.indices.get.current - type: IntGauge - - name: gauge.indices.indexing.delete-current - type: IntGauge - - name: gauge.indices.indexing.index-current - type: IntGauge - - name: gauge.indices.merges.current-docs - type: IntGauge - - name: gauge.indices.merges.current-size - type: IntGauge - - name: gauge.indices.merges.current - type: IntGauge - - name: gauge.indices.merges.total-docs - type: IntGauge - - name: gauge.indices.search.fetch-current - type: IntGauge - - name: gauge.indices.search.open-contexts - type: IntGauge - - name: gauge.indices.search.query-current - type: IntGauge - - name: gauge.indices.search.scroll.current - type: IntGauge - - name: gauge.indices.segments.count - type: IntGauge - - name: gauge.indices.segments.index-writer-size - type: IntGauge - - name: gauge.indices.segments.size - type: IntGauge - - name: gauge.indices.store.size - type: IntGauge - - name: gauge.jvm.mem.heap-committed - type: IntGauge - - name: gauge.jvm.mem.heap-used - type: IntGauge - - name: gauge.jvm.mem.non-heap-committed - type: IntGauge - - name: gauge.jvm.mem.non-heap-used - type: IntGauge - - name: gauge.jvm.mem.pools.old.max_in_bytes - type: IntGauge - - name: gauge.jvm.mem.pools.old.used_in_bytes - type: IntGauge - - name: gauge.jvm.mem.pools.young.max_in_bytes - type: IntGauge - - name: gauge.jvm.mem.pools.young.used_in_bytes - type: IntGauge - - name: gauge.jvm.threads.count - type: IntGauge - - name: gauge.jvm.threads.peak - type: IntGauge - - name: gauge.process.cpu.percent - type: IntGauge - - name: gauge.process.open_file_descriptors - type: IntGauge - - name: gauge.thread_pool.active - type: IntGauge - - name: gauge.thread_pool.largest - type: IntGauge - - name: gauge.thread_pool.queue - type: IntGauge - - name: gauge.thread_pool.threads - type: IntGauge - - name: gauge.transport.server_open - type: IntGauge - - name: percent.jvm.mem.heap-used-percent - type: IntGauge diff --git a/tests/receivers/smartagent/collectd-elasticsearch/testdata/server/Dockerfile b/tests/receivers/smartagent/collectd-elasticsearch/testdata/server/Dockerfile deleted file mode 100644 index 404c5cb701..0000000000 --- a/tests/receivers/smartagent/collectd-elasticsearch/testdata/server/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM docker.elastic.co/elasticsearch/elasticsearch:7.5.1 - -ENV ELASTIC_PASSWORD="testing123" -ENV discovery.type="single-node" -ENV ES_JAVA_OPTS="-Xms128m -Xmx128m" - -ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] -CMD ["eswrapper"]