|
| 1 | +###################### Metricbeat Configuration Example ####################### |
| 2 | + |
| 3 | +# This file is an example configuration file highlighting only the most common |
| 4 | +# options. The metricbeat.reference.yml file from the same directory contains all the |
| 5 | +# supported options with more comments. You can use it as a reference. |
| 6 | +# |
| 7 | +# You can find the full configuration reference here: |
| 8 | +# https://www.elastic.co/guide/en/beats/metricbeat/index.html |
| 9 | + |
| 10 | +# =========================== Modules configuration ============================ |
| 11 | + |
| 12 | +metricbeat.config.modules: |
| 13 | + # Glob pattern for configuration loading |
| 14 | + path: ${path.config}/modules.d/*.yml |
| 15 | + |
| 16 | + # Set to true to enable config reloading |
| 17 | + reload.enabled: false |
| 18 | + |
| 19 | + # Period on which files under path should be checked for changes |
| 20 | + #reload.period: 10s |
| 21 | + |
| 22 | +# ======================= Elasticsearch template setting ======================= |
| 23 | + |
| 24 | +setup.template.settings: |
| 25 | + index.number_of_shards: 1 |
| 26 | + index.codec: best_compression |
| 27 | + #_source.enabled: false |
| 28 | + |
| 29 | + |
| 30 | +# ================================== General =================================== |
| 31 | + |
| 32 | +# The name of the shipper that publishes the network data. It can be used to group |
| 33 | +# all the transactions sent by a single shipper in the web interface. |
| 34 | +#name: |
| 35 | + |
| 36 | +# The tags of the shipper are included in their own field with each |
| 37 | +# transaction published. |
| 38 | +#tags: ["service-X", "web-tier"] |
| 39 | + |
| 40 | +# Optional fields that you can specify to add additional information to the |
| 41 | +# output. |
| 42 | +# ================================= Dashboards ================================= |
| 43 | +# These settings control loading the sample dashboards to the Kibana index. Loading |
| 44 | +# the dashboards is disabled by default and can be enabled either by setting the |
| 45 | +# options here or by using the `setup` command. |
| 46 | +#setup.dashboards.enabled: false |
| 47 | + |
| 48 | +# The URL from where to download the dashboards archive. By default this URL |
| 49 | +# has a value which is computed based on the Beat name and version. For released |
| 50 | +# versions, this URL points to the dashboard archive on the artifacts.elastic.co |
| 51 | +# website. |
| 52 | +#setup.dashboards.url: |
| 53 | + |
| 54 | +# =================================== Kibana =================================== |
| 55 | + |
| 56 | +# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API. |
| 57 | +# This requires a Kibana endpoint configuration. |
| 58 | +setup.kibana: |
| 59 | + |
| 60 | + # Kibana Host |
| 61 | + # Scheme and port can be left out and will be set to the default (http and 5601) |
| 62 | + # In case you specify and additional path, the scheme is required: http://localhost:5601/path |
| 63 | + # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601 |
| 64 | + #host: "localhost:5601" |
| 65 | + |
| 66 | + # Kibana Space ID |
| 67 | + # ID of the Kibana Space into which the dashboards should be loaded. By default, |
| 68 | + # the Default Space will be used. |
| 69 | + #space.id: |
| 70 | + |
| 71 | +# =============================== Elastic Cloud ================================ |
| 72 | + |
| 73 | +# These settings simplify using Metricbeat with the Elastic Cloud (https://cloud.elastic.co/). |
| 74 | + |
| 75 | +# The cloud.id setting overwrites the `output.elasticsearch.hosts` and |
| 76 | +# `setup.kibana.host` options. |
| 77 | +# You can find the `cloud.id` in the Elastic Cloud web UI. |
| 78 | +cloud.id: kibana-code-coverage:ZXVyb3BlLXdlc3QxLmdjcC5jbG91ZC5lcy5pbyQxNDJmZWEyZDMwNDc0ODZlOTI1ZWI4YjIyMzU1OWNhZSRhNmIxMTgzZmQwZmI0ODZkYmRlMGU0YjYyODA0M2NmNA== |
| 79 | + |
| 80 | +# The cloud.auth setting overwrites the `output.elasticsearch.username` and |
| 81 | +# `output.elasticsearch.password` settings. The format is `<user>:<pass>`. |
| 82 | +#cloud.auth: beats_ingester:changeme - replaced with Vault |
| 83 | + |
| 84 | +# ================================== Outputs =================================== |
| 85 | + |
| 86 | +# Configure what output to use when sending the data collected by the beat. |
| 87 | + |
| 88 | +# ---------------------------- Elasticsearch Output ---------------------------- |
| 89 | +#output.elasticsearch: |
| 90 | + # Array of hosts to connect to. |
| 91 | + # hosts: ["localhost:9200"] |
| 92 | + |
| 93 | + # Protocol - either `http` (default) or `https`. |
| 94 | + #protocol: "https" |
| 95 | + |
| 96 | + # Authentication credentials - either API key or username/password. |
| 97 | + #api_key: "id:api_key" |
| 98 | + #username: "elastic" |
| 99 | + #password: "changeme" |
| 100 | + |
| 101 | +# ------------------------------ Logstash Output ------------------------------- |
| 102 | +#output.logstash: |
| 103 | + # The Logstash hosts |
| 104 | + #hosts: ["localhost:5044"] |
| 105 | + |
| 106 | + # Optional SSL. By default is off. |
| 107 | + # List of root certificates for HTTPS server verifications |
| 108 | + #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"] |
| 109 | + |
| 110 | + # Certificate for SSL client authentication |
| 111 | + #ssl.certificate: "/etc/pki/client/cert.pem" |
| 112 | + |
| 113 | + # Client Certificate Key |
| 114 | + #ssl.key: "/etc/pki/client/cert.key" |
| 115 | + |
| 116 | +# ================================= Processors ================================= |
| 117 | + |
| 118 | +# Configure processors to enhance or manipulate events generated by the beat. |
| 119 | + |
| 120 | +processors: |
| 121 | + - add_host_metadata: ~ |
| 122 | + - add_cloud_metadata: ~ |
| 123 | + - add_docker_metadata: ~ |
| 124 | + - add_kubernetes_metadata: ~ |
| 125 | + |
| 126 | + |
| 127 | +# ================================== Logging =================================== |
| 128 | + |
| 129 | +# Sets log level. The default log level is info. |
| 130 | +# Available log levels are: error, warning, info, debug |
| 131 | +#logging.level: debug |
| 132 | + |
| 133 | +# At debug level, you can selectively enable logging only for some components. |
| 134 | +# To enable all selectors use ["*"]. Examples of other selectors are "beat", |
| 135 | +# "publisher", "service". |
| 136 | +#logging.selectors: ["*"] |
| 137 | + |
| 138 | +# ============================= X-Pack Monitoring ============================== |
| 139 | +# Metricbeat can export internal metrics to a central Elasticsearch monitoring |
| 140 | +# cluster. This requires xpack monitoring to be enabled in Elasticsearch. The |
| 141 | +# reporting is disabled by default. |
| 142 | + |
| 143 | +# Set to true to enable the monitoring reporter. |
| 144 | +#monitoring.enabled: false |
| 145 | + |
| 146 | +# Sets the UUID of the Elasticsearch cluster under which monitoring data for this |
| 147 | +# Metricbeat instance will appear in the Stack Monitoring UI. If output.elasticsearch |
| 148 | +# is enabled, the UUID is derived from the Elasticsearch cluster referenced by output.elasticsearch. |
| 149 | +#monitoring.cluster_uuid: |
| 150 | + |
| 151 | +# Uncomment to send the metrics to Elasticsearch. Most settings from the |
| 152 | +# Elasticsearch output are accepted here as well. |
| 153 | +# Note that the settings should point to your Elasticsearch *monitoring* cluster. |
| 154 | +# Any setting that is not set is automatically inherited from the Elasticsearch |
| 155 | +# output configuration, so if you have the Elasticsearch output configured such |
| 156 | +# that it is pointing to your Elasticsearch monitoring cluster, you can simply |
| 157 | +# uncomment the following line. |
| 158 | +#monitoring.elasticsearch: |
| 159 | + |
| 160 | +# ============================== Instrumentation =============================== |
| 161 | + |
| 162 | +# Instrumentation support for the metricbeat. |
| 163 | +#instrumentation: |
| 164 | + # Set to true to enable instrumentation of metricbeat. |
| 165 | + #enabled: false |
| 166 | + |
| 167 | + # Environment in which metricbeat is running on (eg: staging, production, etc.) |
| 168 | + #environment: "" |
| 169 | + |
| 170 | + # APM Server hosts to report instrumentation results to. |
| 171 | + #hosts: |
| 172 | + # - http://localhost:8200 |
| 173 | + |
| 174 | + # API Key for the APM Server(s). |
| 175 | + # If api_key is set then secret_token will be ignored. |
| 176 | + #api_key: |
| 177 | + |
| 178 | + # Secret token for the APM Server(s). |
| 179 | + #secret_token: |
| 180 | + |
| 181 | + |
| 182 | +# ================================= Migration ================================== |
| 183 | + |
| 184 | +# This allows to enable 6.7 migration aliases |
| 185 | +#migration.6_to_7.enabled: truefields.build: : |
| 186 | +logging.to_stderr: True |
0 commit comments