-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89cdbf9
commit d423695
Showing
6 changed files
with
440 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
COUNT_METRICS = { | ||
'mapr.cache.lookups_data', | ||
'mapr.cache.lookups_dir', | ||
'mapr.cache.lookups_inode', | ||
'mapr.cache.lookups_largefile', | ||
'mapr.cache.lookups_meta', | ||
'mapr.cache.lookups_smallfile', | ||
'mapr.cache.lookups_table', | ||
'mapr.cache.misses_data', | ||
'mapr.cache.misses_dir', | ||
'mapr.cache.misses_inode', | ||
'mapr.cache.misses_largefile', | ||
'mapr.cache.misses_meta', | ||
'mapr.cache.misses_smallfile', | ||
'mapr.cache.misses_table', | ||
'mapr.cldb.rpc_received', | ||
'mapr.cldb.rpcs_failed', | ||
'mapr.db.append_bytes', | ||
'mapr.db.append_rpcrows', | ||
'mapr.db.append_rpcs', | ||
'mapr.db.cdc.sent_bytes', | ||
'mapr.db.checkandput_bytes', | ||
'mapr.db.checkandput_rpcrows', | ||
'mapr.db.checkandput_rpcs', | ||
'mapr.db.flushes', | ||
'mapr.db.forceflushes', | ||
'mapr.db.fullcompacts', | ||
'mapr.db.get_bytes', | ||
'mapr.db.get_readrows', | ||
'mapr.db.get_resprows', | ||
'mapr.db.get_rpcs', | ||
'mapr.db.increment_bytes', | ||
'mapr.db.increment_rpcrows', | ||
'mapr.db.increment_rpcs', | ||
'mapr.db.minicompacts', | ||
'mapr.db.put_bytes', | ||
'mapr.db.put_readrows', | ||
'mapr.db.put_rpcrows', | ||
'mapr.db.put_rpcs', | ||
'mapr.db.repl.sent_bytes', | ||
'mapr.db.scan_bytes', | ||
'mapr.db.scan_readrows', | ||
'mapr.db.scan_resprows', | ||
'mapr.db.scan_rpcs', | ||
'mapr.db.table.read_bytes', | ||
'mapr.db.table.read_rows', | ||
'mapr.db.table.resp_rows', | ||
'mapr.db.table.rpcs', | ||
'mapr.db.table.value_cache_hits', | ||
'mapr.db.table.value_cache_lookups', | ||
'mapr.db.table.write_bytes', | ||
'mapr.db.table.write_rows', | ||
'mapr.db.ttlcompacts', | ||
'mapr.db.updateandget_bytes', | ||
'mapr.db.updateandget_rpcrows', | ||
'mapr.db.updateandget_rpcs', | ||
'mapr.db.valuecache_hits', | ||
'mapr.db.valuecache_lookups', | ||
'mapr.drill.queries_completed', | ||
'mapr.fs.bulk_writes', | ||
'mapr.fs.bulk_writesbytes', | ||
'mapr.fs.kvstore_delete', | ||
'mapr.fs.kvstore_insert', | ||
'mapr.fs.kvstore_lookup', | ||
'mapr.fs.kvstore_scan', | ||
'mapr.fs.local_readbytes', | ||
'mapr.fs.local_reads', | ||
'mapr.fs.local_writebytes', | ||
'mapr.fs.local_writes', | ||
'mapr.fs.read_bytes', | ||
'mapr.fs.read_cachehits', | ||
'mapr.fs.read_cachemisses', | ||
'mapr.fs.reads', | ||
'mapr.fs.statstype_create', | ||
'mapr.fs.statstype_lookup', | ||
'mapr.fs.statstype_read', | ||
'mapr.fs.statstype_write', | ||
'mapr.fs.write_bytes', | ||
'mapr.fs.writes', | ||
'mapr.io.write_bytes', | ||
'mapr.io.writes', | ||
'mapr.rpc.bytes_recd', | ||
'mapr.rpc.bytes_sent', | ||
'mapr.rpc.calls_recd', | ||
'mapr.streams.listen_bytes', | ||
'mapr.streams.listen_msgs', | ||
'mapr.streams.listen_rpcs', | ||
'mapr.streams.produce_bytes', | ||
'mapr.streams.produce_msgs', | ||
'mapr.streams.produce_rpcs', | ||
'mapr.volmetrics.read_ops', | ||
'mapr.volmetrics.write_ops' | ||
} | ||
|
||
MONOTONIC_COUNTER_METRICS = { | ||
'mapr.cldb.containers_created', | ||
'mapr.process.context_switch_involuntary', | ||
'mapr.process.context_switch_voluntary', | ||
'mapr.process.cpu_time.syst', | ||
'mapr.process.cpu_time.user', | ||
'mapr.process.disk_octets.read', | ||
'mapr.process.disk_octets.write', | ||
'mapr.process.disk_ops.read', | ||
'mapr.process.disk_ops.write', | ||
'mapr.process.page_faults.majflt', | ||
'mapr.process.page_faults.minflt', | ||
} | ||
|
||
GAUGE_METRICS = { | ||
'mapr.alarms.alarm_raised', | ||
'mapr.cldb.cluster_cpu_total', | ||
'mapr.cldb.cluster_cpubusy_percent', | ||
'mapr.cldb.cluster_disk_capacity', | ||
'mapr.cldb.cluster_diskspace_used', | ||
'mapr.cldb.cluster_memory_capacity', | ||
'mapr.cldb.cluster_memory_used', | ||
'mapr.cldb.containers', | ||
'mapr.cldb.containers_unusable', | ||
'mapr.cldb.disk_space_available', | ||
'mapr.cldb.nodes_in_cluster', | ||
'mapr.cldb.nodes_offline', | ||
'mapr.cldb.storage_pools_cluster', | ||
'mapr.cldb.storage_pools_offline', | ||
'mapr.cldb.volumes', | ||
'mapr.db.cdc.pending_bytes', | ||
'mapr.db.get_currpcs', | ||
'mapr.db.index.pending_bytes', | ||
'mapr.db.put_currpcs', | ||
'mapr.db.repl.pending_bytes', | ||
'mapr.db.scan_currpcs', | ||
'mapr.db.table.latency', | ||
'mapr.db.valuecache_usedSize', | ||
'mapr.drill.allocator_root_peak', | ||
'mapr.drill.allocator_root_used', | ||
'mapr.drill.blocked_count', | ||
'mapr.drill.count', | ||
'mapr.drill.fd_usage', | ||
'mapr.drill.fragments_running', | ||
'mapr.drill.heap_used', | ||
'mapr.drill.non_heap_used', | ||
'mapr.drill.queries_running', | ||
'mapr.drill.runnable_count', | ||
'mapr.drill.waiting_count', | ||
'mapr.io.read_bytes', | ||
'mapr.io.reads', | ||
'mapr.process.cpu_percent', | ||
'mapr.process.data', | ||
'mapr.process.mem_percent', | ||
'mapr.process.rss', | ||
'mapr.process.vm', | ||
'mapr.status.ok', | ||
'mapr.streams.listen_currpcs', | ||
'mapr.topology.disks_total_capacity', | ||
'mapr.topology.disks_used_capacity', | ||
'mapr.topology.utilization', | ||
'mapr.volmetrics.read_latency', | ||
'mapr.volmetrics.read_throughput', | ||
'mapr.volmetrics.write_latency', | ||
'mapr.volmetrics.write_throughput', | ||
'mapr.volume.logical_used', | ||
'mapr.volume.quota', | ||
'mapr.volume.snapshot_used', | ||
'mapr.volume.total_used', | ||
'mapr.volume.used' | ||
} | ||
|
||
ALLOWED_METRICS = GAUGE_METRICS.union(COUNT_METRICS).union(MONOTONIC_COUNTER_METRICS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
init_config: | ||
|
||
instances: | ||
## @param hostname - string - required | ||
## The MapR host to monitor. | ||
- | ||
## @param hostname - string - optional | ||
## The MapR host to monitor. This is used to find the correct topic to read metrics from. | ||
## https://mapr.com/docs/61/AdministratorGuide/spyglass-on-streams.html | ||
# | ||
- mapr_host: <MAPR_HOST> | ||
# hostname: <MAPR_HOST> | ||
|
||
## @param topic_path - string - required | ||
## @param stream_path - string - optional - default: /var/mapr/mapr.monitoring/metricstreams | ||
## The MapR topic path. | ||
# | ||
topic_path: /var/mapr/mapr.monitoring/metricstreams | ||
# stream_path: /var/mapr/mapr.monitoring/metricstreams | ||
|
||
## @param whitelist - list - required | ||
## List regexes of metrics to collect. They will be prefixed with `mapr.` | ||
## @param metrics - list - optional - default: ['.*'] | ||
## List regexes of metrics to collect. Note that you can only collect metrics | ||
## starting with "mapr." | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
FlorianVeaux
Author
Member
|
||
# | ||
whitelist: | ||
- fs.* | ||
# metrics: ['.*'] | ||
|
||
## @param mapr_ticketfile_location - string - optional | ||
## @param ticket_location - string - optional | ||
## The path to the MapR user ticket, if included it overrides the MAPR_TICKETFILE_LOCATION environment variable. | ||
## Either the environment variable or this config option needs to be set if security is enabled on the cluster. | ||
# | ||
# mapr_ticketfile_location: <MAPR_TICKETFILE_LOCATION> | ||
# ticket_location: <TICKETFILE_LOCATION> | ||
|
||
## @param tags - list of key:value elements - optional | ||
## A list of tags to attach to every metric, event, and service check emitted by this integration. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
I think this can be mislead people to add mapr.foo.* to the list. That can be ok too if instead of adding the prefix we check that is present and throw a configuration error otherwise. Maybe that's easier on the users