Sorry about that. Here is the actual config for the pure_flashblade and pure_flasharray for prometheus.
- job_name: 'pure_flashblade'
#scrape_timeout: 1m
#scrape_interval: 15s
metrics_path: /metrics/flashblade/array
relabel_configs:
# meta label of target address --> get parameter "pure_host"
- source_labels: [__address__]
target_label: __param_endpoint
# label of target api token --> get parameter "pure_apitoken"
- source_labels: [__pure_apitoken]
target_label: __param_apitoken
# display the pure host as the instance label
- source_labels: [__address__]
target_label: instance
# point the exporter to the scraping endpoint of the exporter
- target_label: __address__
replacement:
127.0.0.1:9491 # address of the exporter, in debug mode
# THIS NEEDS TO BE CHANGED TO YOUR ENVIRONMENT
# Actual pure hosts (without a prometheus endpoint) as targets
# file_sd_configs:
# - files: [ '/etc/prometheus/pure_flashblade_targets.json' ]
static_configs:
- targets: [ "1.2.3.4" ]
labels:
__pure_apitoken: Some-api-token
I would like to comment out the static_configs section and move to a file_sd_configs setup.
I have mirrored it after some of the other exporters I did this too, but falling short on the API token.