From 4ce96377a05e70a03ec5a4e2bf466494f10f5073 Mon Sep 17 00:00:00 2001 From: David Poncelow Date: Fri, 12 Nov 2021 14:50:10 -0800 Subject: [PATCH] rerun go generate --- .../mongodbatlasreceiver/documentation.md | 209 ++++-------- .../internal/metadata/generated_metrics.go | 322 +----------------- 2 files changed, 68 insertions(+), 463 deletions(-) diff --git a/receiver/mongodbatlasreceiver/documentation.md b/receiver/mongodbatlasreceiver/documentation.md index 808a37c67fb7..b070b42bfcd8 100644 --- a/receiver/mongodbatlasreceiver/documentation.md +++ b/receiver/mongodbatlasreceiver/documentation.md @@ -8,154 +8,71 @@ These are the metrics available for this scraper. | Name | Description | Unit | Type | Attributes | | ---- | ----------- | ---- | ---- | ---------- | -| mongodbatlas.db.counts | Database feature size Aggregate of MongoDB Metrics DATABASE_EXTENT_COUNT, DATABASE_VIEW_COUNT, DATABASE_COLLECTION_COUNT, DATABASE_OBJECT_COUNT, DATABASE_INDEX_COUNT | {objects} | Gauge | | -| mongodbatlas.db.size | Database feature size Aggregate of MongoDB Metrics DATABASE_DATA_SIZE, DATABASE_STORAGE_SIZE, DATABASE_INDEX_SIZE, DATABASE_AVERAGE_OBJECT_SIZE | By | Gauge | | -| mongodbatlas.disk.partition.iops.average | Disk partition iops Aggregate of MongoDB Metrics DISK_PARTITION_IOPS_READ, DISK_PARTITION_IOPS_WRITE, DISK_PARTITION_IOPS_TOTAL | {ops}/s | Gauge | | -| mongodbatlas.disk.partition.iops.max | Disk partition iops Aggregate of MongoDB Metrics MAX_DISK_PARTITION_IOPS_WRITE, MAX_DISK_PARTITION_IOPS_TOTAL, MAX_DISK_PARTITION_IOPS_READ | {ops}/s | Gauge | | -| mongodbatlas.disk.partition.latency.average | Disk partition latency Aggregate of MongoDB Metrics DISK_PARTITION_LATENCY_WRITE, DISK_PARTITION_LATENCY_READ | ms | Gauge | | -| mongodbatlas.disk.partition.latency.max | Disk partition latency Aggregate of MongoDB Metrics MAX_DISK_PARTITION_LATENCY_WRITE, MAX_DISK_PARTITION_LATENCY_READ | ms | Gauge | | -| mongodbatlas.disk.partition.space.average | Disk partition space Aggregate of MongoDB Metrics DISK_PARTITION_SPACE_FREE, DISK_PARTITION_SPACE_USED | By | Gauge | | -| mongodbatlas.disk.partition.space.max | Disk partition space Aggregate of MongoDB Metrics DISK_PARTITION_SPACE_FREE, DISK_PARTITION_SPACE_USED | By | Gauge | | -| mongodbatlas.disk.partition.usage.average | Disk partition usage (%) Aggregate of MongoDB Metrics DISK_PARTITION_SPACE_PERCENT_FREE, DISK_PARTITION_SPACE_PERCENT_USED | 1 | Gauge | | -| mongodbatlas.disk.partition.usage.max | Disk partition usage (%) Aggregate of MongoDB Metrics MAX_DISK_PARTITION_SPACE_PERCENT_USED, MAX_DISK_PARTITION_SPACE_PERCENT_FREE | 1 | Gauge | | -| mongodbatlas.disk.partition.utilization.average | Disk partition utilization (%) MongoDB Metrics DISK_PARTITION_UTILIZATION | 1 | Gauge | | -| mongodbatlas.disk.partition.utilization.max | Disk partition utilization (%) MongoDB Metrics MAX_DISK_PARTITION_UTILIZATION | 1 | Gauge | | -| mongodbatlas.process.asserts | Number of assertions per second Aggregate of MongoDB Metrics ASSERT_REGULAR, ASSERT_USER, ASSERT_MSG, ASSERT_WARNING | {assertions}/s | Gauge | | -| mongodbatlas.process.background_flush | Amount of data flushed in the background MongoDB Metric BACKGROUND_FLUSH_AVG | 1 | Gauge | | -| mongodbatlas.process.cache.io | Cache throughput (per second) Aggregate of MongoDB Metrics CACHE_BYTES_READ_INTO, CACHE_BYTES_WRITTEN_FROM | By | Gauge | | -| mongodbatlas.process.cache.size | Cache sizes Aggregate of MongoDB Metrics CACHE_USED_BYTES, CACHE_DIRTY_BYTES | By | Sum | | -| mongodbatlas.process.connections | Number of current connections MongoDB Metric CONNECTIONS | {connections} | Sum | | -| mongodbatlas.process.cpu.children.normalized.usage.average | CPU Usage for child processes, normalized to pct Aggregate of MongoDB Metrics PROCESS_NORMALIZED_CPU_CHILDREN_KERNEL, PROCESS_NORMALIZED_CPU_CHILDREN_USER | 1 | Gauge | | -| mongodbatlas.process.cpu.children.normalized.usage.max | CPU Usage for child processes, normalized to pct Aggregate of MongoDB Metrics MAX_PROCESS_NORMALIZED_CPU_CHILDREN_KERNEL, MAX_PROCESS_NORMALIZED_CPU_CHILDREN_USER | 1 | Gauge | | -| mongodbatlas.process.cpu.children.usage.average | CPU Usage for child processes (%) Aggregate of MongoDB Metrics PROCESS_CPU_CHILDREN_KERNEL, PROCESS_CPU_CHILDREN_USER | 1 | Gauge | | -| mongodbatlas.process.cpu.children.usage.max | CPU Usage for child processes (%) Aggregate of MongoDB Metrics MAX_PROCESS_CPU_CHILDREN_USER, MAX_PROCESS_CPU_CHILDREN_KERNEL | 1 | Gauge | | -| mongodbatlas.process.cpu.normalized.usage.average | CPU Usage, normalized to pct Aggregate of MongoDB Metrics PROCESS_NORMALIZED_CPU_KERNEL, PROCESS_NORMALIZED_CPU_USER | 1 | Gauge | | -| mongodbatlas.process.cpu.normalized.usage.max | CPU Usage, normalized to pct Aggregate of MongoDB Metrics MAX_PROCESS_NORMALIZED_CPU_USER, MAX_PROCESS_NORMALIZED_CPU_KERNEL | 1 | Gauge | | -| mongodbatlas.process.cpu.usage.average | CPU Usage (%) Aggregate of MongoDB Metrics PROCESS_CPU_KERNEL, PROCESS_CPU_USER | 1 | Gauge | | -| mongodbatlas.process.cpu.usage.max | CPU Usage (%) Aggregate of MongoDB Metrics MAX_PROCESS_CPU_KERNEL, MAX_PROCESS_CPU_USER | 1 | Gauge | | -| mongodbatlas.process.cursors | Number of cursors Aggregate of MongoDB Metrics CURSORS_TOTAL_OPEN, CURSORS_TOTAL_TIMED_OUT | {cursors} | Gauge | | -| mongodbatlas.process.db.document.rate | Document access rates Aggregate of MongoDB Metrics DOCUMENT_METRICS_UPDATED, DOCUMENT_METRICS_DELETED, DOCUMENT_METRICS_RETURNED, DOCUMENT_METRICS_INSERTED | {documents}/s | Gauge | | -| mongodbatlas.process.db.operations.rate | DB Operation Rates Aggregate of MongoDB Metrics OPCOUNTER_GETMORE, OPERATIONS_SCAN_AND_ORDER, OPCOUNTER_UPDATE, OPCOUNTER_REPL_UPDATE, OPCOUNTER_CMD, OPCOUNTER_DELETE, OPCOUNTER_REPL_DELETE, OPCOUNTER_REPL_CMD, OPCOUNTER_QUERY, OPCOUNTER_REPL_INSERT, OPCOUNTER_INSERT | {operations}/s | Gauge | | -| mongodbatlas.process.db.operations.time | DB Operation Times Aggregate of MongoDB Metrics OP_EXECUTION_TIME_WRITES, OP_EXECUTION_TIME_COMMANDS, OP_EXECUTION_TIME_READS | ms | Sum | | -| mongodbatlas.process.db.query_executor.scanned | Scanned objects Aggregate of MongoDB Metrics QUERY_EXECUTOR_SCANNED_OBJECTS, QUERY_EXECUTOR_SCANNED | {objects}/s | Gauge | | -| mongodbatlas.process.db.query_targeting.scanned_per_returned | Scanned objects per returned Aggregate of MongoDB Metrics QUERY_TARGETING_SCANNED_OBJECTS_PER_RETURNED, QUERY_TARGETING_SCANNED_PER_RETURNED | {scanned}/{returned} | Gauge | | -| mongodbatlas.process.db.storage | Storage used by the database Aggregate of MongoDB Metrics DB_INDEX_SIZE_TOTAL, DB_DATA_SIZE_TOTAL_WO_SYSTEM, DB_STORAGE_TOTAL, DB_DATA_SIZE_TOTAL | By | Gauge | | -| mongodbatlas.process.fts.cpu.usage | Full text search CPU (%) Aggregate of MongoDB Metrics FTS_PROCESS_CPU_USER, FTS_PROCESS_CPU_KERNEL | 1 | Gauge | | -| mongodbatlas.process.global_lock | Number and status of locks Aggregate of MongoDB Metrics GLOBAL_LOCK_CURRENT_QUEUE_WRITERS, GLOBAL_LOCK_CURRENT_QUEUE_READERS, GLOBAL_LOCK_CURRENT_QUEUE_TOTAL | {locks} | Gauge | | -| mongodbatlas.process.index.btree_miss_ratio | Index miss ratio (%) MongoDB Metric INDEX_COUNTERS_BTREE_MISS_RATIO | 1 | Gauge | | -| mongodbatlas.process.index.counters | Indexes Aggregate of MongoDB Metrics INDEX_COUNTERS_BTREE_MISSES, INDEX_COUNTERS_BTREE_ACCESSES, INDEX_COUNTERS_BTREE_HITS | {indexes} | Gauge | | -| mongodbatlas.process.journaling.commits | Journaling commits MongoDB Metric JOURNALING_COMMITS_IN_WRITE_LOCK | {commits} | Gauge | | -| mongodbatlas.process.journaling.data_files | Data file sizes MongoDB Metric JOURNALING_WRITE_DATA_FILES_MB | MiBy | Gauge | | -| mongodbatlas.process.journaling.written | Journals written MongoDB Metric JOURNALING_MB | MiBy | Gauge | | -| mongodbatlas.process.memory.usage | Memory Usage Aggregate of MongoDB Metrics MEMORY_MAPPED, MEMORY_VIRTUAL, COMPUTED_MEMORY, MEMORY_RESIDENT | By | Gauge | | -| mongodbatlas.process.network.io | Network IO Aggregate of MongoDB Metrics NETWORK_BYTES_OUT, NETWORK_BYTES_IN | By/s | Gauge | | -| mongodbatlas.process.network.requests | Network requests MongoDB Metric NETWORK_NUM_REQUESTS | {requests} | Sum | | -| mongodbatlas.process.oplog.rate | Execution rate by operation MongoDB Metric OPLOG_RATE_GB_PER_HOUR | GiBy/h | Gauge | | -| mongodbatlas.process.oplog.time | Execution time by operation Aggregate of MongoDB Metrics OPLOG_MASTER_TIME, OPLOG_SLAVE_LAG_MASTER_TIME, OPLOG_MASTER_LAG_TIME_DIFF | s | Gauge | | -| mongodbatlas.process.page_faults | Page faults Aggregate of MongoDB Metrics GLOBAL_PAGE_FAULT_EXCEPTIONS_THROWN, EXTRA_INFO_PAGE_FAULTS, GLOBAL_ACCESSES_NOT_IN_MEMORY | {faults}/s | Gauge | | -| mongodbatlas.process.restarts | Restarts in last hour Aggregate of MongoDB Metrics RESTARTS_IN_LAST_HOUR | {restarts}/h | Gauge | | -| mongodbatlas.process.tickets | Tickets Aggregate of MongoDB Metrics TICKETS_AVAILABLE_WRITE, TICKETS_AVAILABLE_READS | {tickets} | Gauge | | -| mongodbatlas.system.cpu.normalized.usage.average | System CPU Normalized to pct Aggregate of MongoDB Metrics SYSTEM_NORMALIZED_CPU_IOWAIT, SYSTEM_NORMALIZED_CPU_GUEST, SYSTEM_NORMALIZED_CPU_IRQ, SYSTEM_NORMALIZED_CPU_KERNEL, SYSTEM_NORMALIZED_CPU_STEAL, SYSTEM_NORMALIZED_CPU_SOFTIRQ, SYSTEM_NORMALIZED_CPU_NICE, SYSTEM_NORMALIZED_CPU_USER | 1 | Gauge | | -| mongodbatlas.system.cpu.normalized.usage.max | System CPU Normalized to pct Aggregate of MongoDB Metrics MAX_SYSTEM_NORMALIZED_CPU_USER, MAX_SYSTEM_NORMALIZED_CPU_NICE, MAX_SYSTEM_NORMALIZED_CPU_IOWAIT, MAX_SYSTEM_NORMALIZED_CPU_SOFTIRQ, MAX_SYSTEM_NORMALIZED_CPU_STEAL, MAX_SYSTEM_NORMALIZED_CPU_KERNEL, MAX_SYSTEM_NORMALIZED_CPU_GUEST, MAX_SYSTEM_NORMALIZED_CPU_IRQ | 1 | Gauge | | -| mongodbatlas.system.cpu.usage.average | System CPU Usage (%) Aggregate of MongoDB Metrics SYSTEM_CPU_USER, SYSTEM_CPU_GUEST, SYSTEM_CPU_SOFTIRQ, SYSTEM_CPU_IRQ, SYSTEM_CPU_KERNEL, SYSTEM_CPU_IOWAIT, SYSTEM_CPU_NICE, SYSTEM_CPU_STEAL | 1 | Gauge | | -| mongodbatlas.system.cpu.usage.max | System CPU Usage (%) Aggregate of MongoDB Metrics MAX_SYSTEM_CPU_SOFTIRQ, MAX_SYSTEM_CPU_IRQ, MAX_SYSTEM_CPU_GUEST, MAX_SYSTEM_CPU_IOWAIT, MAX_SYSTEM_CPU_NICE, MAX_SYSTEM_CPU_KERNEL, MAX_SYSTEM_CPU_USER, MAX_SYSTEM_CPU_STEAL | 1 | Gauge | | -| mongodbatlas.system.fts.cpu.normalized.usage | Full text search disk usage (%) Aggregate of MongoDB Metrics FTS_PROCESS_NORMALIZED_CPU_USER, FTS_PROCESS_NORMALIZED_CPU_KERNEL | 1 | Gauge | | -| mongodbatlas.system.fts.cpu.usage | Full-text search (%) | 1 | Gauge | | -| mongodbatlas.system.fts.disk.used | Full text search disk usage MongoDB Metric FTS_DISK_USAGE | By | Gauge | | -| mongodbatlas.system.fts.memory.usage | Full-text search Aggregate of MongoDB Metrics FTS_MEMORY_MAPPED, FTS_PROCESS_SHARED_MEMORY, FTS_PROCESS_RESIDENT_MEMORY, FTS_PROCESS_VIRTUAL_MEMORY | MiBy | Sum | | -| mongodbatlas.system.memory.usage.average | System Memory Usage Aggregate of MongoDB Metrics SYSTEM_MEMORY_AVAILABLE, SYSTEM_MEMORY_BUFFERS, SYSTEM_MEMORY_USED, SYSTEM_MEMORY_CACHED, SYSTEM_MEMORY_SHARED, SYSTEM_MEMORY_FREE | KiBy | Gauge | | -| mongodbatlas.system.memory.usage.max | System Memory Usage Aggregate of MongoDB Metrics MAX_SYSTEM_MEMORY_CACHED, MAX_SYSTEM_MEMORY_AVAILABLE, MAX_SYSTEM_MEMORY_USED, MAX_SYSTEM_MEMORY_BUFFERS, MAX_SYSTEM_MEMORY_FREE, MAX_SYSTEM_MEMORY_SHARED | KiBy | Gauge | | -| mongodbatlas.system.network.io.average | System Network IO Aggregate of MongoDB Metrics SYSTEM_NETWORK_IN, SYSTEM_NETWORK_OUT | By/s | Gauge | | -| mongodbatlas.system.network.io.max | System Network IO Aggregate of MongoDB Metrics MAX_SYSTEM_NETWORK_OUT, MAX_SYSTEM_NETWORK_IN | By/s | Gauge | | -| mongodbatlas.system.paging.io.average | Swap IO Aggregate of MongoDB Metrics SWAP_IO_IN, SWAP_IO_OUT | {pages}/s | Gauge | | -| mongodbatlas.system.paging.io.max | Swap IO Aggregate of MongoDB Metrics MAX_SWAP_IO_IN, MAX_SWAP_IO_OUT | {pages}/s | Gauge | | -| mongodbatlas.system.paging.usage.average | Swap usage Aggregate of MongoDB Metrics SWAP_USAGE_FREE, SWAP_USAGE_USED | KiBy | Gauge | | -| mongodbatlas.system.paging.usage.max | Swap usage Aggregate of MongoDB Metrics MAX_SWAP_USAGE_FREE, MAX_SWAP_USAGE_USED | KiBy | Gauge | | +| mongodbatlas.db.counts | Database feature size Aggregate of MongoDB Metrics DATABASE_EXTENT_COUNT, DATABASE_VIEW_COUNT, DATABASE_COLLECTION_COUNT, DATABASE_OBJECT_COUNT, DATABASE_INDEX_COUNT | {objects} | Gauge | | +| mongodbatlas.db.size | Database feature size Aggregate of MongoDB Metrics DATABASE_DATA_SIZE, DATABASE_STORAGE_SIZE, DATABASE_INDEX_SIZE, DATABASE_AVERAGE_OBJECT_SIZE | By | Gauge | | +| mongodbatlas.disk.partition.iops.average | Disk partition iops Aggregate of MongoDB Metrics DISK_PARTITION_IOPS_READ, DISK_PARTITION_IOPS_WRITE, DISK_PARTITION_IOPS_TOTAL | {ops}/s | Gauge | | +| mongodbatlas.disk.partition.iops.max | Disk partition iops Aggregate of MongoDB Metrics MAX_DISK_PARTITION_IOPS_WRITE, MAX_DISK_PARTITION_IOPS_TOTAL, MAX_DISK_PARTITION_IOPS_READ | {ops}/s | Gauge | | +| mongodbatlas.disk.partition.latency.average | Disk partition latency Aggregate of MongoDB Metrics DISK_PARTITION_LATENCY_WRITE, DISK_PARTITION_LATENCY_READ | ms | Gauge | | +| mongodbatlas.disk.partition.latency.max | Disk partition latency Aggregate of MongoDB Metrics MAX_DISK_PARTITION_LATENCY_WRITE, MAX_DISK_PARTITION_LATENCY_READ | ms | Gauge | | +| mongodbatlas.disk.partition.space.average | Disk partition space Aggregate of MongoDB Metrics DISK_PARTITION_SPACE_FREE, DISK_PARTITION_SPACE_USED | By | Gauge | | +| mongodbatlas.disk.partition.space.max | Disk partition space Aggregate of MongoDB Metrics DISK_PARTITION_SPACE_FREE, DISK_PARTITION_SPACE_USED | By | Gauge | | +| mongodbatlas.disk.partition.usage.average | Disk partition usage (%) Aggregate of MongoDB Metrics DISK_PARTITION_SPACE_PERCENT_FREE, DISK_PARTITION_SPACE_PERCENT_USED | 1 | Gauge | | +| mongodbatlas.disk.partition.usage.max | Disk partition usage (%) Aggregate of MongoDB Metrics MAX_DISK_PARTITION_SPACE_PERCENT_USED, MAX_DISK_PARTITION_SPACE_PERCENT_FREE | 1 | Gauge | | +| mongodbatlas.disk.partition.utilization.average | Disk partition utilization (%) MongoDB Metrics DISK_PARTITION_UTILIZATION | 1 | Gauge | | +| mongodbatlas.disk.partition.utilization.max | Disk partition utilization (%) MongoDB Metrics MAX_DISK_PARTITION_UTILIZATION | 1 | Gauge | | +| mongodbatlas.process.asserts | Number of assertions per second Aggregate of MongoDB Metrics ASSERT_REGULAR, ASSERT_USER, ASSERT_MSG, ASSERT_WARNING | {assertions}/s | Gauge | | +| mongodbatlas.process.background_flush | Amount of data flushed in the background MongoDB Metric BACKGROUND_FLUSH_AVG | 1 | Gauge | | +| mongodbatlas.process.cache.io | Cache throughput (per second) Aggregate of MongoDB Metrics CACHE_BYTES_READ_INTO, CACHE_BYTES_WRITTEN_FROM | By | Gauge | | +| mongodbatlas.process.cache.size | Cache sizes Aggregate of MongoDB Metrics CACHE_USED_BYTES, CACHE_DIRTY_BYTES | By | Sum | | +| mongodbatlas.process.connections | Number of current connections MongoDB Metric CONNECTIONS | {connections} | Sum | | +| mongodbatlas.process.cpu.children.normalized.usage.average | CPU Usage for child processes, normalized to pct Aggregate of MongoDB Metrics PROCESS_NORMALIZED_CPU_CHILDREN_KERNEL, PROCESS_NORMALIZED_CPU_CHILDREN_USER | 1 | Gauge | | +| mongodbatlas.process.cpu.children.normalized.usage.max | CPU Usage for child processes, normalized to pct Aggregate of MongoDB Metrics MAX_PROCESS_NORMALIZED_CPU_CHILDREN_KERNEL, MAX_PROCESS_NORMALIZED_CPU_CHILDREN_USER | 1 | Gauge | | +| mongodbatlas.process.cpu.children.usage.average | CPU Usage for child processes (%) Aggregate of MongoDB Metrics PROCESS_CPU_CHILDREN_KERNEL, PROCESS_CPU_CHILDREN_USER | 1 | Gauge | | +| mongodbatlas.process.cpu.children.usage.max | CPU Usage for child processes (%) Aggregate of MongoDB Metrics MAX_PROCESS_CPU_CHILDREN_USER, MAX_PROCESS_CPU_CHILDREN_KERNEL | 1 | Gauge | | +| mongodbatlas.process.cpu.normalized.usage.average | CPU Usage, normalized to pct Aggregate of MongoDB Metrics PROCESS_NORMALIZED_CPU_KERNEL, PROCESS_NORMALIZED_CPU_USER | 1 | Gauge | | +| mongodbatlas.process.cpu.normalized.usage.max | CPU Usage, normalized to pct Aggregate of MongoDB Metrics MAX_PROCESS_NORMALIZED_CPU_USER, MAX_PROCESS_NORMALIZED_CPU_KERNEL | 1 | Gauge | | +| mongodbatlas.process.cpu.usage.average | CPU Usage (%) Aggregate of MongoDB Metrics PROCESS_CPU_KERNEL, PROCESS_CPU_USER | 1 | Gauge | | +| mongodbatlas.process.cpu.usage.max | CPU Usage (%) Aggregate of MongoDB Metrics MAX_PROCESS_CPU_KERNEL, MAX_PROCESS_CPU_USER | 1 | Gauge | | +| mongodbatlas.process.cursors | Number of cursors Aggregate of MongoDB Metrics CURSORS_TOTAL_OPEN, CURSORS_TOTAL_TIMED_OUT | {cursors} | Gauge | | +| mongodbatlas.process.db.document.rate | Document access rates Aggregate of MongoDB Metrics DOCUMENT_METRICS_UPDATED, DOCUMENT_METRICS_DELETED, DOCUMENT_METRICS_RETURNED, DOCUMENT_METRICS_INSERTED | {documents}/s | Gauge | | +| mongodbatlas.process.db.operations.rate | DB Operation Rates Aggregate of MongoDB Metrics OPCOUNTER_GETMORE, OPERATIONS_SCAN_AND_ORDER, OPCOUNTER_UPDATE, OPCOUNTER_REPL_UPDATE, OPCOUNTER_CMD, OPCOUNTER_DELETE, OPCOUNTER_REPL_DELETE, OPCOUNTER_REPL_CMD, OPCOUNTER_QUERY, OPCOUNTER_REPL_INSERT, OPCOUNTER_INSERT | {operations}/s | Gauge | | +| mongodbatlas.process.db.operations.time | DB Operation Times Aggregate of MongoDB Metrics OP_EXECUTION_TIME_WRITES, OP_EXECUTION_TIME_COMMANDS, OP_EXECUTION_TIME_READS | ms | Sum | | +| mongodbatlas.process.db.query_executor.scanned | Scanned objects Aggregate of MongoDB Metrics QUERY_EXECUTOR_SCANNED_OBJECTS, QUERY_EXECUTOR_SCANNED | {objects}/s | Gauge | | +| mongodbatlas.process.db.query_targeting.scanned_per_returned | Scanned objects per returned Aggregate of MongoDB Metrics QUERY_TARGETING_SCANNED_OBJECTS_PER_RETURNED, QUERY_TARGETING_SCANNED_PER_RETURNED | {scanned}/{returned} | Gauge | | +| mongodbatlas.process.db.storage | Storage used by the database Aggregate of MongoDB Metrics DB_INDEX_SIZE_TOTAL, DB_DATA_SIZE_TOTAL_WO_SYSTEM, DB_STORAGE_TOTAL, DB_DATA_SIZE_TOTAL | By | Gauge | | +| mongodbatlas.process.fts.cpu.usage | Full text search CPU (%) Aggregate of MongoDB Metrics FTS_PROCESS_CPU_USER, FTS_PROCESS_CPU_KERNEL | 1 | Gauge | | +| mongodbatlas.process.global_lock | Number and status of locks Aggregate of MongoDB Metrics GLOBAL_LOCK_CURRENT_QUEUE_WRITERS, GLOBAL_LOCK_CURRENT_QUEUE_READERS, GLOBAL_LOCK_CURRENT_QUEUE_TOTAL | {locks} | Gauge | | +| mongodbatlas.process.index.btree_miss_ratio | Index miss ratio (%) MongoDB Metric INDEX_COUNTERS_BTREE_MISS_RATIO | 1 | Gauge | | +| mongodbatlas.process.index.counters | Indexes Aggregate of MongoDB Metrics INDEX_COUNTERS_BTREE_MISSES, INDEX_COUNTERS_BTREE_ACCESSES, INDEX_COUNTERS_BTREE_HITS | {indexes} | Gauge | | +| mongodbatlas.process.journaling.commits | Journaling commits MongoDB Metric JOURNALING_COMMITS_IN_WRITE_LOCK | {commits} | Gauge | | +| mongodbatlas.process.journaling.data_files | Data file sizes MongoDB Metric JOURNALING_WRITE_DATA_FILES_MB | MiBy | Gauge | | +| mongodbatlas.process.journaling.written | Journals written MongoDB Metric JOURNALING_MB | MiBy | Gauge | | +| mongodbatlas.process.memory.usage | Memory Usage Aggregate of MongoDB Metrics MEMORY_MAPPED, MEMORY_VIRTUAL, COMPUTED_MEMORY, MEMORY_RESIDENT | By | Gauge | | +| mongodbatlas.process.network.io | Network IO Aggregate of MongoDB Metrics NETWORK_BYTES_OUT, NETWORK_BYTES_IN | By/s | Gauge | | +| mongodbatlas.process.network.requests | Network requests MongoDB Metric NETWORK_NUM_REQUESTS | {requests} | Sum | | +| mongodbatlas.process.oplog.rate | Execution rate by operation MongoDB Metric OPLOG_RATE_GB_PER_HOUR | GiBy/h | Gauge | | +| mongodbatlas.process.oplog.time | Execution time by operation Aggregate of MongoDB Metrics OPLOG_MASTER_TIME, OPLOG_SLAVE_LAG_MASTER_TIME, OPLOG_MASTER_LAG_TIME_DIFF | s | Gauge | | +| mongodbatlas.process.page_faults | Page faults Aggregate of MongoDB Metrics GLOBAL_PAGE_FAULT_EXCEPTIONS_THROWN, EXTRA_INFO_PAGE_FAULTS, GLOBAL_ACCESSES_NOT_IN_MEMORY | {faults}/s | Gauge | | +| mongodbatlas.process.restarts | Restarts in last hour Aggregate of MongoDB Metrics RESTARTS_IN_LAST_HOUR | {restarts}/h | Gauge | | +| mongodbatlas.process.tickets | Tickets Aggregate of MongoDB Metrics TICKETS_AVAILABLE_WRITE, TICKETS_AVAILABLE_READS | {tickets} | Gauge | | +| mongodbatlas.system.cpu.normalized.usage.average | System CPU Normalized to pct Aggregate of MongoDB Metrics SYSTEM_NORMALIZED_CPU_IOWAIT, SYSTEM_NORMALIZED_CPU_GUEST, SYSTEM_NORMALIZED_CPU_IRQ, SYSTEM_NORMALIZED_CPU_KERNEL, SYSTEM_NORMALIZED_CPU_STEAL, SYSTEM_NORMALIZED_CPU_SOFTIRQ, SYSTEM_NORMALIZED_CPU_NICE, SYSTEM_NORMALIZED_CPU_USER | 1 | Gauge | | +| mongodbatlas.system.cpu.normalized.usage.max | System CPU Normalized to pct Aggregate of MongoDB Metrics MAX_SYSTEM_NORMALIZED_CPU_USER, MAX_SYSTEM_NORMALIZED_CPU_NICE, MAX_SYSTEM_NORMALIZED_CPU_IOWAIT, MAX_SYSTEM_NORMALIZED_CPU_SOFTIRQ, MAX_SYSTEM_NORMALIZED_CPU_STEAL, MAX_SYSTEM_NORMALIZED_CPU_KERNEL, MAX_SYSTEM_NORMALIZED_CPU_GUEST, MAX_SYSTEM_NORMALIZED_CPU_IRQ | 1 | Gauge | | +| mongodbatlas.system.cpu.usage.average | System CPU Usage (%) Aggregate of MongoDB Metrics SYSTEM_CPU_USER, SYSTEM_CPU_GUEST, SYSTEM_CPU_SOFTIRQ, SYSTEM_CPU_IRQ, SYSTEM_CPU_KERNEL, SYSTEM_CPU_IOWAIT, SYSTEM_CPU_NICE, SYSTEM_CPU_STEAL | 1 | Gauge | | +| mongodbatlas.system.cpu.usage.max | System CPU Usage (%) Aggregate of MongoDB Metrics MAX_SYSTEM_CPU_SOFTIRQ, MAX_SYSTEM_CPU_IRQ, MAX_SYSTEM_CPU_GUEST, MAX_SYSTEM_CPU_IOWAIT, MAX_SYSTEM_CPU_NICE, MAX_SYSTEM_CPU_KERNEL, MAX_SYSTEM_CPU_USER, MAX_SYSTEM_CPU_STEAL | 1 | Gauge | | +| mongodbatlas.system.fts.cpu.normalized.usage | Full text search disk usage (%) Aggregate of MongoDB Metrics FTS_PROCESS_NORMALIZED_CPU_USER, FTS_PROCESS_NORMALIZED_CPU_KERNEL | 1 | Gauge | | +| mongodbatlas.system.fts.cpu.usage | Full-text search (%) | 1 | Gauge | | +| mongodbatlas.system.fts.disk.used | Full text search disk usage MongoDB Metric FTS_DISK_USAGE | By | Gauge | | +| mongodbatlas.system.fts.memory.usage | Full-text search Aggregate of MongoDB Metrics FTS_MEMORY_MAPPED, FTS_PROCESS_SHARED_MEMORY, FTS_PROCESS_RESIDENT_MEMORY, FTS_PROCESS_VIRTUAL_MEMORY | MiBy | Sum | | +| mongodbatlas.system.memory.usage.average | System Memory Usage Aggregate of MongoDB Metrics SYSTEM_MEMORY_AVAILABLE, SYSTEM_MEMORY_BUFFERS, SYSTEM_MEMORY_USED, SYSTEM_MEMORY_CACHED, SYSTEM_MEMORY_SHARED, SYSTEM_MEMORY_FREE | KiBy | Gauge | | +| mongodbatlas.system.memory.usage.max | System Memory Usage Aggregate of MongoDB Metrics MAX_SYSTEM_MEMORY_CACHED, MAX_SYSTEM_MEMORY_AVAILABLE, MAX_SYSTEM_MEMORY_USED, MAX_SYSTEM_MEMORY_BUFFERS, MAX_SYSTEM_MEMORY_FREE, MAX_SYSTEM_MEMORY_SHARED | KiBy | Gauge | | +| mongodbatlas.system.network.io.average | System Network IO Aggregate of MongoDB Metrics SYSTEM_NETWORK_IN, SYSTEM_NETWORK_OUT | By/s | Gauge | | +| mongodbatlas.system.network.io.max | System Network IO Aggregate of MongoDB Metrics MAX_SYSTEM_NETWORK_OUT, MAX_SYSTEM_NETWORK_IN | By/s | Gauge | | +| mongodbatlas.system.paging.io.average | Swap IO Aggregate of MongoDB Metrics SWAP_IO_IN, SWAP_IO_OUT | {pages}/s | Gauge | | +| mongodbatlas.system.paging.io.max | Swap IO Aggregate of MongoDB Metrics MAX_SWAP_IO_IN, MAX_SWAP_IO_OUT | {pages}/s | Gauge | | +| mongodbatlas.system.paging.usage.average | Swap usage Aggregate of MongoDB Metrics SWAP_USAGE_FREE, SWAP_USAGE_USED | KiBy | Gauge | | +| mongodbatlas.system.paging.usage.max | Swap usage Aggregate of MongoDB Metrics MAX_SWAP_USAGE_FREE, MAX_SWAP_USAGE_USED | KiBy | Gauge | | ## Attributes | Name | Description | | ---- | ----------- | -| assert_type | MongoDB assertion type | -| btree_counter_type | Database index effectiveness | -| cache_direction | Whether read into or written from | -| cache_status | Cache status | -| cluster_role | Whether process is acting as replica or primary | -| cpu_state | CPU state | -| cursor_state | Whether cursor is open or timed out | -| direction | Network traffic direction | -| disk_direction | Measurement type for disk operation | -| disk_status | Disk measurement type | -| document_status | Status of documents in the database | -| execution_type | Type of command | -| global_lock_state | Which queue is locked | -| memory_issue_type | Type of memory issue encountered | -| memory_state | Memory usage type | -| object_type | MongoDB object type | -| operation | Type of database operation | -| oplog_type | Oplog type | -| scanned_type | Objects or indexes scanned during query | -| storage_status | Views on database size | -| ticket_type | Type of ticket available | \ No newline at end of file diff --git a/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics.go b/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics.go index 68102079b8af..6b4bdd1e440b 100644 --- a/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics.go +++ b/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics.go @@ -845,321 +845,9 @@ var Metrics = &metricStruct{ // manipulating those metrics. M is an alias for Metrics var M = Metrics -// Labels contains the possible metric labels that can be used. -var Labels = struct { - // AssertType (MongoDB assertion type) - AssertType string - // BtreeCounterType (Database index effectiveness) - BtreeCounterType string - // CacheDirection (Whether read into or written from) - CacheDirection string - // CacheStatus (Cache status) - CacheStatus string - // ClusterRole (Whether process is acting as replica or primary) - ClusterRole string - // CPUState (CPU state) - CPUState string - // CursorState (Whether cursor is open or timed out) - CursorState string - // Direction (Network traffic direction) - Direction string - // DiskDirection (Measurement type for disk operation) - DiskDirection string - // DiskStatus (Disk measurement type) - DiskStatus string - // DocumentStatus (Status of documents in the database) - DocumentStatus string - // ExecutionType (Type of command) - ExecutionType string - // GlobalLockState (Which queue is locked) - GlobalLockState string - // MemoryIssueType (Type of memory issue encountered) - MemoryIssueType string - // MemoryState (Memory usage type) - MemoryState string - // ObjectType (MongoDB object type) - ObjectType string - // Operation (Type of database operation) - Operation string - // OplogType (Oplog type) - OplogType string - // ScannedType (Objects or indexes scanned during query) - ScannedType string - // StorageStatus (Views on database size) - StorageStatus string - // TicketType (Type of ticket available) - TicketType string -}{ - "assert_type", - "btree_counter_type", - "cache_direction", - "cache_status", - "cluster_role", - "cpu_state", - "cursor_state", - "direction", - "disk_direction", - "disk_status", - "document_status", - "execution_type", - "global_lock_state", - "memory_issue_type", - "memory_state", - "object_type", - "operation", - "oplog_type", - "scanned_type", - "storage_status", - "ticket_type", -} - -// L contains the possible metric labels that can be used. L is an alias for -// Labels. -var L = Labels - -// LabelAssertType are the possible values that the label "assert_type" can have. -var LabelAssertType = struct { - Regular string - Warning string - Msg string - User string -}{ - "regular", - "warning", - "msg", - "user", -} - -// LabelBtreeCounterType are the possible values that the label "btree_counter_type" can have. -var LabelBtreeCounterType = struct { - Accesses string - Hits string - Misses string -}{ - "accesses", - "hits", - "misses", -} - -// LabelCacheDirection are the possible values that the label "cache_direction" can have. -var LabelCacheDirection = struct { - ReadInto string - WrittenFrom string -}{ - "read_into", - "written_from", -} - -// LabelCacheStatus are the possible values that the label "cache_status" can have. -var LabelCacheStatus = struct { - Dirty string - Used string -}{ - "dirty", - "used", -} - -// LabelClusterRole are the possible values that the label "cluster_role" can have. -var LabelClusterRole = struct { - Primary string - Replica string -}{ - "primary", - "replica", -} - -// LabelCPUState are the possible values that the label "cpu_state" can have. -var LabelCPUState = struct { - Kernel string - User string - Nice string - Iowait string - Irq string - Softirq string - Guest string - Steal string -}{ - "kernel", - "user", - "nice", - "iowait", - "irq", - "softirq", - "guest", - "steal", -} - -// LabelCursorState are the possible values that the label "cursor_state" can have. -var LabelCursorState = struct { - TimedOut string - Open string -}{ - "timed_out", - "open", -} - -// LabelDirection are the possible values that the label "direction" can have. -var LabelDirection = struct { - Receive string - Transmit string -}{ - "receive", - "transmit", -} - -// LabelDiskDirection are the possible values that the label "disk_direction" can have. -var LabelDiskDirection = struct { - Read string - Write string - Total string -}{ - "read", - "write", - "total", -} - -// LabelDiskStatus are the possible values that the label "disk_status" can have. -var LabelDiskStatus = struct { - Free string - Used string -}{ - "free", - "used", -} +// Attributes contains the possible metric attributes that can be used. +var Attributes = struct { +}{} -// LabelDocumentStatus are the possible values that the label "document_status" can have. -var LabelDocumentStatus = struct { - Returned string - Inserted string - Updated string - Deleted string -}{ - "returned", - "inserted", - "updated", - "deleted", -} - -// LabelExecutionType are the possible values that the label "execution_type" can have. -var LabelExecutionType = struct { - Reads string - Writes string - Commands string -}{ - "reads", - "writes", - "commands", -} - -// LabelGlobalLockState are the possible values that the label "global_lock_state" can have. -var LabelGlobalLockState = struct { - CurrentQueueTotal string - CurrentQueueReaders string - CurrentQueueWriters string -}{ - "current_queue_total", - "current_queue_readers", - "current_queue_writers", -} - -// LabelMemoryIssueType are the possible values that the label "memory_issue_type" can have. -var LabelMemoryIssueType = struct { - ExtraInfo string - GlobalAccessesNotInMemory string - ExceptionsThrown string -}{ - "extra_info", - "global_accesses_not_in_memory", - "exceptions_thrown", -} - -// LabelMemoryState are the possible values that the label "memory_state" can have. -var LabelMemoryState = struct { - Resident string - Virtual string - Mapped string - Computed string -}{ - "resident", - "virtual", - "mapped", - "computed", -} - -// LabelObjectType are the possible values that the label "object_type" can have. -var LabelObjectType = struct { - Collection string - Index string - Extent string - Object string - View string - Storage string - Data string -}{ - "collection", - "index", - "extent", - "object", - "view", - "storage", - "data", -} - -// LabelOperation are the possible values that the label "operation" can have. -var LabelOperation = struct { - Cmd string - Query string - Update string - Delete string - Getmore string - Insert string -}{ - "cmd", - "query", - "update", - "delete", - "getmore", - "insert", -} - -// LabelOplogType are the possible values that the label "oplog_type" can have. -var LabelOplogType = struct { - SlaveLagMasterTime string - MasterTime string - MasterLagTimeDiff string -}{ - "slave_lag_master_time", - "master_time", - "master_lag_time_diff", -} - -// LabelScannedType are the possible values that the label "scanned_type" can have. -var LabelScannedType = struct { - IndexItems string - Objects string -}{ - "index_items", - "objects", -} - -// LabelStorageStatus are the possible values that the label "storage_status" can have. -var LabelStorageStatus = struct { - Total string - DataSize string - IndexSize string - DataSizeWoSystem string -}{ - "total", - "data_size", - "index_size", - "data_size_wo_system", -} - -// LabelTicketType are the possible values that the label "ticket_type" can have. -var LabelTicketType = struct { - AvailableReads string - AvailableWrites string -}{ - "available_reads", - "available_writes", -} +// A is an alias for Attributes. +var A = Attributes