-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[APM Agent] Replace support for apm.dev.js
with support for kibana.dev.yml
in apm-config-loader
#79490
Comments
Pinging @elastic/kibana-platform (Team:Platform) |
Is this file still used though? I don't see anything adding it to the list of config files in dev mode in |
Possibly a related issue: #84840 |
The current support is apm.dev.js, rather than kibana.dev.js, right?
|
At #84840 (comment) @tylersmalley mentioned that he and @watson had discussed keeping "apm.dev.js" support. I don't have a strong opinion either way (I'm not a Kibana dev, I'm new to the Node.js APM team), but I'm slightly biased against having |
I can just give my 5 cents on why I opted to support JS config files to begin with: Sometimes it's nice to be able to load config programatically, e.g. say you want to set the agent to active: process.env.NODE_ENV === 'production' Or maybe you want to set some global tags based on the content of a file, e.g: globalLabels: {
uuid: fs.readFileSync('./data/uuid', { encoding: 'utf8' })
} However these are of course not 100% necessary and there are other workaround to achieve the same goal without having Kibana look for this file on boot. |
kibana.dev.js
with support for kibana.dev.yml
in apm-config-loaderapm.dev.js
with support for kibana.dev.yml
in apm-config-loader
@joshdover should the docs be updated? I tried adding |
FYI: for others looking for how to enable APM instrumentation in Kibana. It seems that the approach today is to use kibana.dev.yml like this: elastic:
apm:
active: true
serverUrl: http://localhost:8200
secretToken: very_secret
centralConfig: true
breakdownMetrics: true
transactionSampleRate: 0.1 |
…s with kibana.dev.yml (#152237) ## Summary Updating the Debugging Kibana documentation: 1. Adding Python as additional pre-requisite technology 2. Replacing apm.dev.js configuration with updated kibana.dev.yml approach Similar to recent discussion in issue #79490, I've found that the `apm.dev.js` approach is no longer working. ### Checklist Delete any items that are not applicable to this PR. - [X] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials ### Risk Matrix N/A ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
…s with kibana.dev.yml (elastic#152237) ## Summary Updating the Debugging Kibana documentation: 1. Adding Python as additional pre-requisite technology 2. Replacing apm.dev.js configuration with updated kibana.dev.yml approach Similar to recent discussion in issue elastic#79490, I've found that the `apm.dev.js` approach is no longer working. ### Checklist Delete any items that are not applicable to this PR. - [X] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials ### Risk Matrix N/A ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit 867c906)
…erences with kibana.dev.yml (#152237) (#152914) # Backport This will backport the following commits from `main` to `8.7`: - [Updating debugging docs: replacing apm.dev.js configuration references with kibana.dev.yml (#152237)](#152237) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Carly Richmond","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-03-08T14:43:34Z","message":"Updating debugging docs: replacing apm.dev.js configuration references with kibana.dev.yml (#152237)\n\n## Summary\r\n\r\nUpdating the Debugging Kibana documentation:\r\n\r\n1. Adding Python as additional pre-requisite technology\r\n2. Replacing apm.dev.js configuration with updated kibana.dev.yml\r\napproach\r\n\r\nSimilar to recent discussion in issue #79490, I've found that the\r\n`apm.dev.js` approach is no longer working.\r\n\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [X]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas added for features that require explanation or tutorials\r\n\r\n### Risk Matrix\r\n\r\nN/A\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"867c906f6c872357b5e2e6335c5145d1f58e3730","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","release_note:fix","💝community","backport-v8.0.0","v8.7.0","v8.8.0","v8.7.1"],"number":152237,"url":"https://github.com/elastic/kibana/pull/152237","mergeCommit":{"message":"Updating debugging docs: replacing apm.dev.js configuration references with kibana.dev.yml (#152237)\n\n## Summary\r\n\r\nUpdating the Debugging Kibana documentation:\r\n\r\n1. Adding Python as additional pre-requisite technology\r\n2. Replacing apm.dev.js configuration with updated kibana.dev.yml\r\napproach\r\n\r\nSimilar to recent discussion in issue #79490, I've found that the\r\n`apm.dev.js` approach is no longer working.\r\n\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [X]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas added for features that require explanation or tutorials\r\n\r\n### Risk Matrix\r\n\r\nN/A\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"867c906f6c872357b5e2e6335c5145d1f58e3730"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/152237","number":152237,"mergeCommit":{"message":"Updating debugging docs: replacing apm.dev.js configuration references with kibana.dev.yml (#152237)\n\n## Summary\r\n\r\nUpdating the Debugging Kibana documentation:\r\n\r\n1. Adding Python as additional pre-requisite technology\r\n2. Replacing apm.dev.js configuration with updated kibana.dev.yml\r\napproach\r\n\r\nSimilar to recent discussion in issue #79490, I've found that the\r\n`apm.dev.js` approach is no longer working.\r\n\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [X]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas added for features that require explanation or tutorials\r\n\r\n### Risk Matrix\r\n\r\nN/A\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"867c906f6c872357b5e2e6335c5145d1f58e3730"}}]}] BACKPORT--> Co-authored-by: Carly Richmond <[email protected]>
…s with kibana.dev.yml (elastic#152237) ## Summary Updating the Debugging Kibana documentation: 1. Adding Python as additional pre-requisite technology 2. Replacing apm.dev.js configuration with updated kibana.dev.yml approach Similar to recent discussion in issue elastic#79490, I've found that the `apm.dev.js` approach is no longer working. ### Checklist Delete any items that are not applicable to this PR. - [X] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials ### Risk Matrix N/A ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Currently, the
@kbn/apm-config-loader
package supports a specialkibana.dev.js
file for configuring the APM agent in development. This should be replaced with the more standard supportedkibana.dev.yml
file for a more standard development experienceThe text was updated successfully, but these errors were encountered: