# Tideways-Daemon

## Overview

The source code and default configuration of the Building Block is available in our [code.syseleven.de](<https://code.syseleven.de/syseleven/building-blocks/helmfiles/tideways-daemon>). Infos on release notes and new features [release notes tideways-daemon](<https://code.syseleven.de/syseleven/building-blocks/helmfiles/tideways-daemon/-/blob/main/RELEASE-NOTES.md>) Tideways-Daemon is an application monitor for your PHP based web applications

### Prerequisites On Tideway-Daemon

Proceed with the following prerequisite description to use the Building Block out of the box.

#### Recommended Setup

A recommended resource overview is listed in the table below.

| CPU/vCPU | Memory |
| --- | --- |
| 0.1 | 128MiB |

No further activities need to be carried out in advance.

### Adding The Building Block

Add the directory `syseleven-tideways-daemon` to your control repository. Add a `.gitlab-ci.yml` to the directory with the following content:

```yaml
include:
  - project: syseleven/building-blocks/helmfiles/tideways-daemon
    file: JobDevelopment.yaml
    ref: {{ site.building_blocks.tideways_daemon.version|e }}
  - project: syseleven/building-blocks/helmfiles/tideways-daemon
    file: JobStaging.yaml
    ref: {{ site.building_blocks.tideways_daemon.version|e }}
  - project: syseleven/building-blocks/helmfiles/tideways-daemon
    file: JobProduction.yaml
    ref: {{ site.building_blocks.tideways_daemon.version|e }}
```

> [!NOTE]
>
> Remove environments you are not using by removing their include.

### Required Configuration

No configuration is required for the deployment of the daemon. You will need to configure your PHP application appropriately :

In your PHP application container, set the following in `40-tideways.ini`:

```yaml
tideways.connection=tcp://tideways-daemon.syseleven-tideways-daemon:9135
tideways.api_key=<YOUR_TIDEWAYS_API_KEY>
```

### Monitoring

### Additional Alertrules

- None

### Additional Grafana Dashboards

- None

### Scale Setup

You can scale this with the usual Kubernetes scaling techniques like affinity rules and so on.

### Release-Notes

Please find more infos on release notes and new features [release notes Tideways-daemon](<https://code.syseleven.de/syseleven/building-blocks/helmfiles/tideways-daemon/-/blob/main/RELEASE-NOTES.md>)
