This commit is contained in:
James Turland
2023-09-20 22:34:29 +01:00
commit 6e00e0aa3f
77 changed files with 6752 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,16 @@
# my global config
global:
scrape_interval: 15s
evaluation_interval: 30s
body_size_limit: 15MB
sample_limit: 1500
target_limit: 30
label_limit: 30
label_name_length_limit: 200
label_value_length_limit: 200
# scrape_timeout is set to the global default (10s).
scrape_configs:
- job_name: crowdsec_myMachine
static_configs:
- targets: ["192.168.7.114:6060"] # change this to your crowdsec IP. Be sure to enable port 6060 first

View File

@@ -0,0 +1,404 @@
# 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"

View File

@@ -0,0 +1,109 @@
version: "3"
services:
loki:
container_name: loki
image: grafana/loki:main
networks:
- grafana-monitoring
volumes:
- /home/ubuntu/docker/grafana-monitoring/loki:/etc/loki
ports:
- "3100:3100"
restart: unless-stopped
command: -config.file=/etc/loki/loki-config.yml
promtail:
container_name: promtail
image: grafana/promtail:main
networks:
- grafana-monitoring
volumes:
- /var/log:/var/log
- /home/ubuntu/docker/grafana-monitoring/promtail:/etc/promtail
ports:
- "1514:1514" # this is only needed if you are going to send syslogs
restart: unless-stopped
command: -config.file=/etc/promtail/promtail-config.yml
grafana:
container_name: grafana
image: grafana/grafana-oss:main-ubuntu
user: "0"
networks:
- grafana-monitoring
- proxy
volumes:
- /home/ubuntu/docker/grafana-monitoring/grafana:/var/lib/grafana
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.grafana.entrypoints=http"
- "traefik.http.routers.grafana.rule=Host(`grafana.jimsgarage.co.uk`)"
- "traefik.http.routers.grafana.middlewares=default-whitelist@file"
- "traefik.http.middlewares.grafana-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.grafana.middlewares=grafana-https-redirect"
- "traefik.http.routers.grafana-secure.entrypoints=https"
- "traefik.http.routers.grafana-secure.rule=Host(`grafana.jimsgarage.co.uk`)"
- "traefik.http.routers.grafana-secure.tls=true"
- "traefik.http.routers.grafana-secure.service=grafana"
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
- "traefik.docker.network=proxy"
influxdb:
container_name: influxdb
image: influxdb:latest
restart: unless-stopped
ports:
- 8086:8086
- 8089:8089/udp
networks:
- grafana-monitoring
volumes:
- /home/ubuntu/docker/grafana-monitoring/influxdb:/var/lib/influxdb2
telegraf:
container_name: telegraf
restart: unless-stopped
user: telegraf:995 #you need to find the GID of Docker if not added to Sudo group
networks:
- grafana-monitoring
volumes:
- '/home/ubuntu/docker/grafana-monitoring/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro'
- '/:/hostfs:ro' # to monitor docker-vm
- '/var/run/docker.sock:/var/run/docker.sock' # to monitor docker containers
- '/home/ubuntu/docker/grafana-monitoring/telegraf/mibs:/usr/share/snmp/mibs' # mibs files [e.g., sophos]
environment:
- HOST_ETC=/hostfs/etc
- HOST_PROC=/hostfs/proc
- HOST_SYS=/hostfs/sys
- HOST_VAR=/hostfs/var
- HOST_RUN=/hostfs/run
- HOST_MOUNT_PREFIX=/hostfs
image: telegraf:latest
graphite:
image: graphiteapp/graphite-statsd
container_name: graphite
restart: unless-stopped
ports:
- 8050:80 # nginx
- 2003-2004 # carbon receiver - plaintext & pickle
- 2023-2024 # carbon aggregator - plaintext & pickle
- 8125:8125/udp # statsd
- 8126:8126 # statsd admin
volumes:
- /home/ubuntu/docker/grafana-monitoring/graphite/configs:/opt/graphite/conf
- /home/ubuntu/docker/grafana-monitoring/graphite/data:/opt/graphite/storage
- /home/ubuntu/docker/grafana-monitoring/graphite/statsd_config:/opt/statsd/config
networks:
- grafana-monitoring
prometheus:
image: prom/prometheus
container_name: prometheus
restart: unless-stopped
ports:
- 9090:9090
volumes:
- /home/ubuntu/docker/grafana-monitoring/prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- grafana-monitoring
networks:
grafana-monitoring:
proxy:
external: true

View File

@@ -0,0 +1,11 @@
# my global config
global:
scrape_interval: 15s
evaluation_interval: 30s
body_size_limit: 15MB
sample_limit: 1500
target_limit: 30
label_limit: 30
label_name_length_limit: 200
label_value_length_limit: 200
# scrape_timeout is set to the global default (10s).

View File

@@ -0,0 +1,72 @@
# 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