"use strict";(self.webpackChunkinfluxdb_ui=self.webpackChunkinfluxdb_ui||[]).push([[369],{81385:e=>{e.exports='# Read metrics from one or many prometheus clients\n[[inputs.prometheus]]\n  ## An array of urls to scrape metrics from.\n  urls = ["http://localhost:9100/metrics"]\n\n  ## Metric version controls the mapping from Prometheus metrics into Telegraf metrics.\n  ## See "Metric Format Configuration" in plugins/inputs/prometheus/README.md for details.\n  ## Valid options: 1, 2\n  # metric_version = 1\n\n  ## Url tag name (tag containing scrapped url. optional, default is "url")\n  # url_tag = "url"\n\n  ## Whether the timestamp of the scraped metrics will be ignored.\n  ## If set to true, the gather time will be used.\n  # ignore_timestamp = false\n\n  ## An array of Kubernetes services to scrape metrics from.\n  # kubernetes_services = ["http://my-service-dns.my-namespace:9100/metrics"]\n\n  ## Kubernetes config file to create client from.\n  # kube_config = "/path/to/kubernetes.config"\n\n  ## Scrape Kubernetes pods for the following prometheus annotations:\n  ## - prometheus.io/scrape: Enable scraping for this pod\n  ## - prometheus.io/scheme: If the metrics endpoint is secured then you will need to\n  ##     set this to \'https\' & most likely set the tls config.\n  ## - prometheus.io/path: If the metrics path is not /metrics, define it with this annotation.\n  ## - prometheus.io/port: If port is not 9102 use this annotation\n  # monitor_kubernetes_pods = true\n\n  ## Get the list of pods to scrape with either the scope of\n  ## - cluster: the kubernetes watch api (default, no need to specify)\n  ## - node: the local cadvisor api; for scalability. Note that the config node_ip or the environment variable NODE_IP must be set to the host IP.\n  # pod_scrape_scope = "cluster"\n\n  ## Only for node scrape scope: node IP of the node that telegraf is running on.\n  ## Either this config or the environment variable NODE_IP must be set.\n  # node_ip = "10.180.1.1"\n\n  ## Only for node scrape scope: interval in seconds for how often to get updated pod list for scraping.\n  ## Default is 60 seconds.\n  # pod_scrape_interval = 60\n\n  ## Restricts Kubernetes monitoring to a single namespace\n  ##   ex: monitor_kubernetes_pods_namespace = "default"\n  # monitor_kubernetes_pods_namespace = ""\n  # label selector to target pods which have the label\n  # kubernetes_label_selector = "env=dev,app=nginx"\n  # field selector to target pods\n  # eg. To scrape pods on a specific node\n  # kubernetes_field_selector = "spec.nodeName=$HOSTNAME"\n\n  # cache refresh interval to set the interval for re-sync of pods list.\n  # Default is 60 minutes.\n  # cache_refresh_interval = 60\n\n  ## Scrape Services available in Consul Catalog\n  # [inputs.prometheus.consul]\n  #   enabled = true\n  #   agent = "http://localhost:8500"\n  #   query_interval = "5m"\n\n  #   [[inputs.prometheus.consul.query]]\n  #     name = "a service name"\n  #     tag = "a service tag"\n  #     url = \'http://{{if ne .ServiceAddress ""}}{{.ServiceAddress}}{{else}}{{.Address}}{{end}}:{{.ServicePort}}/{{with .ServiceMeta.metrics_path}}{{.}}{{else}}metrics{{end}}\'\n  #     [inputs.prometheus.consul.query.tags]\n  #       host = "{{.Node}}"\n\n  ## Use bearer token for authorization. (\'bearer_token\' takes priority)\n  # bearer_token = "/path/to/bearer/token"\n  ## OR\n  # bearer_token_string = "abc_123"\n\n  ## HTTP Basic Authentication username and password. (\'bearer_token\' and\n  ## \'bearer_token_string\' take priority)\n  # username = ""\n  # password = ""\n\n  ## Specify timeout duration for slower prometheus clients (default is 3s)\n  # response_timeout = "3s"\n\n  ## Optional TLS Config\n  # tls_ca = /path/to/cafile\n  # tls_cert = /path/to/certfile\n  # tls_key = /path/to/keyfile\n\n  ## Use TLS but skip chain & host verification\n  # insecure_skip_verify = false\n'}}]);