mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-22 07:50:19 +00:00
404 lines
13 KiB
Text
404 lines
13 KiB
Text
# Read metrics about docker containers
|
|
[[inputs.docker]]
|
|
## Docker Endpoint
|
|
## To use TCP, set endpoint = "tcp://[ip]:[port]"
|
|
## To use environment variables (ie, docker-machine), set endpoint = "ENV"
|
|
endpoint = "unix:///var/run/docker.sock"
|
|
|
|
## Set to true to collect Swarm metrics(desired_replicas, running_replicas)
|
|
## Note: configure this in one of the manager nodes in a Swarm cluster.
|
|
## configuring in multiple Swarm managers results in duplication of metrics.
|
|
gather_services = false
|
|
|
|
## Only collect metrics for these containers. Values will be appended to
|
|
## container_name_include.
|
|
## Deprecated (1.4.0), use container_name_include
|
|
container_names = []
|
|
|
|
## Set the source tag for the metrics to the container ID hostname, eg first 12 chars
|
|
source_tag = false
|
|
|
|
## Containers to include and exclude. Collect all if empty. Globs accepted.
|
|
container_name_include = []
|
|
container_name_exclude = []
|
|
|
|
## Container states to include and exclude. Globs accepted.
|
|
## When empty only containers in the "running" state will be captured.
|
|
## example: container_state_include = ["created", "restarting", "running", "removing", "paused", "exited", "dead"]
|
|
## example: container_state_exclude = ["created", "restarting", "running", "removing", "paused", "exited", "dead"]
|
|
# container_state_include = []
|
|
# container_state_exclude = []
|
|
|
|
## Timeout for docker list, info, and stats commands
|
|
timeout = "5s"
|
|
|
|
## Whether to report for each container per-device blkio (8:0, 8:1...),
|
|
## network (eth0, eth1, ...) and cpu (cpu0, cpu1, ...) stats or not.
|
|
## Usage of this setting is discouraged since it will be deprecated in favor of 'perdevice_include'.
|
|
## Default value is 'true' for backwards compatibility, please set it to 'false' so that 'perdevice_include' setting
|
|
## is honored.
|
|
perdevice = true
|
|
|
|
## Specifies for which classes a per-device metric should be issued
|
|
## Possible values are 'cpu' (cpu0, cpu1, ...), 'blkio' (8:0, 8:1, ...) and 'network' (eth0, eth1, ...)
|
|
## Please note that this setting has no effect if 'perdevice' is set to 'true'
|
|
# perdevice_include = ["cpu"]
|
|
|
|
## Whether to report for each container total blkio and network stats or not.
|
|
## Usage of this setting is discouraged since it will be deprecated in favor of 'total_include'.
|
|
## Default value is 'false' for backwards compatibility, please set it to 'true' so that 'total_include' setting
|
|
## is honored.
|
|
total = false
|
|
|
|
## Specifies for which classes a total metric should be issued. Total is an aggregated of the 'perdevice' values.
|
|
## Possible values are 'cpu', 'blkio' and 'network'
|
|
## Total 'cpu' is reported directly by Docker daemon, and 'network' and 'blkio' totals are aggregated by this plugin.
|
|
## Please note that this setting has no effect if 'total' is set to 'false'
|
|
# total_include = ["cpu", "blkio", "network"]
|
|
|
|
## docker labels to include and exclude as tags. Globs accepted.
|
|
## Note that an empty array for both will include all labels as tags
|
|
docker_label_include = []
|
|
docker_label_exclude = []
|
|
|
|
## Which environment variables should we use as a tag
|
|
tag_env = ["JAVA_HOME", "HEAP_SIZE"]
|
|
|
|
## Optional TLS Config
|
|
# tls_ca = "/etc/telegraf/ca.pem"
|
|
# tls_cert = "/etc/telegraf/cert.pem"
|
|
# tls_key = "/etc/telegraf/key.pem"
|
|
## Use TLS but skip chain & host verification
|
|
# insecure_skip_verify = false
|
|
|
|
[[inputs.snmp]]
|
|
agents = [ "192.168.0.1:161" ] #change this to your Sophos IP
|
|
version = 1
|
|
community = "sophos-xg"
|
|
interval = "60s"
|
|
timeout = "10s"
|
|
retries = 3
|
|
|
|
[[inputs.snmp.field]]
|
|
name = "deviceName"
|
|
oid = "1.3.6.1.4.1.2604.5.1.1.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "deviceType"
|
|
oid = "1.3.6.1.4.1.2604.5.1.1.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "deviceFirewallVersion"
|
|
oid = "1.3.6.1.4.1.2604.5.1.1.3.0"
|
|
[[inputs.snmp.field]]
|
|
name = "deviceAppKey"
|
|
oid = "1.3.6.1.4.1.2604.5.1.1.4.0"
|
|
[[inputs.snmp.field]]
|
|
name = "webCatVersion"
|
|
oid = "1.3.6.1.4.1.2604.5.1.1.5.0"
|
|
[[inputs.snmp.field]]
|
|
name = "ipsVersion"
|
|
oid = "1.3.6.1.4.1.2604.5.1.1.6.0"
|
|
[[inputs.snmp.field]]
|
|
name = "ipsVersion"
|
|
oid = "1.3.6.1.4.1.2604.5.1.1.6.0"
|
|
[[inputs.snmp.field]]
|
|
name = "currentDate"
|
|
oid = "1.3.6.1.4.1.2604.5.1.2.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "upTime"
|
|
oid = "1.3.6.1.4.1.2604.5.1.2.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "liveUsers"
|
|
oid = "1.3.6.1.4.1.2604.5.1.2.6.0"
|
|
[[inputs.snmp.field]]
|
|
name = "httpHits"
|
|
oid = "1.3.6.1.4.1.2604.5.1.2.7.0"
|
|
[[inputs.snmp.field]]
|
|
name = "ftpHits"
|
|
oid = "1.3.6.1.4.1.2604.5.1.2.8.0"
|
|
[[inputs.snmp.field]]
|
|
name = "diskCapacity"
|
|
oid = "1.3.6.1.4.1.2604.5.1.2.4.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "diskPercentage"
|
|
oid = "1.3.6.1.4.1.2604.5.1.2.4.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "memoryCapacity"
|
|
oid = "1.3.6.1.4.1.2604.5.1.2.5.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "memoryPercentage"
|
|
oid = "1.3.6.1.4.1.2604.5.1.2.5.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "swapCapacity"
|
|
oid = "1.3.6.1.4.1.2604.5.1.2.5.3.0"
|
|
[[inputs.snmp.field]]
|
|
name = "swapPercentage"
|
|
oid = "1.3.6.1.4.1.2604.5.1.2.5.4.0"
|
|
[[inputs.snmp.field]]
|
|
name = "pop3Hits"
|
|
oid = "1.3.6.1.4.1.2604.5.1.2.9.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "imapHits"
|
|
oid = "1.3.6.1.4.1.2604.5.1.2.9.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "smtpHits"
|
|
oid = "1.3.6.1.4.1.2604.5.1.2.9.3.0"
|
|
[[inputs.snmp.field]]
|
|
name = "pop3service"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "imap4service"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "smtpService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.3.0"
|
|
[[inputs.snmp.field]]
|
|
name = "ftpService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.4.0"
|
|
[[inputs.snmp.field]]
|
|
name = "ftpService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.4.0"
|
|
[[inputs.snmp.field]]
|
|
name = "httpService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.5.0"
|
|
[[inputs.snmp.field]]
|
|
name = "avService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.6.0"
|
|
[[inputs.snmp.field]]
|
|
name = "asService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.7.0"
|
|
[[inputs.snmp.field]]
|
|
name = "dnsService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.8.0"
|
|
[[inputs.snmp.field]]
|
|
name = "shaService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.9.0"
|
|
[[inputs.snmp.field]]
|
|
name = "ipsService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.10.0"
|
|
[[inputs.snmp.field]]
|
|
name = "apacheService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.11.0"
|
|
[[inputs.snmp.field]]
|
|
name = "ntpService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.12.0"
|
|
[[inputs.snmp.field]]
|
|
name = "tomcatService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.13.0"
|
|
[[inputs.snmp.field]]
|
|
name = "sslVpnService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.14.0"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.15.0"
|
|
[[inputs.snmp.field]]
|
|
name = "databaseService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.16.0"
|
|
[[inputs.snmp.field]]
|
|
name = "networkService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.17.0"
|
|
[[inputs.snmp.field]]
|
|
name = "garnerService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.18.0"
|
|
[[inputs.snmp.field]]
|
|
name = "droutingService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.19.0"
|
|
[[inputs.snmp.field]]
|
|
name = "sshdService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.20.0"
|
|
[[inputs.snmp.field]]
|
|
name = "dgdService"
|
|
oid = "1.3.6.1.4.1.2604.5.1.3.21.0"
|
|
[[inputs.snmp.field]]
|
|
name = "haStatus"
|
|
oid = "1.3.6.1.4.1.2604.5.1.4.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "currentAppKey"
|
|
oid = "1.3.6.1.4.1.2604.5.1.4.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "peerAppKey"
|
|
oid = "1.3.6.1.4.1.2604.5.1.4.3.0"
|
|
[[inputs.snmp.field]]
|
|
name = "currentHAstate"
|
|
oid = "1.3.6.1.4.1.2604.5.1.4.4.0"
|
|
[[inputs.snmp.field]]
|
|
name = "peerHAstate"
|
|
oid = "1.3.6.1.4.1.2604.5.1.4.5.0"
|
|
[[inputs.snmp.field]]
|
|
name = "haConfigMode"
|
|
oid = "1.3.6.1.4.1.2604.5.1.4.6.0"
|
|
[[inputs.snmp.field]]
|
|
name = "loadBalancing"
|
|
oid = "1.3.6.1.4.1.2604.5.1.4.7.0"
|
|
[[inputs.snmp.field]]
|
|
name = "haPort"
|
|
oid = "1.3.6.1.4.1.2604.5.1.4.8.0"
|
|
[[inputs.snmp.field]]
|
|
name = "haPort"
|
|
oid = "1.3.6.1.4.1.2604.5.1.4.8.0"
|
|
[[inputs.snmp.field]]
|
|
name = "auxAdminPort"
|
|
oid = "1.3.6.1.4.1.2604.5.1.4.11.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "auxAdminPortipv6"
|
|
oid = "1.3.6.1.4.1.2604.5.1.4.11.3.0"
|
|
[[inputs.snmp.field]]
|
|
name = "baseFwLicenseStatus"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.1.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "baseFwLicenseExpiry"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.1.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "networkProtectLicenseStatus"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.2.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "networkProtectExpiryDate"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.2.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "webProtectLicenseStatus"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.3.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "webProtectExpiryDate"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.3.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "mailProtectLicenseStatus"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.4.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "mailProtectExpiryDate"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.4.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "webServerLicenseStatus"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.5.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "webServerExpiryDate"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.5.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "sandstormLicenseStatus"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.6.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "sandstormExpiryDate"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.6.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "enhancedSupportStatus"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.7.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "enhancedSupportExpiryDate"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.7.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "enhancedPlusStatus"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.8.1.0"
|
|
[[inputs.snmp.field]]
|
|
name = "enhancedPlustExpiryDate"
|
|
oid = "1.3.6.1.4.1.2604.5.1.5.8.2.0"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNconnID"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.1.1.1.1"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNconnName"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.1.1.1.2"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNconnDescription"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.1.1.1.3"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNpolicyName"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.1.1.1.4"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNpolicyMode"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.1.1.1.5"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNconnMode"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.1.1.1.6"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNlocalGWport"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.1.1.1.7"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNactiveTunnel"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.1.1.1.8"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNpolicyID"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.2.1.1.1"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNpolicyName"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.2.1.1.2"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNpolicyKeyLife"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.2.1.1.3"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNpolicyKeyMargin"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.2.1.1.4"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNpolicyEncAlg1"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.2.1.1.5"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNpolicyAuthAlg1"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.2.1.1.6"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNpolicyEncAlg2"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.2.1.1.7"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNpolicyAuthAlg2"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.2.1.1.8"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNpolicyEncAlg3"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.2.1.1.9"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNpolicyAuthAlg3"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.2.1.1.10"
|
|
[[inputs.snmp.field]]
|
|
name = "ipSecVPNpolicyKeyExchType"
|
|
oid = "1.3.6.1.4.1.2604.5.1.6.1.2.1.1.11"
|
|
[[inputs.snmp.field]]
|
|
name = "deviceAPname"
|
|
oid = "1.3.6.1.4.1.2604.5.1.7.1.1.1"
|
|
[[inputs.snmp.field]]
|
|
name = "deviceAPmodel"
|
|
oid = "1.3.6.1.4.1.2604.5.1.7.1.1.2"
|
|
[[inputs.snmp.field]]
|
|
name = "deviceAPmacAddr"
|
|
oid = "1.3.6.1.4.1.2604.5.1.7.1.1.3"
|
|
[[inputs.snmp.field]]
|
|
name = "deviceAPstatus"
|
|
oid = "1.3.6.1.4.1.2604.5.1.7.1.1.4"
|
|
[[inputs.snmp.field]]
|
|
name = "deviceAPclientCount"
|
|
oid = "1.3.6.1.4.1.2604.5.1.7.1.1.5"
|
|
[[inputs.snmp.field]]
|
|
name = "apClientIndex"
|
|
oid = "1.3.6.1.4.1.2604.5.1.7.2.1.1"
|
|
[[inputs.snmp.field]]
|
|
name = "apClientName"
|
|
oid = "1.3.6.1.4.1.2604.5.1.7.2.1.2"
|
|
[[inputs.snmp.field]]
|
|
name = "apClientIPaddrType"
|
|
oid = "1.3.6.1.4.1.2604.5.1.7.2.1.3"
|
|
[[inputs.snmp.field]]
|
|
name = "apClientIPaddr"
|
|
oid = "1.3.6.1.4.1.2604.5.1.7.2.1.4"
|
|
[[inputs.snmp.field]]
|
|
name = "apClientMacAddr"
|
|
oid = "1.3.6.1.4.1.2604.5.1.7.2.1.5"
|
|
[[inputs.snmp.field]]
|
|
name = "apClientChannel"
|
|
oid = "1.3.6.1.4.1.2604.5.1.7.2.1.6"
|
|
[[inputs.snmp.field]]
|
|
name = "apClientSSID"
|
|
oid = "1.3.6.1.4.1.2604.5.1.7.2.1.7"
|
|
[[inputs.snmp.field]]
|
|
name = "trapMessage"
|
|
oid = "1.3.6.1.4.1.2604.5.1.8.1.2.0"
|
|
|
|
[[outputs.influxdb_v2]]
|
|
## The URLs of the InfluxDB cluster nodes.
|
|
##
|
|
## Multiple URLs can be specified for a single cluster, only ONE of the
|
|
## urls will be written to each interval.
|
|
## ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"]
|
|
urls = ["http://influxdb:8086"]
|
|
|
|
## API token for authentication.
|
|
token = "ESdPkl_2F4IOipn7v428L5uHgvLLM6Zrv5vqQl9QObA5ROmPyvVCSMTKV8cB5ERRrSmFItr7V_VFb6vJYpizlA==" # change this to your API Token
|
|
|
|
## Organization is the name of the organization you wish to write to; must exist.
|
|
organization = "home"
|
|
|
|
## Destination bucket to write into.
|
|
bucket = "homelab"
|