Skip to content

Commit

Permalink
Added lightbox and lightos to prometheus (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
simcod authored Sep 6, 2024
1 parent 2f4028f commit bbdc275
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
2 changes: 2 additions & 0 deletions partition/roles/monitoring/prometheus/defaults/main/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ prometheus_promtail_targets: []
prometheus_ping_targets: []
prometheus_sonic_exporter_targets: []
prometheus_blackbox_exporter_targets: []
prometheus_lightbox_exporter_targets: []
prometheus_lightos_smart_targets: []

prometheus_hosts_content: |
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
Expand Down
24 changes: 22 additions & 2 deletions partition/roles/monitoring/prometheus/templates/prometheus.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,26 @@ scrape_configs:
metrics_path: /metrics
scrape_timeout: 25s
scrape_interval: 30s
honor_timestamps: True
params:
collect[]:
- clustering
- datapath
- duroslight
- meminfo
- textfile
- lightfield
- netstat
- netdev
- cpufreq
static_configs:
- targets: {{ prometheus_lightbox_exporter_targets | to_json }}

- job_name: 'lightos-smart'
metrics_path: /metrics
scrape_timeout: 10s
scrape_interval: 5m
params:
collect[]:
- smart
static_configs:
- targets:
- targets: {{ prometheus_lightos_smart_targets | to_json }}

0 comments on commit bbdc275

Please sign in to comment.