A Prometheus file discovery for Fortigate's based on FortiManager
Project description
fortigate-exporter-discovery
Overview
The fortigate-exporter-discovery is a Prometheus file discovery tool that use a Fortimanager instance to get fortigate's based on a adom.
The tool work with the fortigate-exporter.
It requires that the following pull request is accepted https://github.com/bluecmd/fortigate_exporter/pull/206 or you can use https://github.com/thenodon/fortigate_exporter.
Configuration
The configuration file include the credentials for the Fortimanager and the configuration for each adom.
The
token
used for the Fortigate api access should be the same for all Fotigate in the same adom.
Example:
fmg:
# The host name of the fmg -
host: "https://fmg.foo.com"
username: fmg_foo
password: fmg_foo_password
adoms:
- name: SDWAN_Foo
# Same api key for all fortigate in the same adom
#apikey: XYZ
#port: 44343
# Additional labels
labels:
customer: Foo
# This is common for all fortigates in the same adom
fortigate:
token: XYZ
port: 44343
# Profile is a named entry in fortigate-exporter fortigate-key.yaml file to get probes exclude/includes
profile: common
Two environment variables must be set.
- FMG_DISCOVERY_CONFIG - the path to the above config file, default is ./config.yml
- FMG_PROMETHEUS_SD_FILE_DIRECTORY - the output directory for the file discovery files used in the your Prometheus configuration. Each adom will have its own file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for fortigate-exporter-discovery-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78a4eff1b19791d65227be8dcd7dd97507a09f5b5d436b371c2df8d26715ff39 |
|
MD5 | 95f3be8407205ef822fefcced628d3d3 |
|
BLAKE2b-256 | d247b08bb0e72dd157e6848d37c0fa4fb7e4e7458c0e653183f0104ada38f6ab |
Hashes for fortigate_exporter_discovery-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 735f162210f44dffdca2d1ba0832b47eb7587ab6ac928dfd9a8ca9c23f79bf15 |
|
MD5 | d0d18932ec0653ce371aaf9235abdb97 |
|
BLAKE2b-256 | c850abcebe66353b83e3d5c1fce0eb000658ed07de1c946d1f6718ccfa128629 |