| 1 | { config, ... }: |
| 2 | |
| 3 | { |
| 4 | age.secrets.fastly-exporter-env.file = ../../../secrets/fastly-exporter-env.age; |
| 5 | |
| 6 | services.prometheus = { |
| 7 | exporters.fastly = { |
| 8 | enable = true; |
| 9 | listenAddress = "127.0.0.1"; |
| 10 | environmentFile = config.age.secrets.fastly-exporter-env.path; |
| 11 | }; |
| 12 | |
| 13 | scrapeConfigs = [ |
| 14 | { |
| 15 | job_name = "fastly"; |
| 16 | metrics_path = "/metrics"; |
| 17 | static_configs = [ { targets = [ "127.0.0.1:9118" ]; } ]; |
| 18 | } |
| 19 | ]; |
| 20 | }; |
| 21 | } |