This exporter supports adding arbitrary labels to metrics, with values identical for all metrics of a single host. The following parameters can be defined at target level or in the defaults section : If absent, `name` will be used tenant: customer1 # Value of the custom host-level label `tenant` role: primary # Value of the custom host-level label `role` Defaults name: # Name of the device hostname: 198.51.100.1 # IP or hostname to connect to. port: 443 # HTTPS port where the routerOS API listens allow_insecure: false # Allow self-signed API certificate timeout: 5 # API query timeout, in seconds targets: # List of Mikrotik RouterOS devices to query Username: prometheus # The user to use to connect to the API password: supersecurep4ssw0rd # The password to use to connect to the API password_file: /etc/routeros-rest-exporter/password # File where the password will be retrieved. Listen_port: 9100 # TCP port the exporter will bind to and expose the HTTP interface interval: 300 # Polling interval, in seconds custom_host_labels: # Custom host-level labels, see below
0 Comments
Leave a Reply. |