Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE - Test the pipelines #217

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/integration_test_juju3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ jobs:
test-tox-env: "integration-juju3"
setup-devstack-swift: true
trivy-image-config: ./trivy.yaml
tmate-debug: true
5 changes: 1 addition & 4 deletions src-docs/charm.py.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@ Charm for WordPress on kubernetes.
**Global Variables**
---------------
- **APACHE_LOG_PATHS**
- **WORDPRESS_SCRAPE_JOBS**


---

## <kbd>class</kbd> `WordpressCharm`
Charm for WordPress on kubernetes.

Attrs: state: Persistent charm state used to store metadata after various events.

<a href="../src/charm.py#L137"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/charm.py#L132"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `__init__`

Expand Down
52 changes: 51 additions & 1 deletion src-docs/cos.py.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**


---

## <kbd>class</kbd> `ApacheLogProxyConsumer`
Extends LogProxyConsumer to add a metrics pipeline to promtail.


---

#### <kbd>property</kbd> 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: [
- <b>`{"url"`</b>: "http://loki1:3100/loki/api/v1/push"},
- <b>`{"url"`</b>: "http://loki2:3100/loki/api/v1/push"}, ]

---

#### <kbd>property</kbd> model

Shortcut for more simple access the model.

---

#### <kbd>property</kbd> rsyslog_config

Generates a config line for use with rsyslog.



**Returns:**
The rsyslog config line as a string

---

#### <kbd>property</kbd> syslog_port

Gets the port on which promtail is listening for syslog.



**Returns:**
A str representing the port




---
Expand Down
2 changes: 1 addition & 1 deletion src-docs/types_.py.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Attrs: return_code: exit code from executed command. stdout: standard output f
## <kbd>class</kbd> `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.



Expand Down
Loading