{
  "name": "php_fpm",
  "title": "PHP-FPM",
  "version": "1.5.1",
  "release": "ga",
  "description": "This Elastic integration collects metrics from PHP-FPM.",
  "type": "integration",
  "download": "/epr/php_fpm/php_fpm-1.5.1.zip",
  "path": "/package/php_fpm/1.5.1",
  "icons": [
    {
      "src": "/img/php_fpm-logo.svg",
      "path": "/package/php_fpm/1.5.1/img/php_fpm-logo.svg",
      "title": "PHP-FPM logo",
      "size": "64x64",
      "type": "image/svg+xml"
    }
  ],
  "conditions": {
    "kibana": {
      "version": "^8.13.0 || ^9.0.0"
    },
    "elastic": {
      "subscription": "basic"
    }
  },
  "owner": {
    "type": "elastic",
    "github": "elastic/obs-infraobs-integrations"
  },
  "categories": [
    "observability",
    "process_manager"
  ],
  "signature_path": "/epr/php_fpm/php_fpm-1.5.1.zip.sig",
  "format_version": "3.0.0",
  "readme": "/package/php_fpm/1.5.1/docs/README.md",
  "license": "basic",
  "screenshots": [
    {
      "src": "/img/php_fpm-pool-dashboard.png",
      "path": "/package/php_fpm/1.5.1/img/php_fpm-pool-dashboard.png",
      "title": "PHP-FPM Pool dashboard",
      "size": "600x600",
      "type": "image/png"
    },
    {
      "src": "/img/php_fpm-process-dashboard.png",
      "path": "/package/php_fpm/1.5.1/img/php_fpm-process-dashboard.png",
      "title": "PHP-FPM Process dashboard",
      "size": "600x600",
      "type": "image/png"
    }
  ],
  "assets": [
    "/package/php_fpm/1.5.1/LICENSE.txt",
    "/package/php_fpm/1.5.1/changelog.yml",
    "/package/php_fpm/1.5.1/manifest.yml",
    "/package/php_fpm/1.5.1/docs/README.md",
    "/package/php_fpm/1.5.1/img/php_fpm-logo.svg",
    "/package/php_fpm/1.5.1/img/php_fpm-pool-dashboard.png",
    "/package/php_fpm/1.5.1/img/php_fpm-process-dashboard.png",
    "/package/php_fpm/1.5.1/data_stream/pool/manifest.yml",
    "/package/php_fpm/1.5.1/data_stream/pool/sample_event.json",
    "/package/php_fpm/1.5.1/data_stream/process/manifest.yml",
    "/package/php_fpm/1.5.1/data_stream/process/sample_event.json",
    "/package/php_fpm/1.5.1/kibana/dashboard/php_fpm-30d6d490-60c6-11ed-a227-676557292b43.json",
    "/package/php_fpm/1.5.1/kibana/dashboard/php_fpm-6853a270-5a92-11ed-8d56-a14fd29a60cb.json",
    "/package/php_fpm/1.5.1/data_stream/pool/fields/base-fields.yml",
    "/package/php_fpm/1.5.1/data_stream/pool/fields/fields.yml",
    "/package/php_fpm/1.5.1/data_stream/process/fields/base-fields.yml",
    "/package/php_fpm/1.5.1/data_stream/process/fields/fields.yml",
    "/package/php_fpm/1.5.1/data_stream/pool/agent/stream/httpjson.yml.hbs",
    "/package/php_fpm/1.5.1/data_stream/pool/elasticsearch/ingest_pipeline/default.yml",
    "/package/php_fpm/1.5.1/data_stream/process/agent/stream/httpjson.yml.hbs",
    "/package/php_fpm/1.5.1/data_stream/process/elasticsearch/ingest_pipeline/default.yml"
  ],
  "policy_templates": [
    {
      "name": "PHP-FPM",
      "title": "PHP-FPM metrics",
      "description": "Collect PHP-FPM metrics.",
      "inputs": [
        {
          "type": "httpjson",
          "vars": [
            {
              "name": "hostname",
              "type": "text",
              "title": "Hostname",
              "description": "Host address to connect and retrieve data from PHP-FPM response. Format: `http[s]://hostname[:port]`.",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "http://localhost"
            },
            {
              "name": "enable_request_tracer",
              "type": "bool",
              "title": "Enable request tracing",
              "description": "The request tracer logs requests and responses to the agent's local filesystem for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html#_request_tracer_filename) for details.",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "status_path",
              "type": "text",
              "title": "Status Path",
              "description": "Status path to connect and retrieve data from PHP-FPM response. Format: `/path`.",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "/status"
            },
            {
              "name": "ssl",
              "type": "yaml",
              "title": "SSL Configuration",
              "description": "SSL configuration options. See [documentation](https://www.elastic.co/guide/en/fleet/current/elastic-agent-ssl-configuration.html) for details.",
              "multi": false,
              "required": false,
              "show_user": false,
              "default": "#certificate_authorities:\n#  - |\n#    -----BEGIN CERTIFICATE-----\n#    MIIDCjCCAfKgAwIBAgITJ706Mu2wJlKckpIvkWxEHvEyijANBgkqhkiG9w0BAQsF\n#    ADAUMRIwEAYDVQQDDAlsb2NhbGhvc3QwIBcNMTkwNzIyMTkyOTA0WhgPMjExOTA2\n#    MjgxOTI5MDRaMBQxEjAQBgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEB\n#    BQADggEPADCCAQoCggEBANce58Y/JykI58iyOXpxGfw0/gMvF0hUQAcUrSMxEO6n\n#    fZRA49b4OV4SwWmA3395uL2eB2NB8y8qdQ9muXUdPBWE4l9rMZ6gmfu90N5B5uEl\n#    94NcfBfYOKi1fJQ9i7WKhTjlRkMCgBkWPkUokvBZFRt8RtF7zI77BSEorHGQCk9t\n#    /D7BS0GJyfVEhftbWcFEAG3VRcoMhF7kUzYwp+qESoriFRYLeDWv68ZOvG7eoWnP\n#    PsvZStEVEimjvK5NSESEQa9xWyJOmlOKXhkdymtcUd/nXnx6UTCFgnkgzSdTWV41\n#    CI6B6aJ9svCTI2QuoIq2HxX/ix7OvW1huVmcyHVxyUECAwEAAaNTMFEwHQYDVR0O\n#    BBYEFPwN1OceFGm9v6ux8G+DZ3TUDYxqMB8GA1UdIwQYMBaAFPwN1OceFGm9v6ux\n#    8G+DZ3TUDYxqMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAG5D\n#    874A4YI7YUwOVsVAdbWtgp1d0zKcPRR+r2OdSbTAV5/gcS3jgBJ3i1BN34JuDVFw\n#    3DeJSYT3nxy2Y56lLnxDeF8CUTUtVQx3CuGkRg1ouGAHpO/6OqOhwLLorEmxi7tA\n#    H2O8mtT0poX5AnOAhzVy7QW0D/k4WaoLyckM5hUa6RtvgvLxOwA0U+VGurCDoctu\n#    8F4QOgTAWyh8EZIwaKCliFRSynDpv3JTUwtfZkxo6K6nce1RhCWFAsMvDZL8Dgc0\n#    yvgJ38BRsFOtkRuAGSf6ZUwTO8JJRRIFnpUzXflAnGivK9M13D5GEQMmIl6U9Pvk\n#    sxSmbIUfc2SGJGCJD4I=\n#    -----END CERTIFICATE-----\n"
            }
          ],
          "title": "Collect PHP-FPM metrics",
          "description": "Collect pool and process metrics from PHP-FPM product."
        }
      ],
      "multiple": true
    }
  ],
  "data_streams": [
    {
      "type": "logs",
      "dataset": "php_fpm.pool",
      "title": "Pool metrics",
      "release": "ga",
      "ingest_pipeline": "default",
      "streams": [
        {
          "input": "httpjson",
          "vars": [
            {
              "name": "period",
              "type": "text",
              "title": "Period",
              "description": "Period of fetching metrics, i.e. 1s/1m/1h.",
              "multi": false,
              "required": true,
              "show_user": false,
              "default": "10s"
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": true,
              "show_user": false,
              "default": [
                "php_fpm-pool",
                "forwarded"
              ]
            },
            {
              "name": "preserve_original_event",
              "type": "bool",
              "title": "Preserve original event",
              "description": "Preserves a raw copy of the original event, added to the field `event.original`.",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": false
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the logs are parsed. See [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "httpjson.yml.hbs",
          "title": "PHP-FPM Pool metrics",
          "description": "Collect PHP-FPM Pool metrics.",
          "enabled": true,
          "ingestion_method": "API"
        }
      ],
      "package": "php_fpm",
      "path": "pool"
    },
    {
      "type": "logs",
      "dataset": "php_fpm.process",
      "title": "Process metrics",
      "release": "ga",
      "ingest_pipeline": "default",
      "streams": [
        {
          "input": "httpjson",
          "vars": [
            {
              "name": "period",
              "type": "text",
              "title": "Period",
              "description": "Period of fetching metrics, i.e. 1s/1m/1h.",
              "multi": false,
              "required": true,
              "show_user": false,
              "default": "10s"
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": true,
              "show_user": false,
              "default": [
                "php_fpm-process",
                "forwarded"
              ]
            },
            {
              "name": "preserve_original_event",
              "type": "bool",
              "title": "Preserve original event",
              "description": "Preserves a raw copy of the original event, added to the field `event.original`.",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": false
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the logs are parsed. See [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "httpjson.yml.hbs",
          "title": "PHP-FPM Process metrics",
          "description": "Collect PHP-FPM Process metrics.",
          "enabled": true,
          "ingestion_method": "API"
        }
      ],
      "package": "php_fpm",
      "path": "process"
    }
  ]
}
