Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions collector/purefa/examples/compose/collector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
receivers:
prometheus:
config:
scrape_configs:
- job_name: 'purestorage-fa'
scrape_interval: 10s
metrics_path: "/metrics/array"
static_configs:
- targets: ['pure-fa-om-exporter:9490']
params:
endpoint: ["${YOUR_FLASHARRAY_IP}"]
headers:
Authorization: "Bearer ${YOUR_API_TOKEN}"

- job_name: 'purestorage-fa_volumes'
metrics_path: "/metrics/volumes"
static_configs:
- targets: ['pure-fa-om-exporter:9490']
params:
endpoint: ["${YOUR_FLASHARRAY_IP}"]
headers:
Authorization: "Bearer ${YOUR_API_TOKEN}"

- job_name: 'purestorage-fa_hosts'
metrics_path: "/metrics/hosts"
static_configs:
- targets: ['pure-fa-om-exporter:9490']
params:
endpoint: ["${YOUR_FLASHARRAY_IP}"]
headers:
Authorization: "Bearer ${YOUR_API_TOKEN}"

- job_name: 'purestorage-fa_pods'
metrics_path: "/metrics/pods"
static_configs:
- targets: ['pure-fa-om-exporter:9490']
params:
endpoint: ["${YOUR_FLASHARRAY_IP}"]
headers:
Authorization: "Bearer ${YOUR_API_TOKEN}"

- job_name: 'purestorage-fa_directories'
metrics_path: "/metrics/directories"
static_configs:
- targets: ['pure-fa-om-exporter:9490']
params:
endpoint: ["${YOUR_FLASHARRAY_IP}"]
headers:
Authorization: "Bearer ${YOUR_API_TOKEN}"

processors:
batch:

exporters:
logging:
loglevel: debug
otlp:
endpoint: ingest.lightstep.com:443
headers:
lightstep-access-token: "${LS_ACCESS_TOKEN}"

service:
pipelines:
metrics:
receivers: [prometheus]
processors: [batch]
exporters: [logging, otlp]
23 changes: 23 additions & 0 deletions collector/purefa/examples/compose/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '3.8'

services:
pure-fa-om-exporter:
image: quay.io/purestorage/pure-fa-om-exporter:latest
command:
- '--port=9490'
ports:
- 9490:9490
restart: on-failure
depends_on:
- otel-collector

otel-collector:
container_name: otel-collector
image: otel/opentelemetry-collector-contrib:0.81.0
hostname: otel-collector
restart: always
command: [ "--config=/conf/collector.yaml" ]
volumes:
- ./collector.yaml:/conf/collector.yaml:rw
environment:
LS_ACCESS_TOKEN: "${LS_ACCESS_TOKEN}"