diff --git a/.github/workflows/integration_test_juju3.yaml b/.github/workflows/integration_test_juju3.yaml index 3bcfaeb7..3d417aa6 100644 --- a/.github/workflows/integration_test_juju3.yaml +++ b/.github/workflows/integration_test_juju3.yaml @@ -26,3 +26,4 @@ jobs: test-tox-env: "integration-juju3" setup-devstack-swift: true trivy-image-config: ./trivy.yaml + tmate-debug: true diff --git a/src-docs/charm.py.md b/src-docs/charm.py.md index 35827b2c..a819d020 100644 --- a/src-docs/charm.py.md +++ b/src-docs/charm.py.md @@ -8,7 +8,6 @@ Charm for WordPress on kubernetes. **Global Variables** --------------- - **APACHE_LOG_PATHS** -- **WORDPRESS_SCRAPE_JOBS** --- @@ -16,9 +15,7 @@ Charm for WordPress on kubernetes. ## class `WordpressCharm` Charm for WordPress on kubernetes. -Attrs: state: Persistent charm state used to store metadata after various events. - - + ### function `__init__` diff --git a/src-docs/cos.py.md b/src-docs/cos.py.md index fe7480aa..416cfe86 100644 --- a/src-docs/cos.py.md +++ b/src-docs/cos.py.md @@ -8,8 +8,58 @@ COS integration for WordPress charm. **Global Variables** --------------- - **APACHE_PROMETHEUS_SCRAPE_PORT** -- **WORDPRESS_SCRAPE_JOBS** - **APACHE_LOG_PATHS** +- **REQUEST_DURATION_MICROSECONDS_BUCKETS** + + +--- + +## class `ApacheLogProxyConsumer` +Extends LogProxyConsumer to add a metrics pipeline to promtail. + + +--- + +#### property loki_endpoints + +Fetch Loki Push API endpoints sent from LokiPushApiProvider through relation data. + + + +**Returns:** + A list of dictionaries with Loki Push API endpoints, for instance: [ + - `{"url"`: "http://loki1:3100/loki/api/v1/push"}, + - `{"url"`: "http://loki2:3100/loki/api/v1/push"}, ] + +--- + +#### property model + +Shortcut for more simple access the model. + +--- + +#### property rsyslog_config + +Generates a config line for use with rsyslog. + + + +**Returns:** + The rsyslog config line as a string + +--- + +#### property syslog_port + +Gets the port on which promtail is listening for syslog. + + + +**Returns:** + A str representing the port + + --- diff --git a/src-docs/types_.py.md b/src-docs/types_.py.md index 81c45a3b..25d0b495 100644 --- a/src-docs/types_.py.md +++ b/src-docs/types_.py.md @@ -23,7 +23,7 @@ Attrs: return_code: exit code from executed command. stdout: standard output f ## class `DatabaseConfig` Configuration values required to connect to database. -Attrs: hostname: The hostname under which the database is being served. database: The name of the database to connect to. username: The username to use to authenticate to the database. password: The password to use to authenticat to the database. +Attrs: hostname: The hostname under which the database is being served. port: The port which the database is listening on. database: The name of the database to connect to. username: The username to use to authenticate to the database. password: The password to use to authenticat to the database.