Skip to content

[O11y][PHP-FPM] Add service.address field and update dashboard #7523

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

Conversation

harnish-crest-data
Copy link
Contributor

  • Enhancement

What does this PR do?

  • Support service.address field.
  • Add control panel using service.address field and update dashboard with logical grouping of visualizations

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Related issues

@harnish-crest-data harnish-crest-data added enhancement New feature or request Integration:php_fpm PHP-FPM labels Aug 24, 2023
@harnish-crest-data harnish-crest-data self-assigned this Aug 24, 2023
@harnish-crest-data harnish-crest-data marked this pull request as ready for review August 24, 2023 07:33
@harnish-crest-data harnish-crest-data requested a review from a team as a code owner August 24, 2023 07:33
@elasticmachine
Copy link

elasticmachine commented Aug 24, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-09-05T06:35:28.928+0000

  • Duration: 16 min 51 sec

Test stats 🧪

Test Results
Failed 0
Passed 12
Skipped 0
Total 12

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link

elasticmachine commented Aug 24, 2023

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (2/2) 💚
Files 100.0% (2/2) 💚 3.358
Classes 100.0% (2/2) 💚 3.358
Methods 100.0% (16/16) 💚 7.676
Lines 95.763% (226/236) 👍 7.492
Conditionals 100.0% (0/0) 💚

- add_fields:
target: service
fields:
address: {{hostname}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this processor explicitly required here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ishleenk17 The data stream uses the httpjson filebeat input in the backend. However, the httpjson filebeat input doesn't generate the service.address field automatically that actually useful for users to filter out the details of the host. Hence we need to explicitly add this processor!

…into php-fpm-support-service-address-field

Conflicts:
	packages/php_fpm/changelog.yml
	packages/php_fpm/data_stream/pool/fields/ecs.yml
	packages/php_fpm/data_stream/process/fields/ecs.yml
	packages/php_fpm/manifest.yml
Copy link
Member

@ishleenk17 ishleenk17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@harnish-crest-data harnish-crest-data merged commit 15f1b60 into elastic:main Sep 6, 2023
@elasticmachine
Copy link

Package php_fpm - 0.6.0 containing this change is available at https://epr.elastic.co/search?package=php_fpm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Integration:php_fpm PHP-FPM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[O11y][PHP-FPM] Add service.address field and control panel in the dashboards
3 participants