Skip to content

Commit

Permalink
Add protobuf definitions for php-fpm metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
achawla2012 committed Aug 24, 2023
1 parent adf04f2 commit d701385
Show file tree
Hide file tree
Showing 18 changed files with 8,687 additions and 59 deletions.
107 changes: 107 additions & 0 deletions docs/proto/proto.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@
- [NginxHealth.NginxStatus](#f5-nginx-agent-sdk-NginxHealth-NginxStatus)
- [NginxSslMetaData.NginxSslType](#f5-nginx-agent-sdk-NginxSslMetaData-NginxSslType)

- [phpfpm.proto](#phpfpm-proto)
- [PhpFpmDetails](#f5-nginx-agent-sdk-PhpFpmDetails)
- [PhpFpmHealth](#f5-nginx-agent-sdk-PhpFpmHealth)
- [PhpFpmPool](#f5-nginx-agent-sdk-PhpFpmPool)

- [PhpFpmHealth.PhpFpmHealthStatus](#f5-nginx-agent-sdk-PhpFpmHealth-PhpFpmHealthStatus)

- [Scalar Value Types](#scalar-value-types)


Expand Down Expand Up @@ -939,6 +946,7 @@ Represents dataplane software details which contains details for additional soft
| ----- | ---- | ----- | ----------- |
| app_protect_waf_details | [AppProtectWAFDetails](#f5-nginx-agent-sdk-AppProtectWAFDetails) | | App Protect WAF software details |
| nginx_details | [NginxDetails](#f5-nginx-agent-sdk-NginxDetails) | | NGINX software details |
| php_fpm_details | [PhpFpmDetails](#f5-nginx-agent-sdk-PhpFpmDetails) | | PhpFpmDetails software details |



Expand Down Expand Up @@ -1533,6 +1541,105 @@ SSL type enum



<a name="phpfpm-proto"></a>
<p align="right"><a href="#top">Top</a></p>

## phpfpm.proto



<a name="f5-nginx-agent-sdk-PhpFpmDetails"></a>

### PhpFpmDetails
PhpFpmDetails registers a phpfpm master process &#43; child pools


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| type | [string](#string) | | |
| uuid | [string](#string) | | |
| local_id | [string](#string) | | |
| name | [string](#string) | | |
| cmd | [string](#string) | | |
| conf_path | [string](#string) | | |
| bin_path | [string](#string) | | |
| version | [string](#string) | | |
| version_line | [string](#string) | | |
| pid | [int32](#int32) | | |
| agent | [string](#string) | | |
| children | [PhpFpmPool](#f5-nginx-agent-sdk-PhpFpmPool) | repeated | |
| workers | [int32](#int32) | | |
| health | [PhpFpmHealth](#f5-nginx-agent-sdk-PhpFpmHealth) | | |






<a name="f5-nginx-agent-sdk-PhpFpmHealth"></a>

### PhpFpmHealth
PhpFpmHealth reports the health details of PHPFPM process


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| system_id | [string](#string) | | |
| phpfpm_health_status | [PhpFpmHealth.PhpFpmHealthStatus](#f5-nginx-agent-sdk-PhpFpmHealth-PhpFpmHealthStatus) | | |
| degraded_reason | [string](#string) | | |






<a name="f5-nginx-agent-sdk-PhpFpmPool"></a>

### PhpFpmPool
PhpFpmPool registers one of the worker pools of a Php-Fpm master process


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| type | [string](#string) | | |
| uuid | [string](#string) | | |
| local_id | [string](#string) | | |
| name | [string](#string) | | |
| display_name | [string](#string) | | |
| parent_local_id | [string](#string) | | |
| listen | [string](#string) | | |
| flisten | [string](#string) | | |
| status_path | [string](#string) | | |
| can_have_children | [bool](#bool) | | |
| agent | [string](#string) | | |








<a name="f5-nginx-agent-sdk-PhpFpmHealth-PhpFpmHealthStatus"></a>

### PhpFpmHealth.PhpFpmHealthStatus


| Name | Number | Description |
| ---- | ------ | ----------- |
| UNKNOWN | 0 | |
| ACTIVE | 1 | |
| DEGRADED | 2 | |










## Scalar Value Types

| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |
Expand Down
112 changes: 98 additions & 14 deletions sdk/proto/dp_software_details.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions sdk/proto/dp_software_details.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package f5.nginx.agent.sdk;
import "gogo.proto";
import "nap.proto";
import "nginx.proto";
import "phpfpm.proto";

option go_package = "github.com/nginx/agent/sdk/v2/proto;proto";

Expand All @@ -14,5 +15,7 @@ message DataplaneSoftwareDetails {
AppProtectWAFDetails app_protect_waf_details = 1 [(gogoproto.jsontag) = "app_protect_waf_details"];
// NGINX software details
NginxDetails nginx_details = 2 [(gogoproto.jsontag) = "nginx_details"];
// PhpFpmDetails software details
PhpFpmDetails php_fpm_details = 3 [(gogoproto.jsontag) = "php_fpm_details"];
}
}
Loading

0 comments on commit d701385

Please sign in to comment.