Skip to content

Commit

Permalink
docs(php): add php operator considerations (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
bduranleau-nr authored Jan 14, 2025
1 parent 744428b commit 6d80198
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
32 changes: 32 additions & 0 deletions charts/k8s-agents-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ For each `Instrumentation` custom resource created, specifying which APM agent y
* [Node](https://hub.docker.com/repository/docker/newrelic/newrelic-node-init/general)
* [Python](https://hub.docker.com/repository/docker/newrelic/newrelic-python-init/general)
* [Ruby](https://hub.docker.com/repository/docker/newrelic/newrelic-ruby-init/general)
* [PHP](https://hub.docker.com/repository/docker/newrelic/newrelic-php-init/general)

For .NET

Expand Down Expand Up @@ -116,6 +117,36 @@ spec:
# env: ...
```

For PHP (glibc)

```yaml
apiVersion: newrelic.com/v1alpha2
kind: Instrumentation
metadata:
name: newrelic-instrumentation-php
namespace: newrelic
spec:
agent:
language: php-${phpversion} # [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, etc.]
image: newrelic/newrelic-php-init:latest # Please ensure you're using a trusted New Relic image
# env: ...
```

For PHP (musl)

```yaml
apiVersion: newrelic.com/v1alpha2
kind: Instrumentation
metadata:
name: newrelic-instrumentation-php
namespace: newrelic
spec:
agent:
language: php-${phpversion} # [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, etc.]
image: newrelic/newrelic-php-init:musl # Please ensure you're using a trusted New Relic image
# env: ...
```

For environment specific configurations

```yaml
Expand Down Expand Up @@ -193,6 +224,7 @@ In the example above, we show how you can configure the agent settings globally
* [Python](https://docs.newrelic.com/docs/apm/agents/python-agent/configuration/python-agent-configuration/)
* [.NET](https://docs.newrelic.com/docs/apm/agents/net-agent/configuration/net-agent-configuration/)
* [Ruby](https://docs.newrelic.com/docs/apm/agents/ruby-agent/configuration/ruby-agent-configuration/)
* [PHP](https://docs.newrelic.com/docs/apm/agents/php-agent/configuration/php-agent-configuration/)
### cert-manager
Expand Down
32 changes: 32 additions & 0 deletions charts/k8s-agents-operator/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ For each `Instrumentation` custom resource created, specifying which APM agent y
* [Node](https://hub.docker.com/repository/docker/newrelic/newrelic-node-init/general)
* [Python](https://hub.docker.com/repository/docker/newrelic/newrelic-python-init/general)
* [Ruby](https://hub.docker.com/repository/docker/newrelic/newrelic-ruby-init/general)
* [PHP](https://hub.docker.com/repository/docker/newrelic/newrelic-php-init/general)

For .NET

Expand Down Expand Up @@ -118,6 +119,36 @@ spec:
# env: ...
```

For PHP (glibc)

```yaml
apiVersion: newrelic.com/v1alpha2
kind: Instrumentation
metadata:
name: newrelic-instrumentation-php
namespace: newrelic
spec:
agent:
language: php-${phpversion} # [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, etc.]
image: newrelic/newrelic-php-init:latest # Please ensure you're using a trusted New Relic image
# env: ...
```

For PHP (musl)

```yaml
apiVersion: newrelic.com/v1alpha2
kind: Instrumentation
metadata:
name: newrelic-instrumentation-php
namespace: newrelic
spec:
agent:
language: php-${phpversion} # [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, etc.]
image: newrelic/newrelic-php-init:musl # Please ensure you're using a trusted New Relic image
# env: ...
```

For environment specific configurations

```yaml
Expand Down Expand Up @@ -195,6 +226,7 @@ In the example above, we show how you can configure the agent settings globally
* [Python](https://docs.newrelic.com/docs/apm/agents/python-agent/configuration/python-agent-configuration/)
* [.NET](https://docs.newrelic.com/docs/apm/agents/net-agent/configuration/net-agent-configuration/)
* [Ruby](https://docs.newrelic.com/docs/apm/agents/ruby-agent/configuration/ruby-agent-configuration/)
* [PHP](https://docs.newrelic.com/docs/apm/agents/php-agent/configuration/php-agent-configuration/)

### cert-manager

Expand Down

0 comments on commit 6d80198

Please sign in to comment.