# Monitoring ## Azure-data-explorer Telegraf output plugin [azure-data-explorer] ```{eval-rst} .. cfgcmd:: set service monitoring telegraf azure-data-explorer authentication client-id Authentication application client-id. ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf azure-data-explorer authentication client-secret Authentication application client-secret. ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf azure-data-explorer authentication tenant-id Authentication application tenant-id ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf azure-data-explorer database Remote database name. ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf azure-data-explorer group-metrics Type of metrics grouping when push to Azure Data Explorer. The default is ``table-per-metric``. ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf azure-data-explorer table Name of the single table Only if set group-metrics single-table. ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf azure-data-explorer url Remote URL. ``` ## Prometheus-client Telegraf output plugin [prometheus-client] ```{eval-rst} .. cfgcmd:: set service monitoring telegraf prometheus-client Output plugin Prometheus client ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf prometheus-client allow-from Networks allowed to query this server ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf prometheus-client authentication username HTTP basic authentication username ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf prometheus-client authentication password HTTP basic authentication username ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf prometheus-client listen-address
Local IP addresses to listen on ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf prometheus-client metric-version <1 | 2> Metris version, the default is ``2`` ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf prometheus-client port Port number used by connection, default is ``9273`` ``` Example: ```none set service monitoring telegraf prometheus-client ``` ```none vyos@r14:~$ curl --silent localhost:9273/metrics | egrep -v "#" | grep cpu_usage_system cpu_usage_system{cpu="cpu-total",host="r14"} 0.20040080160320556 cpu_usage_system{cpu="cpu0",host="r14"} 0.17182130584191915 cpu_usage_system{cpu="cpu1",host="r14"} 0.22896393817971655 ``` ## Splunk Telegraf output plugin [splunk]. HTTP Event Collector. ```{eval-rst} .. cfgcmd:: set service monitoring telegraf splunk authentication insecure Use TLS but skip host validation ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf splunk authentication token Authorization token ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf splunk authentication url Remote URL to Splunk collector ``` Example: ```none set service monitoring telegraf splunk authentication insecure set service monitoring telegraf splunk authentication token 'xxxxf5b8-xxxx-452a-xxxx-43828911xxxx' set service monitoring telegraf splunk url 'https://192.0.2.10:8088/services/collector' ``` ## Telegraf Monitoring functionality with `telegraf` and `InfluxDB 2` is provided. Telegraf is the open source server agent to help you collect metrics, events and logs from your routers. ```{eval-rst} .. cfgcmd:: set service monitoring telegraf influxdb authentication organization Authentication organization name ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf influxdb authentication token Authentication token ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf bucket Remote ``InfluxDB`` bucket name ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf influxdb port Remote port ``` ```{eval-rst} .. cfgcmd:: set service monitoring telegraf influxdb url Remote URL ``` ## Example An example of a configuration that sends `telegraf` metrics to remote `InfluxDB 2` ```none set service monitoring telegraf influxdb authentication organization 'vyos' set service monitoring telegraf influxdb authentication token 'ZAml9Uy5wrhA...==' set service monitoring telegraf influxdb bucket 'bucket_vyos' set service monitoring telegraf influxdb port '8086' set service monitoring telegraf influxdb url 'http://r1.influxdb2.local' ``` [azure-data-explorer]: https://github.com/influxdata/telegraf/tree/master/plugins/outputs/azure_data_explorer [prometheus-client]: https://github.com/influxdata/telegraf/tree/master/plugins/outputs/prometheus_client [splunk]: https://www.splunk.com/en_us/blog/it/splunk-metrics-via-telegraf.html