diff --git a/docs/configuration/configuration.md b/docs/configuration/configuration.md index 5f155388a..7c289931d 100644 --- a/docs/configuration/configuration.md +++ b/docs/configuration/configuration.md @@ -592,10 +592,10 @@ record name that produced the discovered target. ```yaml # A list of DNS domain names to be queried. names: - [ - ] + [ - ] -# The type of DNS query to perform. -[ type: | default = 'SRV' ] +# The type of DNS query to perform. One of SRV, A, or AAAA. +[ type: | default = 'SRV' ] # The port number used if the query type is not SRV. [ port: ] @@ -604,9 +604,6 @@ names: [ refresh_interval: | default = 30s ] ``` -Where `` is a valid DNS domain name. -Where `` is `SRV`, `A`, or `AAAA`. - ### `` EC2 SD configurations allow retrieving scrape targets from AWS EC2 @@ -1018,7 +1015,8 @@ See below for the configuration options for Kubernetes discovery: [ api_server: ] # The Kubernetes role of entities that should be discovered. -role: +# One of endpoints, service, pod, node, or ingress. +role: # Optional authentication information used to authenticate to the API server. # Note that `basic_auth`, `bearer_token` and `bearer_token_file` options are @@ -1062,14 +1060,11 @@ namespaces: # if you just want to monitor small subset of pods in large cluster it's recommended to use selectors. # Decision, if selectors should be used or not depends on the particular situation. [ selectors: - [ - role: + [ - role: [ label: ] [ field: ] ]] ``` -Where `` must be `endpoints`, `service`, `pod`, `node`, or -`ingress`. - See [this example Prometheus configuration file](/documentation/examples/prometheus-kubernetes.yml) for a detailed example of configuring Prometheus for Kubernetes.