Last active
March 26, 2024 17:45
-
-
Save bboerst/fed1a66c15387cd06187cb525c2cca24 to your computer and use it in GitHub Desktop.
bitaxe prometheus-json-exporter configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# prometheus-json-exporter: https://github.com/prometheus-community/json_exporter | |
-------------- | |
# Use this Prometheus scrape config: | |
- job_name: bitaxe | |
metrics_path: /probe | |
static_configs: | |
- targets: | |
# List each of your bitaxes here | |
- http://10.1.30.130/api/system/info | |
relabel_configs: | |
- source_labels: [__address__] | |
target_label: __param_target | |
- source_labels: [__address__] | |
# Relabels the instance label to only include the IP | |
regex: 'http://([0-9]+(?:\.[0-9]+){3})/.*' | |
target_label: instance | |
- target_label: __address__ | |
# prometheus-json-exporter endpoint | |
replacement: prometheus-json-exporter.kube-prometheus-stack.svc.cluster.local:7979 | |
-------------- | |
# Use this prometheus-json-exporter config: | |
modules: | |
default: | |
metrics: | |
- name: axe_power | |
path: "{.power}" | |
type: value | |
help: Power in W | |
- name: axe_voltage | |
path: "{.voltage}" | |
type: value | |
help: Voltage in V | |
- name: axe_asic_core_voltage | |
path: "{.coreVoltageActual}" | |
type: value | |
help: Voltage in V | |
- name: axe_current | |
path: "{.current}" | |
type: value | |
help: Current in mA | |
- name: axe_fan_speed | |
path: "{.fanSpeed}" | |
type: value | |
help: Fan speed in RPM | |
- name: axe_temp | |
path: "{.temp}" | |
type: value | |
help: Temperature in Celsius | |
- name: axe_hash_rate | |
path: "{.hashRate}" | |
type: value | |
help: Hash rate in GH/s | |
- name: axe_frequency | |
path: "{.frequency}" | |
type: value | |
help: ASIC frequency | |
- name: axe_shares_accepted | |
path: "{.sharesAccepted}" | |
type: value | |
help: Shares accepted | |
- name: axe_shares_rejected | |
path: "{.sharesRejected}" | |
type: value | |
help: Shares rejected |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment