=> creating /etc/telegraf/edge-config.yaml # Read archon telemetry [global_tags] deployment_location= "" deployment_hostname= "" [[inputs.prometheus]] # use cognitiveservicemodule environemnt variable urls = ["http://spatialanalysis:2222/archonTelemetry"] [[inputs.disk]] ## By default stats will be gathered for all mount points. ## Set mount_points will restrict the stats to only the specified mount points. # mount_points = ["/"] ## Ignore mount points by filesystem type. ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"] # Read metrics about memory usage [[inputs.mem]] [[inputs.cpu]] ## Whether to report per-cpu stats or not percpu = false ## Whether to report total system cpu stats or not totalcpu = true ## If true, collect raw CPU time metrics. collect_cpu_time = false ## If true, compute and report the sum of all non-idle CPU states. report_active = true # 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. ## 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. # 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...) and ## network (eth0, eth1, ...) stats or not perdevice = true ## Whether to report for each container total blkio and network stats or not total = false ## 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 fieldpass = ["usage_*", "usage", "rx_bytes", "tx_bytes"] taginclude = ["container_name", "engine_host"] #fieldpass = ["usage_*", "usage"] #taginclude = ["container_name", "engine_host"] # Send metrics to Azure Application Insights [[outputs.application_insights]] ## Instrumentation key of the Application Insights resource. instrumentation_key = "" ## Regions that require endpoint modification https://docs.microsoft.com/en-us/azure/azure-monitor/app/custom-endpoints # endpoint_url = "https://dc.services.visualstudio.com/v2/track" ## Timeout for closing (default: 5s). # timeout = "5s" ## Enable additional diagnostic logging. # enable_diagnostic_logging = false ## Context Tag Sources add Application Insights context tags to a tag value. ## ## For list of allowed context tag keys see: ## https://github.com/microsoft/ApplicationInsights-Go/blob/master/appinsights/contracts/contexttagkeys.go # [outputs.application_insights.context_tag_sources] # "ai.cloud.role" = "kubernetes_container_name" # "ai.cloud.roleInstance" = "kubernetes_pod_name" [agent] interval = "1m" => starting telegraf agent 2024-05-23T07:53:45Z W! DeprecationWarning: Option "perdevice" of plugin "inputs.docker" deprecated since version 1.18.0 and will be removed in 2.0.0: use 'perdevice_include' instead 2024-05-23T07:53:45Z I! Starting Telegraf 1.25.0 2024-05-23T07:53:45Z I! Available plugins: 228 inputs, 9 aggregators, 26 processors, 21 parsers, 57 outputs, 2 secret-stores 2024-05-23T07:53:45Z I! Loaded inputs: cpu disk docker mem prometheus 2024-05-23T07:53:45Z I! Loaded aggregators: 2024-05-23T07:53:45Z I! Loaded processors: 2024-05-23T07:53:45Z I! Loaded secretstores: 2024-05-23T07:53:45Z I! Loaded outputs: application_insights 2024-05-23T07:53:45Z I! Tags enabled: deployment_hostname= deployment_location= host=af529653140a 2024-05-23T07:53:45Z W! Deprecated inputs: 0 and 1 options 2024-05-23T07:53:45Z I! [agent] Config: Interval:1m0s, Quiet:false, Hostname:"af529653140a", Flush Interval:10s 2024-05-23T07:53:45Z D! [agent] Initializing plugins 2024-05-23T07:53:45Z D! [agent] Connecting outputs 2024-05-23T07:53:45Z D! [agent] Attempting connection to [outputs.application_insights] 2024-05-23T07:53:45Z E! [agent] Failed to connect to [outputs.application_insights], retrying in 15s, error was 'instrumentation key is required' 2024-05-23T07:54:00Z E! [telegraf] Error running agent: connecting output outputs.application_insights: error connecting to output "outputs.application_insights": instrumentation key is required => creating /etc/telegraf/edge-config.yaml # Read archon telemetry [global_tags] deployment_location= "" deployment_hostname= "" [[inputs.prometheus]] # use cognitiveservicemodule environemnt variable urls = ["http://spatialanalysis:2222/archonTelemetry"] [[inputs.disk]] ## By default stats will be gathered for all mount points. ## Set mount_points will restrict the stats to only the specified mount points. # mount_points = ["/"] ## Ignore mount points by filesystem type. ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"] # Read metrics about memory usage [[inputs.mem]] [[inputs.cpu]] ## Whether to report per-cpu stats or not percpu = false ## Whether to report total system cpu stats or not totalcpu = true ## If true, collect raw CPU time metrics. collect_cpu_time = false ## If true, compute and report the sum of all non-idle CPU states. report_active = true # 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. ## 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. # 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...) and ## network (eth0, eth1, ...) stats or not perdevice = true ## Whether to report for each container total blkio and network stats or not total = false ## 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 fieldpass = ["usage_*", "usage", "rx_bytes", "tx_bytes"] taginclude = ["container_name", "engine_host"] #fieldpass = ["usage_*", "usage"] #taginclude = ["container_name", "engine_host"] # Send metrics to Azure Application Insights [[outputs.application_insights]] ## Instrumentation key of the Application Insights resource. instrumentation_key = "" ## Regions that require endpoint modification https://docs.microsoft.com/en-us/azure/azure-monitor/app/custom-endpoints # endpoint_url = "https://dc.services.visualstudio.com/v2/track" ## Timeout for closing (default: 5s). # timeout = "5s" ## Enable additional diagnostic logging. # enable_diagnostic_logging = false ## Context Tag Sources add Application Insights context tags to a tag value. ## ## For list of allowed context tag keys see: ## https://github.com/microsoft/ApplicationInsights-Go/blob/master/appinsights/contracts/contexttagkeys.go # [outputs.application_insights.context_tag_sources] # "ai.cloud.role" = "kubernetes_container_name" # "ai.cloud.roleInstance" = "kubernetes_pod_name" [agent] interval = "1m" => starting telegraf agent 2024-05-23T08:02:33Z W! DeprecationWarning: Option "perdevice" of plugin "inputs.docker" deprecated since version 1.18.0 and will be removed in 2.0.0: use 'perdevice_include' instead 2024-05-23T08:02:33Z I! Starting Telegraf 1.25.0 2024-05-23T08:02:33Z I! Available plugins: 228 inputs, 9 aggregators, 26 processors, 21 parsers, 57 outputs, 2 secret-stores 2024-05-23T08:02:33Z I! Loaded inputs: cpu disk docker mem prometheus 2024-05-23T08:02:33Z I! Loaded aggregators: 2024-05-23T08:02:33Z I! Loaded processors: 2024-05-23T08:02:33Z I! Loaded secretstores: 2024-05-23T08:02:33Z I! Loaded outputs: application_insights 2024-05-23T08:02:33Z I! Tags enabled: deployment_hostname= deployment_location= host=af529653140a 2024-05-23T08:02:33Z W! Deprecated inputs: 0 and 1 options 2024-05-23T08:02:33Z I! [agent] Config: Interval:1m0s, Quiet:false, Hostname:"af529653140a", Flush Interval:10s 2024-05-23T08:02:33Z D! [agent] Initializing plugins 2024-05-23T08:02:33Z D! [agent] Connecting outputs 2024-05-23T08:02:33Z D! [agent] Attempting connection to [outputs.application_insights] 2024-05-23T08:02:33Z E! [agent] Failed to connect to [outputs.application_insights], retrying in 15s, error was 'instrumentation key is required' 2024-05-23T08:02:48Z E! [telegraf] Error running agent: connecting output outputs.application_insights: error connecting to output "outputs.application_insights": instrumentation key is required