對於 VMware Aria Operations 支援的應用程式服務和自訂監控外掛程式,必須遵循一些組態詳細資料。
支援的應用程式服務的組態詳細資料 |
---|
Active Directory
以下是組態詳細資料:
[[inputs.win_perf_counters]] [[inputs.win_perf_counters.object]] ObjectName = "DirectoryServices" Counters = ["LDAP Active Threads","LDAP Client Sessions","LDAP Writes/sec","LDAP Searches/sec","LDAP Successful Binds/sec","LDAP New Connections/sec","LDAP Closed Connections/sec","LDAP UDP operations/sec","DS Threads in Use","DS Directory Writes/sec","DS Directory Reads/sec","DS Directory Searches/sec","DS Client Binds/sec","DS Server Binds/sec","DRA Pending Replication Synchronizations","DRA Sync Requests Made","DRA Sync Requests Successful","DRA Pending Replication Operations","DRA Inbound Objects/sec","DRA Inbound Bytes Total/sec","DRA Outbound Objects/sec","DRA Outbound Bytes Total/sec","Base Searches/sec","Database adds/sec","Database deletes/sec","Database modifys/sec","Database recycles/sec"] Instances = ["*"] Measurement = "ad.active.directory" [[inputs.win_perf_counters.object]] ObjectName = "Security System-Wide Statistics" Counters = ["NTLM Authentications","Kerberos Authentications","KDC AS Requests","KDC TGS Requests","Digest Authentications"] Instances = ["------"] Measurement = "ad.security.statistics" [[inputs.win_perf_counters.object]] ObjectName = "Database" Instances = ["*"] Counters = ["Database Cache % Hit","Database Cache Page Faults/sec","Database Page Faults/sec","Database Cache Page Fault Stalls/sec","Database Cache Size"] Measurement = "ad.database" #IncludeTotal=false #Set to true to include _Total instance when querying for all (*). [[inputs.win_perf_counters.object]] ObjectName = "DFS Namespace Service Referrals" Instances = ["*"] Counters = ["Requests Processed","Requests Failed","Avg. Response Time"] Measurement = "ad.dfsn" [[inputs.win_perf_counters.object]] ObjectName = "DFS Replication Service Volumes" Instances = ["*"] Counters = ["Data Lookups","Database Lookups","Database Commits"] Measurement = "ad.dfs.replications" [[inputs.win_perf_counters.object]] ObjectName = "DNS" Counters = ["Dynamic Update Received","Dynamic Update Rejected","Recursive Queries","Recursive Queries Failure","Recursive Query Failure","Secure Update Failure","Total Query Received","Total Response Sent"] Instances = ["*"] Measurement = "ad.dns" |
ActiveMQ
以下是組態詳細資料:
# Read Apache ActiveMQ information. [[inputs.jolokia2_agent]] urls = ["http://localhost:8161/api/jolokia"] name_prefix = "activemq." plugin_name_override="activemq" username = "user" password = "user" ### JVM Generic [[inputs.jolokia2_agent.metric]] name = "OperatingSystem" mbean = "java.lang:type=OperatingSystem" paths = ["ProcessCpuLoad","SystemLoadAverage","SystemCpuLoad"] [[inputs.jolokia2_agent.metric]] name = "OperatingSystem" mbean = "java.lang:type=OperatingSystem" paths = ["MaxFileDescriptorCount","OpenFileDescriptorCount"] [[inputs.jolokia2_agent.metric]] name = "jvm_runtime" mbean = "java.lang:type=Runtime" paths = ["Uptime"] [[inputs.jolokia2_agent.metric]] name = "jvm_memory" mbean = "java.lang:type=Memory" paths = ["HeapMemoryUsage", "NonHeapMemoryUsage", "ObjectPendingFinalizationCount"] [[inputs.jolokia2_agent.metric]] name = "jvm_garbage_collector" mbean = "java.lang:name=*,type=GarbageCollector" paths = ["CollectionTime", "CollectionCount"] tag_keys = ["name"] [[inputs.jolokia2_agent.metric]] name = "jvm_memory_pool" mbean = "java.lang:name=*,type=MemoryPool" paths = ["Usage", "PeakUsage", "CollectionUsage"] tag_keys = ["name"] tag_prefix = "pool_" ### ACTIVEMQ [[inputs.jolokia2_agent.metric]] name = "queue" mbean = "org.apache.activemq:brokerName=*,destinationName=*,destinationType=Queue,type=Broker" paths = ["QueueSize","EnqueueCount","ConsumerCount","DispatchCount","DequeueCount","ProducerCount","InFlightCount"] tag_keys = ["brokerName","destinationName"] [[inputs.jolokia2_agent.metric]] name = "topic" mbean = "org.apache.activemq:brokerName=*,destinationName=*,destinationType=Topic,type=Broker" paths = ["ProducerCount","DequeueCount","ConsumerCount","QueueSize","EnqueueCount"] tag_keys = ["brokerName","destinationName"] [[inputs.jolokia2_agent.metric]] name = "broker" mbean = "org.apache.activemq:brokerName=*,type=Broker" paths = ["TotalConsumerCount","TotalMessageCount","TotalEnqueueCount","TotalDequeueCount","MemoryLimit","MemoryPercentUsage","StoreLimit","StorePercentUsage","TempPercentUsage","TempLimit"] tag_keys = ["brokerName"] [[inputs.jolokia2_agent.metric]] name = "java_class_loading" mbean = "java.lang:type=ClassLoading" paths = ["LoadedClassCount", "UnloadedClassCount", "TotalLoadedClassCount"] [[inputs.jolokia2_agent.metric]] name = "java_threading" mbean = "java.lang:type=Threading" paths = ["ThreadCount"] [[inputs.jolokia2_agent.metric]] name = "java_buffer_pool" mbean = "java.nio:name=*,type=BufferPool" paths = ["Count", "MemoryUsed", "TotalCapacity"] tag_keys = ["name"] |
Apache HTTPD
以下是組態詳細資料:
# Read Apache status information (mod_status) [[inputs.apache]] ## An array of URLs to gather from, must be directed at the machine ## readable version of the mod_status page including the auto query string. ## Default is "http://localhost/server-status?auto". ## ##urls = ["http://localhost/server-status?auto"] ## urls = ["http://127.0.0.1:80/server-status?auto"] ## Credentials for basic HTTP authentication. # username = "myuser" #password = "mypassword" ## Maximum time to receive response. # response_timeout = "5s" ## Optional SSL Config # ssl_ca = "/etc/telegraf/ca.pem" # ssl_cert = "/etc/telegraf/cert.pem" # ssl_key = "/etc/telegraf/key.pem" ## Use SSL but skip chain & host verification insecure_skip_verify = true |
Cassandra
以下是組態詳細資料:
# Read Cassandra metrics through Jolokia [[inputs.cassandra]] context = "/jolokia/read" ## List of cassandra servers exposing jolokia read service servers = ["myuser:[email protected]:8778","10.10.10.2:8778",":8778"] ## List of metrics collected on above servers ## Each metric consists of a jmx path. ## This will collect all heap memory usage metrics from the jvm and ## ReadLatency metrics for all keyspaces and tables. ## "type=Table" in the query works with Cassandra3.0. Older versions might ## need to use "type=ColumnFamily" metrics = [ "/java.lang:type=Memory/HeapMemoryUsage", "/org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency" ] |
Hyper-V
以下是組態詳細資料:
[[inputs.win_perf_counters]] [[inputs.win_perf_counters.object]] ObjectName = "Hyper-V Virtual Machine Health Summary" Instances = ["------"] Measurement = "hyperv.vm.health" Counters = ["Health Ok", "Health Critical"] [[inputs.win_perf_counters.object]] ObjectName = "Hyper-V Dynamic Memory VM" Instances = ["*"] Measurement = "hyperv.vm.memory" Counters = ["Physical Memory", "Added Memory", "Guest Visible Physical Memory"] [[inputs.win_perf_counters.object]] ObjectName = "Hyper-V Hypervisor Virtual Processor" Instances = ["*"] Measurement = "hyperv.hypervisor.virtual.processor" Counters = ["% Guest Run Time", "% Hypervisor Run Time", "% Total Run Time"] [[inputs.win_perf_counters.object]] ObjectName = "Hyper-V Hypervisor Root Virtual Processor" Instances = ["*"] Measurement = "hyperv.hypervisor.root.virtual.processor" Counters = ["% Guest Run Time", "% Hypervisor Run Time", "% Total Run Time"] IncludeTotal = true [[inputs.win_perf_counters.object]] ObjectName = "Hyper-V Virtual IDE Controller (Emulated)" Instances = ["*"] Measurement = "hyperv.virtual.ide.controller" Counters = ["Write Bytes/sec", "Read Bytes/sec", "Written Sectors/sec", "Read Sectors/sec"] [[inputs.win_perf_counters.object]] ObjectName = "Hyper-V Virtual Network Adapter" Instances = ["*"] Measurement = "hyperv.virtual.net.adapter" Counters = ["Bytes/sec", "Bytes Received/sec", "Bytes Sent/Sec", "Packets Sent/sec", "Packets Received/sec", "Packets/sec"] [[inputs.win_perf_counters.object]] ObjectName = "Hyper-V Legacy Network Adapter" Instances = ["*"] Measurement = "hyperv.legacy.net.adapter" Counters = ["Bytes Dropped", "Bytes Received/sec", "Bytes Sent/Sec"] [[inputs.win_perf_counters.object]] ObjectName = "Hyper-V Hypervisor Partition" Instances = ["*"] Measurement = "hyperv.hypervisor.partition" Counters = ["Virtual Processors"] [[inputs.win_perf_counters.object]] ObjectName = "Hyper-V Virtual Storage Device" Instances = ["*"] Measurement = "hyperv.virtual.storage.device" Counters = [ "Maximum Bandwidth", "Read Bytes/sec", "Write Bytes/sec", "Queue Length", "Lower Latency", "Minimum IO Rate", "Maximum IO Rate", "Latency", "Throughput", "Lower Queue Length", "Queue Length", "Normalized Throughput", "Write Operations/Sec", "Read Operations/Sec", "Write Bytes/sec", "Read Bytes/sec", "Error Count", "Flush Count", "Write Count", "Read Count" ] [[inputs.win_perf_counters.object]] ObjectName = "Processor" Instances = ["*"] Counters = ["% Idle Time", "% Interrupt Time", "% Privileged Time", "% Processor Time", "% User Time", "Interrupts/sec"] Measurement = "hyperv.host.cpu" IncludeTotal = true [[inputs.win_perf_counters.object]] ObjectName = "LogicalDisk" Instances = ["*"] Counters = ["% Disk Read Time", "% Disk Write Time", "% Free Space", "% Idle Time", "Avg. Disk Bytes/Read", "Avg. Disk Bytes/Write", "Avg. Disk Queue Length", "Avg. Disk sec/Read", "Avg. Disk sec/Write", "Avg. Disk Write Queue Length", "Free Megabytes", "Split IO/Sec"] Measurement = "hyperv.host.disk" IncludeTotal = true [[inputs.win_perf_counters.object]] ObjectName = "Memory" Counters = ["Available Bytes", "Cache Bytes", "Committed Bytes", "Cache Faults/sec", "Demand Zero Faults/sec", "Page Faults/sec", "Pages/sec", "Transition Faults/sec", "Pool Nonpaged Bytes", "Pool Paged Bytes"] Instances = ["------"] Measurement = "hyperv.host.mem" [[inputs.win_perf_counters.object]] ObjectName = "Network Interface" Counters = ["Bytes Received/sec", "Bytes Sent/sec", "Packets Outbound Discarded", "Packets Outbound Errors", "Packets Received Discarded", "Packets Received Errors", "Packets Received/sec", "Packets Sent/sec", "Bytes Total/sec", "Current Bandwidth", "Output Queue Length"] Instances = ["*"] Measurement = "hyperv.host.net" IncludeTotal = true [[inputs.win_perf_counters.object]] ObjectName = "System" Counters = ["Context Switches/sec", "Processes", "Processor Queue Length", "System Calls/sec", "System Up Time", "Threads"] Instances = ["------"] Measurement = "hyperv.host.system" [[inputs.win_perf_counters.object]] ObjectName = "Process" Counters = ["% Privileged Time", "% Processor Time", "% User Time", "Elapsed Time", "Handle Count", "IO Read Bytes/sec", "IO Read Operations/sec", "IO Write Bytes/sec", "IO Write Operations/sec", "Private Bytes", "Thread Count", "Virtual Bytes", "Working Set", "Working Set - Private"] Instances = ["_Total"] Measurement = "hyperv.host.process" |
Java 外掛程式
以下是組態詳細資料:
[[inputs.jolokia2_agent]] # Prefix to attach to the measurement name name_prefix = "java." # Add agents URLs to query urls = ["http://localhost:8080/jolokia"] #username and password are mandatory for Jolokia 1.6 or later #username = <jolokia role username> #password = <jolokia role password> # response_timeout = "5s" ## Optional TLS config # tls_ca = "/var/private/ca.pem" # tls_cert = "/var/private/client.pem" # tls_key = "/var/private/client-key.pem" # insecure_skip_verify = false ### JVM Generic [[inputs.jolokia2_agent.metric]] name = "OperatingSystem" mbean = "java.lang:type=OperatingSystem" paths = ["ProcessCpuLoad","SystemLoadAverage","SystemCpuLoad"] [[inputs.jolokia2_agent.metric]] name = "jvm_runtime" mbean = "java.lang:type=Runtime" paths = ["Uptime"] [[inputs.jolokia2_agent.metric]] name = "jvm_memory" mbean = "java.lang:type=Memory" paths = ["HeapMemoryUsage", "NonHeapMemoryUsage", "ObjectPendingFinalizationCount"] [[inputs.jolokia2_agent.metric]] name = "jvm_garbage_collector" mbean = "java.lang:name=*,type=GarbageCollector" paths = ["CollectionTime", "CollectionCount"] tag_keys = ["name"] [[inputs.jolokia2_agent.metric]] name = "jvm_memory_pool" mbean = "java.lang:name=*,type=MemoryPool" paths = ["Usage", "PeakUsage", "CollectionUsage"] tag_keys = ["name"] tag_prefix = "pool_" ### TOMCAT [[inputs.jolokia2_agent.metric]] name = "GlobalRequestProcessor" mbean = "Catalina:name=*,type=GlobalRequestProcessor" paths = ["requestCount","bytesReceived","bytesSent","processingTime","errorCount"] tag_keys = ["name"] [[inputs.jolokia2_agent.metric]] name = "JspMonitor" mbean = "Catalina:J2EEApplication=*,J2EEServer=*,WebModule=*,name=jsp,type=JspMonitor" paths = ["jspReloadCount","jspCount","jspUnloadCount"] tag_keys = ["J2EEApplication","J2EEServer","WebModule"] [[inputs.jolokia2_agent.metric]] name = "ThreadPool" mbean = "Catalina:name=*,type=ThreadPool" paths = ["maxThreads","currentThreadCount","currentThreadsBusy"] tag_keys = ["name"] [[inputs.jolokia2_agent.metric]] name = "Servlet" mbean = "Catalina:J2EEApplication=*,J2EEServer=*,WebModule=*,j2eeType=Servlet,name=*" paths = ["processingTime","errorCount","requestCount"] tag_keys = ["name","J2EEApplication","J2EEServer","WebModule"] [[inputs.jolokia2_agent.metric]] name = "Cache" mbean = "Catalina:context=*,host=*,name=Cache,type=WebResourceRoot" paths = ["hitCount","lookupCount"] tag_keys = ["context","host"] |
JBoss 伺服器
以下是組態詳細資料:
# Read JBoss status information (mod_status) [[inputs.jolokia2_agent]] ##urls = ["http://localhost:8380/jolokia"] urls = ["http://127.0.0.1:8082/jolokia"] name_prefix = "jboss." ## Optional SSL Config # ssl_ca = "/etc/telegraf/ca.pem" # ssl_cert = "/etc/telegraf/cert.pem" # ssl_key = "/etc/telegraf/key.pem" ## Use SSL but skip chain & host verification insecure_skip_verify = true ### JVM Generic [[inputs.jolokia2_agent.metric]] name = "OperatingSystem" mbean = "java.lang:type=OperatingSystem" paths = ["ProcessCpuLoad","SystemLoadAverage","SystemCpuLoad"] [[inputs.jolokia2_agent.metric]] name = "OperatingSystem" mbean = "java.lang:type=OperatingSystem" paths = ["MaxFileDescriptorCount","OpenFileDescriptorCount"] [[inputs.jolokia2_agent.metric]] name = "jvm_runtime" mbean = "java.lang:type=Runtime" paths = ["Uptime"] [[inputs.jolokia2_agent.metric]] name = "jvm_memory" mbean = "java.lang:type=Memory" paths = ["HeapMemoryUsage", "NonHeapMemoryUsage", "ObjectPendingFinalizationCount"] [[inputs.jolokia2_agent.metric]] name = "jvm_garbage_collector" mbean = "java.lang:name=*,type=GarbageCollector" paths = ["CollectionTime", "CollectionCount"] tag_keys = ["name"] [[inputs.jolokia2_agent.metric]] name = "jvm_memory_pool" mbean = "java.lang:name=*,type=MemoryPool" paths = ["Usage", "PeakUsage", "CollectionUsage"] tag_keys = ["name"] tag_prefix = "pool_" ### JBOSS [[inputs.jolokia2_agent.metric]] name = "connectors.http" mbean = "jboss.as:https-listener=*,server=*,subsystem=undertow" paths = ["bytesReceived","bytesSent","errorCount","requestCount"] tag_keys = ["server","https-listener"] [[inputs.jolokia2_agent.metric]] name = "connectors.http" mbean = "jboss.as:http-listener=*,server=*,subsystem=undertow" paths = ["bytesReceived","bytesSent","errorCount","requestCount"] tag_keys = ["server","http-listener"] [[inputs.jolokia2_agent.metric]] name = "datasource.jdbc" mbean = "jboss.as:data-source=*,statistics=jdbc,subsystem=datasources" paths = ["PreparedStatementCacheAccessCount","PreparedStatementCacheHitCount","PreparedStatementCacheMissCount"] tag_keys = ["data-source"] [[inputs.jolokia2_agent.metric]] name = "datasource.pool" mbean = "jboss.as:data-source=*,statistics=pool,subsystem=datasources" paths = ["AvailableCount","ActiveCount","MaxUsedCount"] tag_keys = ["data-source"] [[inputs.jolokia2_agent.metric]] name = "thread.count" mbean = "jboss.as:subsystem=*,thread-pool=*" paths = ["completedTaskCount","currentThreadCount","maxThreads","keepaliveTime","largestThreadCount","activeCount","taskCount","rejectedCount"] [[inputs.jolokia2_agent.metric]] name = "java_class_loading" mbean = "java.lang:type=ClassLoading" paths = ["LoadedClassCount", "UnloadedClassCount", "TotalLoadedClassCount"] [[inputs.jolokia2_agent.metric]] name = "java_threading" mbean = "java.lang:type=Threading" paths = ["ThreadCount","TotalStartedThreadCount","DaemonThreadCount","PeakThreadCount"] [[inputs.jolokia2_agent.metric]] name = "java_buffer_pool" mbean = "java.nio:name=*,type=BufferPool" paths = ["Count", "MemoryUsed", "TotalCapacity"] tag_keys = ["name"] |
Microsoft IIS
以下是組態詳細資料:
# Read MSIIS status information (mod_status) [[inputs.win_perf_counters]] [[inputs.win_perf_counters.object]] # IIS, Web Service ObjectName = "Web Service" Counters = [ "Service Uptime", "Current Connections", "Bytes Sent/sec", "Total Bytes Sent", "Connection Attempts/sec", "Bytes Received/sec", "Total Bytes Received", "Bytes Total/sec", "Total Bytes Transferred", "Get Requests/sec","Total Get Requests", "Post Requests/sec","Total Post Requests", "Put Requests/sec","Total Put Requests", "Delete Requests/sec","Total Delete Requests", "Anonymous Users/sec", "NonAnonymous Users/sec", "Files Sent/sec", "Total Files Sent", "Files Received/sec", "Total Files Received", "Files/sec", "Total Files Transferred", "Not Found Errors/sec", "Locked Errors/sec", "Total Method Requests/sec" ] Instances = ["*"] Measurement = "iis.websvc" IncludeTotal=true #Set to false to not include _Total instance. [[inputs.win_perf_counters.object]] # Web Service Cache / IIS ObjectName = "Web Service Cache" Counters = [ "Current Files Cached", "Active Flushed Entries", "Total Files Cached", "Total Flushed Files", "File Cache Hits", "File Cache Misses", "File Cache Hits %", "File Cache Flushes", "Current File Cache Memory Usage", "Maximum File Cache Memory Usage", "Current URIs Cached", "Total URIs Cached", "Total Flushed URIs", "URI Cache Hits", "URI Cache Misses", "URI Cache Hits %", "URI Cache Flushes", "Current Metadata Cached", "Total Metadata Cached", "Total Flushed Metadata", "Metadata Cache Hits", "Metadata Cache Misses", "Metadata Cache Hits %", "Metadata Cache Flushes", "Kernel: Current URIs Cached", "Kernel: Total URIs Cached", "Kernel: Total Flushed URIs", "Kernel: URI Cache Hits", "Kernel: Uri Cache Hits/sec", "Kernel: URI Cache Misses", "Kernel: URI Cache Hits %", "Kernel: URI Cache Flushes", "Cache Memory Usage" ] Instances = ["*"] Measurement = "iis.websvc.cache" IncludeTotal=true #Set to false to not include _Total instance. [[inputs.win_perf_counters.object]] # IIS, ASP.NET ObjectName = "ASP.NET" Counters = ["Application Restarts","Request Wait Time","Requests Current","Requests Queued","Requests Rejected"] Instances = ["*"] Measurement = "iis.aspnet" #IncludeTotal=false #Set to true to include _Total instance when querying for all (*). [[inputs.win_perf_counters.object]] # IIS, ASP.NET Applications ObjectName = "ASP.NET Applications" Counters = ["Cache Total Entries","Cache Total Hit Ratio","Output Cache Entries","Errors Total/Sec","Requests Executing","Requests in Application Queue","Requests/Sec"] Instances = ["*"] Measurement = "iis.aspnet.app" #IncludeTotal=false #Set to true to include _Total instance when querying for all (*). [[inputs.win_perf_counters.object]] ObjectName = ".NET CLR Exceptions" Counters = ["# of Exceps Thrown", "# of Exceps Thrown / Sec", "# of Filters / Sec", "# of Finallys / Sec", "Throw to Catch Depth / Sec"] Instances = ["*"] Measurement = "iis.dotnet.exception" [[inputs.win_perf_counters.object]] ObjectName = ".NET CLR Jit" Counters = ["% Time in Jit","IL Bytes Jitted / sec"] Instances = ["*"] Measurement = "iis.dotnet.jit" [[inputs.win_perf_counters.object]] ObjectName = ".NET CLR Loading" Counters = ["% Time Loading"] Instances = ["*"] Measurement = "iis.dotnet.loading" [[inputs.win_perf_counters.object]] ObjectName = ".NET CLR LocksAndThreads" Counters = ["# of current logical Threads","# of current physical Threads","# of current recognized threads","# of total recognized threads","Queue Length / sec","Total # of Contentions","Current Queue Length"] Instances = ["*"] Measurement = "iis.dotnet.lock" [[inputs.win_perf_counters.object]] ObjectName = ".NET CLR Memory" Counters = ["% Time in GC","# Bytes in all Heaps","# Gen 0 Collections","# Gen 1 Collections","# Gen 2 Collections","# Induced GC","Allocated Bytes/sec","Finalization Survivors","Gen 0 heap size","Gen 1 heap size","Gen 2 heap size","Large Object Heap size","# of Pinned Objects"] Instances = ["*"] Measurement = "iis.dotnet.memory" [[inputs.win_perf_counters.object]] ObjectName = ".NET CLR Security" Counters = ["% Time in RT checks","Stack Walk Depth","Total Runtime Checks"] Instances = ["*"] Measurement = "iis.dotnet.security" [[inputs.win_perf_counters.object]] # HTTP Service request queues in the Kernel before being handed over to User Mode. ObjectName = "HTTP Service Request Queues" Instances = ["*"] Counters = ["CurrentQueueSize","RejectedRequests"] Measurement = "iis.http.queues" #IncludeTotal=false #Set to true to include _Total instance when querying for all (*). [[inputs.win_perf_counters.object]] # Process metrics, in this case for IIS only ObjectName = "Process" Counters = ["% Processor Time","Handle Count","Private Bytes","Thread Count","Virtual Bytes","Working Set"] Instances = ["w3wp"] Measurement = "iis.win.proc" #IncludeTotal=false #Set to true to include _Total instance when querying for all (*). |
Microsoft SQL Server
以下是組態詳細資料:
[[inputs.sqlserver]] name_prefix = "MSSQL." #servers = [ #"Server=<servername>;Port=1433;User Id=telegraf;Password=<mystrongpassword from step 2>;app name=telegraf;log=1;", #"Server=<servername>;Port=1433;User Id=telegraf;Password=<mystrongpassword from step 2>;app name=telegraf;log=1;" #] servers = [ "Server=localhost;Port=1433;User Id=sa;Password=Password;app name=telegraf;log=1;" ] namepass = ["Rows*writes*bytes*sec*", "Rows*reads*bytes*sec*", "Rows*writes*sec*", "Rows*reads*sec*", "Query*User*counter*", "Buffer*cache*hit*ratio*", "Page*life*expectancy*", "Page*lookups*sec*", "Page*reads*sec*", "Page*writes*sec*", "Lazy*writes*sec*", "Checkpoint*pages*sec*", "Log*Apply*Ready*Queue*", "Data*File*s*Size*KB*", "Log*File*s*", "XTP*Memory*Used*KB*", "Log*Flushes*sec*", "Write*Transactions*sec*", "Transactions*sec*", "Log*Flush*Wait*Time*", "Active*Transactions*", "Log*Bytes*Flushed*sec*", "Processes*blocked*", "User*Connections*", "Logins*sec*", "Logouts*sec*", "Active*Temp*Tables*", "Temp*Tables*Creation*Rate*", "Batch*Requests*sec*", "SQL*Compilations*sec*", "SQL*Re*Compilations*sec", "Stored*Procedures*Invoked*sec*", "Target*Server*Memory*KB*", "Total*Server*Memory*KB*", "SQL*Cache*Memory*KB*", "Log*Pool*Memory*KB*", "Connection*Memory*KB*", "Lock*Memory*KB*", "Memory*Grants*Pending*", "Active*memory*grant*amount*KB*", "Disk*Read*Bytes*sec*", "Disk*Read*IO*Throttled*sec*", "Disk*Read*IO*sec*", "Disk*Write*Bytes*sec*", "Disk*Write*IO*Throttled*sec*", "Used*memory*KB*", "CPU*usage*", "Free*Space*in*tempdb*KB*", "Version*Store*Size*KB*", "Transactions*", "Blocked*tasks*", "Active*requests*", "Queued*requests*", "Requests*completed*sec*", "Number*of*Deadlocks*sec*", "Lock*Wait*Time*ms*", "Lock*Waits*sec*", "Lock*Requests*sec*", "Average*Wait*Time*ms*", "Index*Searches*sec*", "Page*Splits*sec*", "Full*Scans*sec*", "CPU*", "Wait*time*ms*", "Wait*tasks*", "State*", "Recovery*Model*"] |
MongoDB
以下是組態詳細資料:
# Read metrics from one or many MongoDB servers [[inputs.mongodb]] ## An array of URI to gather stats about. Specify an ip or hostname ## with optional port add password. ie, ## mongodb://user:[email protected]:27017, ## mongodb://10.10.3.33:18832, ## 10.0.0.1:10000, etc. ##servers = ["127.0.0.1:27017"] servers = ["localhost:27017"] gather_perdb_stats = true ## Optional SSL Config # ssl_ca = "/etc/telegraf/ca.pem" # ssl_cert = "/etc/telegraf/cert.pem" # ssl_key = "/etc/telegraf/key.pem" ## Use SSL but skip chain & host verification # insecure_skip_verify = false |
MS Exchange Server
以下是組態詳細資料:
# Read MS Exchange status information (mod_status) [[inputs.win_services]] name_prefix = "msexchange." service_names = [ "MSExchangeTransport", "MSExchangeTransportLogSearch", "MSExchangeUM", "MSExchangeUMCR", "MSExchangeThrottling", "MSExchangeServiceHost", "MSExchangeFastSearch", "MSExchangeRepl", "MSExchangeRPC", "MSExchangePop3", "MSExchangeSubmission", "MSExchangeDelivery", "MSExchangeMailboxReplication", "MSExchangeMailboxAssistants", "MSExchangeIS", "MSExchangeImap4", "MSExchangeHM", "MSExchangeFrontendTransport", "MSExchangeEdgeSync", "MSExchangeDiagnostics", "MSExchangeAntispamUpdate", "MSExchangeADTopology" ] [[inputs.win_perf_counters]] plugin_name_override="msexchange" [[inputs.win_perf_counters.object]] ObjectName = "Process" Counters = ["% Processor Time","Handle Count","Private Bytes","Thread Count","Virtual Bytes","Working Set"] Instances = [ "MSExchangeTransport", "MSExchangeTransportLogSearch", "umservice", "Microsoft.Exchange.UM.CallRouter", "MSExchangeThrottling", "Microsoft.Exchange.ServiceHost", "Microsoft.Exchange.Search.Service", "msexchangerepl", "Microsoft.Exchange.RpcClientAccess.Service", "Microsoft.Exchange.Pop3Service", "MSExchangeSubmission", "MSExchangeDelivery", "MSExchangeMailboxReplication", "MSExchangeMailboxAssistants", "Microsoft.Exchange.Store.Service", "Microsoft.Exchange.Imap4Service", "MSExchangeHMHost", "MSExchangeFrontendTransport", "Microsoft.Exchange.EdgeSyncSvc", "Microsoft.Exchange.Diagnostics.Service", "Microsoft.Exchange.AntispamUpdateSvc", "Microsoft.Exchange.Directory.TopologyService" ] Measurement = "msexchange.process" [[inputs.win_perf_counters.object]] ObjectName = "Database" Counters = ["I/O Log Writes Average Latency","Log Threads Waiting","Log Record Stalls/sec", "Database Cache % Hit","Database Page Fault Stalls/sec", "I/O Database Writes Average Latency","I/O Database Reads Average Latency"] Instances = ["*"] Measurement = "msexchange" [[inputs.win_perf_counters.object]] ObjectName = "MSExchange Database" Counters = [ "I/O Log Writes Average Latency", "I/O Log Reads Average Latency", "Log Threads Waiting", "Log Record Stalls/sec", "Database Cache % Hit", "Database Page Fault Stalls/sec", "I/O Database Writes Average Latency", "I/O Database Reads Average Latency" ] Instances = ["*"] Measurement = "msexchange.database" [[inputs.win_perf_counters.object]] ObjectName = "MSExchange Database ==> Instances" Counters = [ "Log Threads Waiting", "Log Record Stalls/sec", "I/O Database Writes Average Latency", "I/O Database Reads Average Latency" ] Instances = ["*"] Measurement = "msexchange.databaseinstance" [[inputs.win_perf_counters.object]] ObjectName = "MSExchange ADAccess Domain Controllers" Counters = ["LDAP Read Time","LDAP Search Time","LDAP Searches Timed Out per Minute","Long Running LDAP Operations/min"] Instances = ["*"] Measurement = "msexchange.adaccessdomaincontrollers" [[inputs.win_perf_counters.object]] ObjectName = "MSExchangeUMAvailability" Counters = ["Directory Access Failures","Total Inbound Calls Rejected by the UM Service", "Total Inbound Calls Rejected by the UM Worker Process"] Instances = ["*"] Measurement = "msexchange.umavailability" [[inputs.win_perf_counters.object]] ObjectName = "MSExchange Availability Service" Counters = ["Average Time to Process a Free Busy Request"] Instances = ["*"] Measurement = "msexchange.availabilityservice" [[inputs.win_perf_counters.object]] ObjectName = "MSExchange OWA" Counters = ["Current Unique Users", "Requests/sec", "Average Search Time"] Instances = ["*"] Measurement = "msexchange.owa" [[inputs.win_perf_counters.object]] ObjectName = "MSExchangeFrontEndTransport SmtpSend" Counters = ["Bytes Sent Total", "Messages Sent Total", "Message Bytes Sent Total"] Instances = ["*"] Measurement = "msexchange.frontendtransportsmtpsend" [[inputs.win_perf_counters.object]] ObjectName = "MSExchangeTransport SmtpSend" Counters = ["Message Bytes Sent Total", "Messages Sent Total"] Instances = ["_total"] Measurement = "msexchange.transportsmtpsend" [[inputs.win_perf_counters.object]] ObjectName = "MSExchangeTransport Queues" Counters = ["Active Mailbox Delivery Queue Length", "Retry Mailbox Delivery Queue Length", "Submission Queue Length"] Instances = ["_total"] Measurement = "msexchange.transportqueues" [[inputs.win_perf_counters.object]] ObjectName = "MSExchangeIS Store" Counters = ["RPC Average Latency", "RPC Requests","RPC Operations/sec", ] Instances = ["*"] Measurement = "msexchange.isstore" [[inputs.win_perf_counters.object]] ObjectName = "MSExchangeIS Client Type" Counters = ["RPC Average Latency", "RPC Operations/sec" ] Instances = ["*"] Measurement = "msexchange.isclient" [[inputs.win_perf_counters.object]] ObjectName = "MSExchange Store Interface" Counters = ["RPC Latency average (msec)"] Instances = ["_total"] Measurement = "msexchange.isclientinterface" [[inputs.win_perf_counters.object]] ObjectName = "MSExchange ADAccess Processes" Counters = ["LDAP Read Time", "LDAP Search Time"] Instances = ["*"] Measurement = "msexchange.adaccessprocesses" [[inputs.win_perf_counters.object]] ObjectName = "MSExchange ActiveSync" Counters = ["Mailbox Search Total", "Requests/sec", "Ping Commands Pending", "Current Requests", "Average Request Time", "Sync Commands/sec"] Instances = ["*"] Measurement = "msexchange.activesync" [[inputs.win_perf_counters.object]] ObjectName = "MSExchange Active Manager Server" Counters = ["Server-Side Calls/sec", "Active Manager Database State writes to Persistent storage/sec", "GetServerForDatabase Server-Side Calls", "Total Number of Databases", "Active Manager Role"] Instances = ["*"] Measurement = "msexchange.activemanagerserver" [[inputs.win_perf_counters.object]] ObjectName = "MSExchangeAutodiscover" Counters = ["Requests/sec"] Instances = ["*"] Measurement = "msexchange.autodiscover" [[inputs.win_perf_counters.object]] ObjectName = "MSExchangeWS" Counters = ["Requests/sec"] Instances = ["*"] Measurement = "msexchange.ws" [[inputs.win_perf_counters.object]] ObjectName = "Web Service" Counters = ["Current Connections","Connection Attempts/sec","Other Request Methods/sec"] Instances = ["*"] Measurement = "msexchange.ws" [[inputs.win_perf_counters.object]] ObjectName = "MSExchange WorkloadManagement Workloads" Counters = ["ActiveTasks","CompletedTasks","QueuedTasks"] Instances = ["*"] Measurement = "msexchange.workload" [[inputs.win_perf_counters.object]] ObjectName = "ASP.NET" Counters = ["Application Restarts","Worker Process Restarts","Request Wait Time"] Instances = ["*"] Measurement = "msexchange.aspnet" [[inputs.win_perf_counters.object]] ObjectName = "MSExchange RpcClientAccess" Counters = ["RPC Averaged Latency", "RPC Requests", "Active User Count", "Connection Count", "RPC Operations/sec", "User Count"] Instances = ["*"] Measurement = "msexchange.rpcclient" |
MySQL
以下是組態詳細資料:
[[inputs.mysql]] ## specify servers via a url matching: ## [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify]] ## see https://github.com/go-sql-driver/mysql#dsn-data-source-name ## e.g. ## servers = ["user:passwd@tcp(127.0.0.1:3306)/?tls=false"] ## servers = ["user@tcp(127.0.0.1:3306)/?tls=false"] # ## If no servers are specified, then localhost is used as the host. ##servers = ["MS_USER:MS_PASSWORD@tcp(localhost:MS_PORT)/?tls=false"] servers = ["root:VMware1!@tcp(localhost:3306)/?tls=false"] ## the limits for metrics form perf_events_statements perf_events_statements_digest_text_limit = 120 perf_events_statements_limit = 250 perf_events_statements_time_limit = 86400 # ## if the list is empty, then metrics are gathered from all databasee tables # ## gather metrics from INFORMATION_SCHEMA.TABLES for databases provided above list gather_table_schema = true # ## gather thread state counts from INFORMATION_SCHEMA.PROCESSLIST gather_process_list = true # ## gather auto_increment columns and max values from information schema gather_info_schema_auto_inc = true # ## gather metrics from SHOW SLAVE STATUS command output gather_slave_status = true # ## gather metrics from SHOW BINARY LOGS command output gather_binary_logs = false ## gather thread state counts from INFORMATION_SCHEMA.USER_STATISTICS gather_user_statistics = false # ## gather metrics from PERFORMANCE_SCHEMA.TABLE_IO_WAITS_SUMMARY_BY_TABLE gather_table_io_waits = true # ## gather metrics from PERFORMANCE_SCHEMA.TABLE_LOCK_WAITS gather_table_lock_waits = true # ## gather metrics from PERFORMANCE_SCHEMA.TABLE_IO_WAITS_SUMMARY_BY_INDEX_USAGE gather_index_io_waits = true # ## gather metrics from PERFORMANCE_SCHEMA.EVENT_WAITS gather_event_waits = true # ## gather metrics from PERFORMANCE_SCHEMA.FILE_SUMMARY_BY_EVENT_NAME gather_file_events_stats = true # ## gather metrics from PERFORMANCE_SCHEMA.EVENTS_STATEMENTS_SUMMARY_BY_DIGEST gather_perf_events_statements = true # ## Some queries we may want to run less often (such as SHOW GLOBAL VARIABLES) interval_slow = "30m" ## Optional SSL Config # ssl_ca = "/etc/telegraf/ca.pem" # ssl_cert = "/etc/telegraf/cert.pem" # ssl_key = "/etc/telegraf/key.pem" fieldpass = ["aborted_clients", "bytes_sent", "bytes_received", "binlog_cache_size", "connection_errors_accept", "connection_errors_internal", "connection_errors_max_connections", "queries", "threads_cached", "threads_connected", "threads_running", "uptime", "delayed_insert_limit", "delayed_insert_timeout", "delayed_queue_size", "max_connect_errors", "max_connections", "max_delayed_threads", "max_error_count", "binary_size_bytes", "binary_files_count", "commands_show_processlist", "access_denied", "bytes_received", "bytes_sent", "commit_transactions", "concurrent_connections", "connected_time", "denied_connections", "denied_connections", "rollback_transactions", "rows_fetched", "rows_updated", "select_commands", "total_connections", "table_io_waits_total_fetch", "table_io_waits_total_insert", "table_io_waits_total_update", "table_io_waits_total_delete", "connections", "aborted_connects", "events_waits_seconds_total", "events_waits_total", "innodb_print_all_deadlocks", "innodb_open_files", "innodb_buffer_pool_size", "innodb_row_lock_time_avg", "innodb_row_lock_current_waits", "innodb_row_lock_time_max", "innodb_table_locks", "innodb_row_lock_waits", "innodb_buffer_pool_dump_status", "innodb_buffer_pool_load_status", "innodb_buffer_pool_pages_data", "innodb_buffer_pool_bytes_data", "innodb_buffer_pool_pages_dirty", "innodb_buffer_pool_bytes_dirty", "innodb_buffer_pool_pages_flushed", "innodb_checksums", "events_statements_no_index_used_total", "*io_waits_seconds_total_fetch", "read_high_priority", "write_concurrent_insert"] |
NGINX
以下是組態詳細資料:
# Read Nginx's basic status information (ngx_http_stub_status_module) [[inputs.nginx]] ## An array of Nginx stub_status URI to gather stats. urls = ["http://127.0.0.1:8081/nginx_status"] ## Optional SSL Config # ssl_ca = "/etc/telegraf/ca.pem" # ssl_cert = "/etc/telegraf/cert.pem" # ssl_key = "/etc/telegraf/key.pem" ## Use SSL but skip chain & host verification # insecure_skip_verify = false ## HTTP response timeout (default: 5s) response_timeout = "5s" |
NTPD
以下是組態詳細資料:
[[inputs.ntpq]] name_prefix = “ntpd.” ## If false, set the -n ntpq flag. Can reduce metric gather times. dns_lookup = tr |
OracleDB
以下是組態詳細資料:
# Read metrics exposed by chef [[inputs.exec]] # commands = ['python "wavefront_oracle_metrics.py script path" -u "OracleDB Username" -p "OracleDB Password" -s "OracleDB SID/DSN"'] commands = ['python "C:\Telegraf\telegraf-1.20.4\telegraf.d\wavefront_oracle_metrics.py" -u "orcl.vrops.es" -p "Qw123456" -s "https://VAP-test.vrops.es:1158/em"'] timeout = "180s" data_format = "influx" name_prefix = "oracledb." |
PostgreSQL
以下是組態詳細資料:
# Read metrics from one or many postgresql servers [[inputs.postgresql]] ## specify address via a url matching: ## postgres://[pqgotest[:password]]@localhost[/dbname]\ ## ?sslmode=[disable|verify-ca|verify-full] ## or a simple string: ## host=localhost user=pqotest password=... sslmode=... dbname=app_production ## ## All connection parameters are optional. ## ## Without the dbname parameter, the driver will default to a database ## with the same name as the user. This dbname is just for instantiating a ## connection with the server and doesn't restrict the databases we are trying ## to grab metrics for. ## address = "host=localhost user=postgres password=\t Password1! port=5432" ##address = "host=localhost user=postgres password=\t Password1! port=5432" ## A list of databases to explicitly ignore. If not specified, metrics for all ## databases are gathered. Do NOT use with the 'databases' option. # ignored_databases = ["postgres", "template0", "template1"] ## A list of databases to pull metrics about. If not specified, metrics for all ## databases are gathered. Do NOT use with the 'ignored_databases' option. # databases = ["app_production", "testing"] ## Optional SSL Config # ssl_ca = "/etc/telegraf/ca.pem" # ssl_cert = "/etc/telegraf/cert.pem" # ssl_key = "/etc/telegraf/key.pem" ## Use SSL but skip chain & host verification # insecure_skip_verify = false |
Pivotal
以下是組態詳細資料:
# Read Tomcat status information (mod_status) [[inputs.jolokia2_agent]] ## urls = ["http://localhost:8080/jolokia"] urls = ["http://localhost:8080/jolokia"] name_prefix = "pivotalserver." ## Optional SSL Config # ssl_ca = "/etc/telegraf/ca.pem" # ssl_cert = "/etc/telegraf/cert.pem" # ssl_key = "/etc/telegraf/key.pem" ## Use SSL but skip chain & host verification # insecure_skip_verify = false ### JVM Generic [[inputs.jolokia2_agent.metric]] name = "OperatingSystem" mbean = "java.lang:type=OperatingSystem" paths = ["ProcessCpuLoad","SystemLoadAverage","SystemCpuLoad"] [[inputs.jolokia2_agent.metric]] name = "OperatingSystem" mbean = "java.lang:type=OperatingSystem" paths = ["MaxFileDescriptorCount","OpenFileDescriptorCount"] [[inputs.jolokia2_agent.metric]] name = "jvm_runtime" mbean = "java.lang:type=Runtime" paths = ["Uptime"] [[inputs.jolokia2_agent.metric]] name = "jvm_memory" mbean = "java.lang:type=Memory" paths = ["HeapMemoryUsage", "NonHeapMemoryUsage", "ObjectPendingFinalizationCount"] [[inputs.jolokia2_agent.metric]] name = "jvm_garbage_collector" mbean = "java.lang:name=*,type=GarbageCollector" paths = ["CollectionTime", "CollectionCount"] tag_keys = ["name"] [[inputs.jolokia2_agent.metric]] name = "jvm_memory_pool" mbean = "java.lang:name=*,type=MemoryPool" paths = ["Usage", "PeakUsage", "CollectionUsage"] tag_keys = ["name"] tag_prefix = "pool_" ### TOMCAT [[inputs.jolokia2_agent.metric]] name = "GlobalRequestProcessor" mbean = "Catalina:name=*,type=GlobalRequestProcessor" paths = ["requestCount","bytesReceived","bytesSent","processingTime","errorCount"] tag_keys = ["name"] [[inputs.jolokia2_agent.metric]] name = "JspMonitor" mbean = "Catalina:J2EEApplication=*,J2EEServer=*,WebModule=*,name=jsp,type=JspMonitor" paths = ["jspReloadCount","jspCount","jspUnloadCount"] tag_keys = ["J2EEApplication","J2EEServer","WebModule"] [[inputs.jolokia2_agent.metric]] name = "ThreadPool" mbean = "Catalina:name=*,type=ThreadPool" paths = ["maxThreads","currentThreadCount","currentThreadsBusy"] tag_keys = ["name"] [[inputs.jolokia2_agent.metric]] name = "Servlet" mbean = "Catalina:J2EEApplication=*,J2EEServer=*,WebModule=*,j2eeType=Servlet,name=*" paths = ["processingTime","errorCount","requestCount"] tag_keys = ["name","J2EEApplication","J2EEServer","WebModule"] [[inputs.jolokia2_agent.metric]] name = "Cache" mbean = "Catalina:context=*,host=*,name=Cache,type=WebResourceRoot" paths = ["hitCount","lookupCount"] tag_keys = ["context","host"] [[inputs.jolokia2_agent.metric]] name = "java_class_loading" mbean = "java.lang:type=ClassLoading" paths = ["LoadedClassCount", "UnloadedClassCount", "TotalLoadedClassCount"] [[inputs.jolokia2_agent.metric]] name = "java_threading" mbean = "java.lang:type=Threading" paths = ["ThreadCount"] [[inputs.jolokia2_agent.metric]] name = "java_buffer_pool" mbean = "java.nio:name=*,type=BufferPool" paths = ["Count", "MemoryUsed", "TotalCapacity"] tag_keys = ["name"] |
RabbitMQ
以下是組態詳細資料:
# Read metrics from one or many RabbitMQ servers via the management API [[inputs.rabbitmq]] arc_service_id = "145d46c3-3f5d-449b-af93-f32a150c4965" ##url = "http://localhost:15672" url = "http://10.218.135.219:15672" metric_exclude = ["federation"] # name = "rmq-server-1" # optional tag username = "admin" password = "admin" ## Optional SSL Config # ssl_ca = "/etc/telegraf/ca.pem" # ssl_cert = "/etc/telegraf/cert.pem" # ssl_key = "/etc/telegraf/key.pem" ## Use SSL but skip chain & host verification # insecure_skip_verify = false ## Optional request timeouts ## ## ResponseHeaderTimeout, if non-zero, specifies the amount of time to wait ## for a server's response headers after fully writing the request. # header_timeout = "3s" ## ## client_timeout specifies a time limit for requests made by this client. ## Includes connection time, any redirects, and reading the response body. # client_timeout = "4s" ## A list of nodes to pull metrics about. If not specified, metrics for ## all nodes are gathered. # nodes = ["rabbit@node1", "rabbit@node2"] |
Riak
以下是組態詳細資料:
# Read Riak status information (mod_status) [[inputs.riak]] # Specify a list of one or more riak http servers ##servers = ["http://localhost:8098"] servers = ["http://127.0.0.1:8098"] |
SharePoint Server
以下是組態詳細資料:
[[inputs.win_services]] name_prefix = "sharepoint." service_names = [ "OSearch15", "SPAdminV4", "SPSearchHostController", "SPTimerV4", "SPTraceV4", "SPUserCodeV4", "SPWriterV4" ] [[inputs.win_perf_counters]] plugin_name_override="sharepoint" [[inputs.win_perf_counters.object]] ObjectName = "Process" Instances = ["mssearch", "WSSADMIN", "hostcontrollerservice", "OWSTIMER", "wsstracing", "SPUCHostService", "SPWRITER"] Counters = ["% Processor Time", "Thread Count"] Measurement = "sharepoint.process" [[inputs.win_perf_counters.object]] ObjectName = "Web Service" Instances = ["*"] Counters = ["Bytes Sent/sec", "Bytes Received/sec"] Measurement = "sharepoint.webservice" [[inputs.win_perf_counters.object]] ObjectName = "SharePoint Foundation" Counters = ["Object Cache Hit %", "Executing Sql Queries", "Executing Time/Page Request", "Reject Page Requests Rate", "Incoming Page Requests Rate", "Active Threads", "Object Cache Hit Count", "Current Page Requests", "Sql Query Executing time", "Responded Page Requests Rate"] Instances = ["_total"] Measurement = "sharepoint.Foundation" [[inputs.win_perf_counters.object]] ObjectName = "SharePoint Records Management Counters" Counters = ["Search results processed / sec"] Instances = ["------"] Measurement = "sharepoint.RecordsManagementCounters" [[inputs.win_perf_counters.object]] ObjectName = "SharePoint Foundation Search Gatherer Projects" Counters = ["Crawls in progress", "Filtered Text Rate", "Filtered Office Rate", "Filtered HTML Rate", "Accessed File Rate", "Accessed HTTP Rate", "File Errors Rate", "HTTP Errors Rate"] Instances = ["_total"] Measurement = "sharepoint.FoundationSearchGathererProjects" [[inputs.win_perf_counters.object]] ObjectName = "SharePoint Foundation Search Schema Plugin" Counters = ["Total Documents"] Instances = ["_total"] Measurement = "sharepoint.FoundationSearchSchemaPlugin" [[inputs.win_perf_counters.object]] ObjectName = "SharePoint Foundation BDC Online" Counters = ["Total calls failed", "Total calls per second"] Instances = ["------"] Measurement = "sharepoint.FoundationBDCOnline" [[inputs.win_perf_counters.object]] ObjectName = "SharePoint Foundation Search Gatherer" Counters = ["Changes Processed", "Threads Committing Transactions", "Time Outs", "Active Queue Length", "Idle Threads", "Heartbeats Rate"] Instances = ["------"] Measurement = "sharepoint.FoundationSearchGatherer" [[inputs.win_perf_counters.object]] ObjectName = "SharePoint Foundation Search Indexer Plugin" Counters = ["Propagation Rate", "Average Query Latency", "Queries Succeeded", "Queries Failed", "Queries"] Instances = ["_total"] Measurement = "sharepoint.FoundationSearchIndexerPlugin" [[inputs.win_perf_counters.object]] ObjectName = "SharePoint Foundation Search Query Processor" Counters = ["Security Descriptor Cache Misses"] Instances = ["------"] Measurement = "sharepoint.FoundationSearchQueryProcessor" [[inputs.win_perf_counters.object]] ObjectName = "SharePoint Foundation Search FAST Content Plugin" Counters = ["Batches Failed Timeout", "Submission Timeouts", "Items Failed Total", "Items Failed Timeout"] Instances = ["------"] Measurement = "sharepoint.FoundationSearchFASTContentPlugin" [[inputs.win_perf_counters.object]] ObjectName = "SharePoint Foundation Search Archival Plugin" Counters = ["Queues Committing", "Queues Waiting", "Queues Filtering", "Queues Available"] Instances = ["_total"] Measurement = "sharepoint.FoundationSearchArchivalPlugin" [[inputs.win_perf_counters.object]] ObjectName = "SharePoint Foundation BDC Metadata" Counters = ["Cache misses per second", "Cache hits per second"] Instances = ["_total"] Measurement = "sharepoint.FoundationBDCMetadata" [[inputs.win_perf_counters.object]] ObjectName = "SharePoint Foundation Search Gatherer Databases" Counters = ["Documents in the crawl history", "Documents in the crawl queue"] Instances = ["_total"] Measurement = "sharepoint.FoundationSearchGathererDatabases" |
Tomcat 伺服器
以下是組態詳細資料:
# Read Tomcat status information (mod_status) [[inputs.jolokia2_agent]] ##urls = ["http://localhost:8080/jolokia"] urls = ["http://localhost:8083/jolokia"] name_prefix = "tomcat." ## Optional SSL Config # ssl_ca = "/etc/telegraf/ca.pem" # ssl_cert = "/etc/telegraf/cert.pem" # ssl_key = "/etc/telegraf/key.pem" ## Use SSL but skip chain & host verification # insecure_skip_verify = false ### JVM Generic [[inputs.jolokia2_agent.metric]] name = "OperatingSystem" mbean = "java.lang:type=OperatingSystem" paths = ["ProcessCpuLoad","SystemLoadAverage","SystemCpuLoad"] [[inputs.jolokia2_agent.metric]] name = "OperatingSystem" mbean = "java.lang:type=OperatingSystem" paths = ["MaxFileDescriptorCount","OpenFileDescriptorCount"] [[inputs.jolokia2_agent.metric]] name = "jvm_runtime" mbean = "java.lang:type=Runtime" paths = ["Uptime"] [[inputs.jolokia2_agent.metric]] name = "jvm_memory" mbean = "java.lang:type=Memory" paths = ["HeapMemoryUsage", "NonHeapMemoryUsage", "ObjectPendingFinalizationCount"] [[inputs.jolokia2_agent.metric]] name = "jvm_garbage_collector" mbean = "java.lang:name=*,type=GarbageCollector" paths = ["CollectionTime", "CollectionCount"] tag_keys = ["name"] [[inputs.jolokia2_agent.metric]] name = "jvm_memory_pool" mbean = "java.lang:name=*,type=MemoryPool" paths = ["Usage", "PeakUsage", "CollectionUsage"] tag_keys = ["name"] tag_prefix = "pool_" ### TOMCAT [[inputs.jolokia2_agent.metric]] name = "GlobalRequestProcessor" mbean = "Catalina:name=*,type=GlobalRequestProcessor" paths = ["requestCount","bytesReceived","bytesSent","processingTime","errorCount"] tag_keys = ["name"] [[inputs.jolokia2_agent.metric]] name = "JspMonitor" mbean = "Catalina:J2EEApplication=*,J2EEServer=*,WebModule=*,name=jsp,type=JspMonitor" paths = ["jspReloadCount","jspCount","jspUnloadCount"] tag_keys = ["J2EEApplication","J2EEServer","WebModule"] [[inputs.jolokia2_agent.metric]] name = "ThreadPool" mbean = "Catalina:name=*,type=ThreadPool" paths = ["maxThreads","currentThreadCount","currentThreadsBusy"] tag_keys = ["name"] [[inputs.jolokia2_agent.metric]] name = "Servlet" mbean = "Catalina:J2EEApplication=*,J2EEServer=*,WebModule=*,j2eeType=Servlet,name=*" paths = ["processingTime","errorCount","requestCount"] tag_keys = ["name","J2EEApplication","J2EEServer","WebModule"] [[inputs.jolokia2_agent.metric]] name = "Cache" mbean = "Catalina:context=*,host=*,name=Cache,type=WebResourceRoot" paths = ["hitCount","lookupCount"] tag_keys = ["context","host"] [[inputs.jolokia2_agent.metric]] name = "java_class_loading" mbean = "java.lang:type=ClassLoading" paths = ["LoadedClassCount", "UnloadedClassCount", "TotalLoadedClassCount"] [[inputs.jolokia2_agent.metric]] name = "java_threading" mbean = "java.lang:type=Threading" paths = ["ThreadCount"] [[inputs.jolokia2_agent.metric]] name = "java_buffer_pool" mbean = "java.nio:name=*,type=BufferPool" paths = ["Count", "MemoryUsed", "TotalCapacity"] tag_keys = ["name"] |
Oracle WebLogic |
WebSphere
以下是組態詳細資料:
[[inputs.httpjson]] servers = ["http://localhost:9080/wasmonitor/stats"] method = "POST" name_override="websphere" response_timeout = "60s" tag_keys = ["name", "process", "node", "cell", "mbeanIdentifier"] [inputs.httpjson.headers] Authorization = "Basic d2F2ZWZyb250OndhdmVmcm9udA==" [[inputs.exec]] commands = ['C:\\VMware\\UCP\\ucp-minion\\bin\\run-py-script.bat "C:\VMware\UCP\ucp-minion\lib\site-packages\ucp\application_availability.py" --config="C:\VMware\UCP\salt\conf\grains" "java" "http://localhost:9080"'] timeout = "180s" data_format = "influx" name_prefix = "websphere." [inputs.exec.tags] server = "http://localhost:9080/wasmonitor/stats" |
Ping 檢查
以下是組態詳細資料:
[[inputs.ping]] ## Hosts to send ping packets to. urls = [www.vmware.com] ## Number of ping packets to send per interval. Corresponds to the "-c" ## option of the ping command. # count = 1 ## Time to wait between sending ping packets in seconds. Operates like the ## "-i" option of the ping command. # ping_interval = 1.0 ## If set, the time to wait for a ping response in seconds. Operates like ## the "-W" option of the ping command. # timeout = 1.0 ## If set, the total ping deadline, in seconds. Operates like the -w option ## of the ping command. # deadline = 10 ## Interface or source address to send ping from. Operates like the -I or -S ## option of the ping command. # interface = "" |
TCP 檢查
以下是組態詳細資料:
[[inputs.net_response]] name_override="netresponse" ## Server address (default localhost) address = "10.10.10.10:443" protocol = "tcp" ## Set timeout # timeout = "1s" ## Set read timeout (only used if expecting a response) # read_timeout = "1s" |
HTTP 檢查
以下是組態詳細資料:
# HTTP/HTTPS request given an address a method and a timeout [[inputs.http_response]] name_override="httpresponse" ## List of url to query. address = https://10.10.10.10/suite-api/api/adapters method = "GET" ## Set http_proxy. ## Telegraf uses the system wide proxy settings if it's is not set. # http_proxy = http://localhost:8888 ## Set response_timeout (default 5 seconds) # response_timeout = "5s" ## Whether to follow redirects from the server (defaults to false) # follow_redirects = false ## Optional name of the field that will contain the body of the response. ## By default it is set to an empty String indicating that the body's content won't be added # response_body_field = '' ## Optional substring or regex match in body of the response (case sensitive) # response_string_match = "\"service_status\": \"up\"" # response_string_match = "ok" # response_string_match = "\".*_status\".?:.?\"up\"" ## Optional SSL Config # ssl_ca = "/etc/telegraf/ca.pem" # ssl_cert = "/etc/telegraf/cert.pem" # ssl_key = "/etc/telegraf/key.pem" ## Use SSL but skip chain & host verification insecure_skip_verify = true ## HTTP Request Headers (all values must be strings) [inputs.http_response.headers] accept = "application/json" Authorization = "OpsToken a16f7a2b-b033-48bc-9827-2daf8e205537::ec11ee5f-8623-4558-a904-8b4ea3f6f47d" |
自訂指令碼 以下是組態詳細資料:
對於 Linux 平台:
# Read metrics from command that can output to stdout [[inputs.exec]] name_prefix = "executescript." name_override = "output" # commands = ["<prefix> <file path> <argument>"] commands = ["python /opt/scripts/argument.py 10"] ## Data format to consume. data_format = "value" data_type = "integer" ## Timeout for each command to complete. timeout = "300s" [inputs.exec.tags] file_path = "/opt/scripts/argument.py" script_name = "my-py-script on Centos7-VM"
對於 Windows 平台:
# Read metrics from command that can output to stdout [[inputs.exec]] name_prefix = "executescript." name_override = "output" # commands = ["<prefix> <file path> <argument>"] commands = ["Powershell -File C:\\\\VMware\\\\Scripts\\\\Arguments.ps1 vmtoolsd"] ## Data format to consume. data_format = "value" data_type = "integer" ## Timeout for each command to complete. timeout = "300s" [inputs.exec.tags] file_path = "C:\\VMware\\Scripts\\Arguments.ps1" script_name = "my-script-for-vmtool on Windows2022-PhysicalServer" |
Linux 程序
以下是組態詳細資料 (透過規則運算式):
# Monitor process cpu and memory usage [[inputs.procstat]] ## pattern as argument for pgrep (ie, pgrep -f <pattern>) pattern = ".*ucp-.*" fieldpass = ["running", "cpu_usage", "memory_usage"] [inputs.procstat.tags] search_pattern = "regex_.#!AsTeRiSk!#ucp-.#!AsTeRiSk!#"
以下是組態詳細資料 (透過可執行檔名稱):
# Monitor process cpu and memory usage [[inputs.procstat]] ## executable name (ie, pgrep <exe>) exe = "top" fieldpass = ["running", "cpu_usage", "memory_usage"] [inputs.procstat.tags] search_pattern = "exec_top"
以下是組態詳細資料 (透過程序識別碼):
# Monitor process cpu and memory usage [[inputs.procstat]] ## PID file to monitor process pid_file = "/var/run/vmtoolsd.pid" fieldpass = ["running", "cpu_usage", "memory_usage"] [inputs.procstat.tags] search_pattern = "pidfile_/var/run/vmtoolsd.pid" |
Windows 服務 以下是組態詳細資料 (透過 Windows 服務名稱): # Monitor process cpu and memory usage [[inputs.procstat]] ## Windows service name win_service = "Dhcp" pid_finder = "native" fieldpass = ["running", "cpu_usage", "memory_usage"] [inputs.procstat.tags] search_pattern = "exec_Dhcp" [[inputs.win_services]] service_names = ["Dhcp"] name_override="procstat" [inputs.win_services.tags] search_pattern = "exec_Dhcp" |