Skip to content

Commit

Permalink
Merge pull request #2 from mdegat01/readme-changes
Browse files Browse the repository at this point in the history
Fix typos and document port better
  • Loading branch information
mdegat01 authored Mar 22, 2021
2 parents a86fa74 + d90b614 commit e2eacbe
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 29 deletions.
32 changes: 16 additions & 16 deletions .README.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@
![Project Maintenance][maintenance-shield]
[![GitHub Activity][commits-shield]][commits]

[Promtail][promtail] is an agent which ships the contents of local logs to a private
[Loki][loki] instance or [Grafana Cloud][grafana-cloud]. It is usually deployed
to every machine that has applications needed to be monitored.

⛔ **Known Issue** - This add-on is waiting on upcoming supervisor functionality
to function, specifically [this PR](https://github.com/home-assistant/supervisor/pull/2722).
Once that makes its way into the supervisor release I will update the add-on
to use the new `journald` config. Until then this add-on cannot scrape logs from
the system journal as promised. If you choose to use it before that you should set
`skip_default_scrape_config` to `true` and provide a file for `additional_scrape_configs`
as it will only be able to see log files created by add-ons.

[![Open your Home Assistant instance and show the add add-on repository dialog
with a specific repository URL pre-filled.][add-repo-shield]][add-repo]
[![Open your Home Assistant instance and show the dashboard of a Supervisor add-on.][add-addon-shield]][add-addon]

{% set repository = namespace(url='https%3A//github.com/mdegat01/hassio-addons', slug='39bd2704') %}
{% if channel == "edge" %}
{% set repository.url = repository.url + '-edge' %}
Expand All @@ -38,22 +54,6 @@ If you are more interested in stable releases of these add-ons:
<https://github.com/mdegat01/hassio-addons>

{% endif %}
[![Open your Home Assistant instance and show the add add-on repository dialog
with a specific repository URL pre-filled.][add-repo-shield]][add-repo]
[![Open your Home Assistant instance and show the dashboard of a Supervisor add-on.][add-addon-shield]][add-addon]

⛔ **Known Issue** - This add-on is waiting on upcoming supervisor functionality
to function, specifically [this PR](https://github.com/home-assistant/supervisor/pull/2722).
Once that makes its way into the supervisor release I will update the add-on
to use the new `journald` config. Until then this add-on cannot scrape logs from
the system journal as promised. If you choose to use it before that you should set
`skip_default_scrape_config` to `true` and provide a file for `additional_scrape_configs`
as it will only be able to see log files created by add-ons.

[Promtail][promtail] is an agent which ships the contents of local logs to a private
[Loki][loki] instance or [Grafana Cloud][grafana-cloud]. It is usually deployed
to every machine that has applications needed to be monitored.

## About

By default this addon version of Promtail will tail logs from the systemd
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
![Project Maintenance][maintenance-shield]
[![GitHub Activity][commits-shield]][commits]

[![Open your Home Assistant instance and show the add add-on repository dialog
with a specific repository URL pre-filled.][add-repo-shield]][add-repo]
[![Open your Home Assistant instance and show the dashboard of a Supervisor add-on.][add-addon-shield]][add-addon]
[Promtail][promtail] is an agent which ships the contents of local logs to a private
[Loki][loki] instance or [Grafana Cloud][grafana-cloud]. It is usually deployed
to every machine that has applications needed to be monitored.

**Known Issue** - This add-on is waiting on upcoming supervisor functionality
to function, specifically [this PR](https://github.com/home-assistant/supervisor/pull/2722).
Expand All @@ -26,9 +26,9 @@ the system journal as promised. If you choose to use it before that you should s
`skip_default_scrape_config` to `true` and provide a file for `additional_scrape_configs`
as it will only be able to see log files created by add-ons.

[Promtail][promtail] is an agent which ships the contents of local logs to a private
[Loki][loki] instance or [Grafana Cloud][grafana-cloud]. It is usually deployed
to every machine that has applications needed to be monitored.
[![Open your Home Assistant instance and show the add add-on repository dialog
with a specific repository URL pre-filled.][add-repo-shield]][add-repo]
[![Open your Home Assistant instance and show the dashboard of a Supervisor add-on.][add-addon-shield]][add-addon]

## About

Expand Down
18 changes: 11 additions & 7 deletions promtail/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,15 @@ the options available and how to configure them. The documentation also provides

### Port: `9080/tcp`

Promtail exposes an HTTP server on this port. There's not a lot of documentation
on what this is used for. From what is there I believe it is primarily used in
larger scale Kubernetes deployments for things like healthchecks or where you
potentially have multiple Promtail instances communicating. Most likely you
should just leave this option disabled but if you know what you're doing you
can expose this HTTP server on the host.
Promtail exposes an HTTP server on this port. There's not any obvious section
in the documentation describing the API it exposesbut there are a few references.
I believe it's primary use is in larger scale Kubernetes deployments for things
like healthchecks or multiple Promtail instances communicating. There is also
a special pipeline stage called [metrics][promtail-doc-metrics] which can be used
to create metrics exposed directly from promtail via its API.

Most likely you should just leave this option disabled but if you know what you're
doing you can expose this HTTP server on the host.

### Option: `log_level`

Expand Down Expand Up @@ -268,7 +271,8 @@ SOFTWARE.
[loki-doc]: https://grafana.com/docs/loki/latest/overview/
[loki-in-grafana]: https://grafana.com/docs/loki/latest/getting-started/grafana/
[mdegat01]: https://github.com/mdegat01
[promtail-doc-scrape-configs]: https://grafana.com/docs/loki/latest/clients/promtail/configuration/#scrape_configs
[promtail-doc-examples]: https://grafana.com/docs/loki/latest/clients/promtail/configuration/#example-static-config
[promtil-doc-metrics]: https://grafana.com/docs/loki/latest/clients/promtail/configuration/#metrics
[promtail-doc-scrape-configs]: https://grafana.com/docs/loki/latest/clients/promtail/configuration/#scrape_configs
[releases]: https://github.com/mdegat01/addon-promtail/releases
[semver]: http://semver.org/spec/v2.0.0

0 comments on commit e2eacbe

Please sign in to comment.