Bartosz Kupidura | bc698cc | 2017-03-10 09:14:06 +0100 | [diff] [blame] | 1 | ======================= |
| 2 | Salt Telegraf formula |
| 3 | ======================= |
| 4 | |
| 5 | Power your metrics and alerting with a leading open-source monitoring |
| 6 | solution. |
| 7 | |
| 8 | Sample pillars |
| 9 | ============== |
| 10 | |
| 11 | .. code-block:: yaml |
| 12 | |
| 13 | telegraf: |
| 14 | agent: |
| 15 | enabled: true |
| 16 | interval: 15 |
| 17 | round_interval: false |
| 18 | metric_batch_size: 1000 |
| 19 | metric_buffer_limit: 10000 |
| 20 | collection_jitter: 2 |
| 21 | output: |
| 22 | prometheus_client: |
| 23 | bind: |
| 24 | address: 0.0.0.0 |
| 25 | port: 9126 |
| 26 | engine: prometheus |
Bartosz Kupidura | f281091 | 2017-04-10 14:09:43 +0200 | [diff] [blame] | 27 | |
Petr Michalec | d65015f | 2017-09-14 09:51:53 +0200 | [diff] [blame] | 28 | Influx output |
| 29 | ------------- |
| 30 | |
| 31 | .. code-block:: yaml |
| 32 | |
| 33 | telegraf: |
| 34 | agent: |
| 35 | output: |
| 36 | influxdb: |
| 37 | urls: |
| 38 | - http://127.0.0.1:8086 |
| 39 | database: test-telegraf |
| 40 | write_consistency: any |
| 41 | timeout: 10s |
Kostiantyn Ovchynnykov | f16c275 | 2021-03-09 11:42:29 +0200 | [diff] [blame] | 42 | |
| 43 | Multiple outputs of the same type |
| 44 | --------------------------------- |
| 45 | |
| 46 | .. code-block:: yaml |
| 47 | |
| 48 | telegraf: |
| 49 | agent: |
| 50 | output: |
| 51 | prometheus_client: |
| 52 | bind: |
| 53 | address: 0.0.0.0 |
| 54 | port: 9126 |
| 55 | engine: prometheus |
| 56 | expiration_interval: 1m |
| 57 | namedrop: |
| 58 | - custom_metric |
| 59 | string_as_label: false |
| 60 | prometheus_client_custom: |
| 61 | bind: |
| 62 | address: 0.0.0.0 |
| 63 | port: 9127 |
| 64 | engine: prometheus |
| 65 | expiration_interval: 10m |
| 66 | namepass: |
| 67 | - custom_metric |
| 68 | string_as_label: false |
| 69 | template: telegraf/files/output/prometheus_client.conf |