Giter Club home page Giter Club logo

hassos-addons's Introduction

Hello, World! ๐Ÿ‘‹

My name is Logan Marchione and I'm a Sr. Software Engineer on the Platform team at Rapid7. This is my space on the web to learn about the internet, crypto{graphy,currency}, Linux, hosting, code, etc...

I'm passionate about open-source software, dates being in the ISO 8601 format (relevant xkcd), and Oxford commas.

If you're interested in hiring me, check out my resume. If you enjoy what I create, you can subscribe to my blog's feed.

I hope you find something of value here! Enjoy!

Languages and tools

Git GitHub GitLab sourcehut

Bash Python Ansible

Linux Debian Arch Proxmox

DigitalOcean AWS Gitea Drone Docker Kubernetes

hassos-addons's People

Contributors

falzm avatar loganmarchione avatar quedale avatar renovate[bot] avatar wozz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hassos-addons's Issues

Renovate Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
prometheus_node_exporter/Dockerfile
github-actions
.github/workflows/main.yml
  • actions/checkout v4
  • actions/checkout v4
  • frenck/action-addon-linter v2
.github/workflows/prometheus_node_exporter.yml
  • actions/checkout v4
  • docker/login-action v3.0.0
regex
prometheus_node_exporter/build.json
  • ghcr.io/hassio-addons/base/amd64 15.0.4
  • ghcr.io/hassio-addons/base/aarch64 15.0.4
  • ghcr.io/hassio-addons/base/armv7 15.0.4

  • Check this box to trigger a request for Renovate to run again on this repository

node_exporter "Root FS Used" Gauge and "Total RootFS" Stat, no data

Troubleshooting why the "Root FS Used" Gauge and "Total RootFS" Stat shows "N/A". I copied the query over to the Grafana "Explore" pane and was experimenting with the options there. I found that the metrics from the home assistant node_exporter integration does not have a "/" mountpoint. This is causing that gauge to read "N/A" and the query to return no data.

The relevant portion of the node_exporter gauge query is:
node_filesystem_avail_bytes{instance="$node",job="$job",mountpoint="/",fstype!="rootfs"}

If I change that query to be:
node_filesystem_avail_bytes{instance="$node",job="$job",mountpoint="/tmp",fstype!="rootfs"}

OR
node_filesystem_avail_bytes{instance="$node",job="$job",fstype!="rootfs"}

I get data back. Here is the job configuration in prometheus.yml

  - job_name: 'homeassistant'
    static_configs:
      - targets: ['homeassistant.home:9100']

I don't know if this integration isn't exporting the "/" mountpoint, or the integration doesn't have access to that mountpoint, or it's something else. I've attached the logs from the add on below along with a screen shot of the Grafana Explore query builder.

Screenshot 2023-09-12 095259

ha_node_exporter-startup.log.txt

Issues?

Hi Logan, is this still working?
I've added your repo to an up to date version of HA but for some reason I cannot find your addon when I search for it?
Mike

Node Name

Issue with having multiple home assistant servers in multiple locations, the node name reports 0d869efa-prometheus-node-exporter for all node names.

Add more configuration options

Would you accept a PR adding new configuration options for CLI args?

The easy option would be to add a text field that directly contains CLI args:
CLI Args: --collector.textfile.directory="/root/config/prometheus_node_exporter/textfile_collector"
This is however not very user friendly. i could also add a new text field:
Textfile Directory: /root/config/prometheus_node_exporter/textfile_collector

But then we would have to add lots and lots of options for every possible argument.

can only run as pid 1

Hi,

i try to run the addon on my ODroid-N2 running

Home Assistant Core 2022.5.4
Home Assistant Supervisor 2022.05.1
Home Assistant OS 7.6
Kernel version 5.10.108
Agent version 1.2.1

I did disable protection mode, however, starting the Addon i just end up with

s6-overlay-suexec: fatal: can only run as pid 1.

as sole entry in the log.

Anything i can do about this?

Thanks
Michael

Deployment improvements: Tag releases and push images to GHCR

Problems

  1. Releases are not tagged. Everything is built from master when users click "install".
  2. When users click "install", their HA instance needs to build the docker image in real-time. I would be better for me to pre-build images and publish them to GHCR.

Solutions

  1. Start tagging releases. This doesn't do anything for users by itself, but will allow me to "roll back" to a specific "version" if I break something.
  2. Per this comment and from this doc, I should publish images to GHCR. This would allow me to control what version of the add-on users receive and roll back if something breaks.

If you are an addon developer publishing addons that others use (and not just for personal use) I would strongly recommend publishing images for your addons to a container registry like ghcr.io or docker hub and then using the image option. This way existing versions of your addons will always keep working since the image is already built and available and not built on demand.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.