I have followed the WIKI to setup Prometheus inside a Hass OS system installed on Proxmox. However, it is very vague as it says to add the scrape items to the scrape_config.yaml. OK, so I tried this with creating the file in the /config directory, but that provides no data. I read a post here on the forum to add my sensors in a filter inside the configuration.yaml, that also did not work. So, does anyone know how to set this up so I can just use my Grafana add-on to show data? Here is a copy of my configuration.yaml:
homeassistant:
allowlist_external_dirs:
- "/config"
- "/tmp"
# Loads default set of integrations. Do not remove.
default_config:
frontend:
# your configuration.
themes: !include_dir_merge_named themes
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.XXX.XXX ###(Nginx Proxy Manager LXC IP)###
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
group: !include groups.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include sensors.yaml
switch: !include switches.yaml
template: !include templates.yaml
influxdb:
host: 127.0.0.1
port: 8086
database: homeassistant
username: !secret influxdb_user
password: !secret influxdb_pass
max_retries: 3
default_measurement: state
prometheus:
namespace: hass
component_config_glob:
sensor.*_hum:
override_metric: humidity_percent
sensor.*_temp:
override_metric: temperature_c
sensor.temperature*:
override_metric: temperature_c
sensor.*_bat:
override_metric: battery_percent
filter:
include_domains:
- sensor
- light
- alarm_control_panel
- media_player
- water_heater
- vacuum
- fan
- switch
exclude_entity_globs:
- sensor.weather_*
bluetooth:
device_tracker:
- platform: bluetooth_le_tracker
- platform: bluetooth_tracker
browser_mod:
cloud:
recorder:
db_url: !secret mariadb_url
purge_keep_days: 30
commit_interval: 20
exclude: #Exclude entities
entity_globs:
- sensor.weather_*
- sensor.date*
- sensor.time*
- time*
entities:
- sensor.disk_free
- sensor.disk_use
- sensor.disk_use_percent
logger:
default: warning
logs:
homeassistant.components.openweathermap: info
custom_components.mail_and_packages: warning
homeassistant.components.mqtt: warning
gcal_sync.auth: warning
camera:
- platform: local_file
file_path: /config/custom_components/mail_and_packages/mail_none.gif
name: mail_usps
input_number:
illumination_bedroom_low_cutoff:
name: "Illumination bedroom low cutoff value"
min: 1
max: 100
step: 1
lightalarm_duration:
name: Alarm Duration
unit_of_measurement: min
min: 0
max: 60
step: 1
bedroom_no_motion_turn_off_delay:
name: "Time in minutes automation waits to turn off bedroom lights after no motion"
min: 1
max: 120
input_boolean:
sleepmode:
name: "Sleepmode"
input_datetime:
bedroom_lights_turn_on_before_limit:
name: "Bedroom lights no longer turn on before this time"
has_date: false
has_time: true
bedroom_lights_turn_on_after_limit:
name: "Bedroom lights no longer turn on after this time"
has_date: false
has_time: true
lightalarm_time:
name: Alarm Time
has_date: false
has_time: true
input_select:
lightalarm_mode:
name: Alarm Mode
icon: mdi:alarm-plus
options:
- "Off"
- "Workdays When Present"
- "Once Only"
- "Every Day"
- "When Present"
notify:
- platform: html5
vapid_pub_key: BBtU3-gIi6AgJfIehYgC7pYw4UDgmmUBtiml_EKVciCtnggwBBU3gh3k7_mqhtDPrfI2KoW6Ty8gsCiEFGRKz1E
vapid_prv_key: PipRotisljvP7EQa2tcuvcvNJbjTbfXLYMONFWz4p_w
vapid_email: XXXXXXXXX @gmail.com
binary_sensor:
- platform: ping
host: 8.8.8.8
name: "Google DNS Ping"
count: 5
scan_interval: 60
- platform: ping
host: 192.168.0.2
name: "Router Ping"
count: 5
scan_interval: 60