instance: 这个标签,在relabel之前是没有的,如果relabel期间也没有设置instance标签,默认情况下instance标签的值就是__address__的内容 __scheme__: http或者https __metrics_path__: metrics的路径 ...
[ - <http_sd_config> ... ] #Kubernetes服务发现配置列表。 kubernetes_sd_configs: [ - <kubernetes_sd_config> ... ] # Lightsail 服务发现配置列表。 lightsail_sd_configs: [ - <lightsail_sd_config> ... ] # Linode 服务发现配置列表。 linode_sd_configs: [ - <linode_sd_config> ... ] ...
[ scheme:<scheme>| default = http ] # 可选的HTTP URL参数. params: [<string>: [<string>, ...] ] # 使用配置的用户名和密码在每个scrape请求上设置`Authorization`标头。 password和password_file是互斥的。 basic_auth: [ username:<string>] [ password:<secret>] [ password_file:<string>] # ...
http_sd_configs: - url: <url-of-the-service-discovery-configuration> refresh_interval: 60s basic_auth: username: <insert-prometheus-user-id> password: <insert-password> 文件服务发现 此方法允许 Prometheus 读取 YAML 或 JSON 文档,以配置要抓取的目标。您负责向Discovery API发出请求并将其结果存储在ta...
[timeout:<duration>|default=10s][path_prefix:<path>|default=/][scheme:<scheme>|default=http]basic_auth:[username:<string>][password:<string>][password_file:<string>][bearer_token:<string>][bearer_token_file:/path/to/bearer/token/file]tls_config:[<tls_config>][proxy_url:<string>]azure...
basic_auth: # HTTP basic 认证信息 username: 'myusername' password: 'mysecret' - job_name: service-kubernetes-namespaces kubernetes_sd_configs: - role: endpoints # 应该被发现的 kubernetes 对象 实体 api_server: 'https://localhost:1234' # API Server的地址 namespaces: # 可选的命名空间发现, 如...
配置账号密码等信息basic_auth:username:adminpassword:adminpassword_file:/etc/pwd# bearer_token或者文件位置(OAuth 2.0鉴权)bearer_token:kferkhjktdgjwkgkrwgbearer_token_file:/var/run/secrets/kubernetes.io/serviceaccount/token# https的配置,如跳过认证,或配置证书文件tls_config:# insecure_skip_verify: true...
[ scheme: <scheme> | default = http ] # 可选的HTTP URL参数 params: [ <string>: [<string>, ...] ] # 使用配置的用户名和密码,密码和密码文件是互斥的。 basic_auth: [ username: <string> ] [ password: <secret> ] [ password_file: <string> ] # 使用设置每个刮取请求的“Authorization...
# The following env variables set up basic auth twith the default admin user and admin password - name: GF_AUTH_BASIC_ENABLED value: "true" - name: GF_AUTH_ANONYMOUS_ENABLED value: "false" # - name: GF_AUTH_ANONYMOUS_ORG_ROLE # value: Admin # does not really work, because of templ...
- job_name: 'prometheus' # metrics_path defaults to '/metrics' # scheme defaults to 'http'. static_configs: - targets: ['10.0.0.14:9090'] - job_name: 'nodes' # 这里加了认证,测试的时候可以删除 basic_auth: username: mynode password: 111111 file_sd_configs: - files: - "node/*.yml...