system.xml 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
  9. <system>
  10. <section id="newrelicreporting" translate="label" type="text" sortOrder="1100" showInDefault="1" showInWebsite="1" showInStore="1">
  11. <label>New Relic Reporting</label>
  12. <tab>general</tab>
  13. <resource>Magento_NewRelicReporting::config_newrelicreporting</resource>
  14. <group id="general" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
  15. <label>General</label>
  16. <field id="enable" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
  17. <label>Enable New Relic Integration</label>
  18. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  19. </field>
  20. <field id="api_url" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
  21. <label>New Relic API URL</label>
  22. </field>
  23. <field id="insights_api_url" translate="label comment" type="text" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
  24. <label>Insights API URL</label>
  25. <comment>Use %s to replace the account ID in the URL</comment>
  26. </field>
  27. <field id="account_id" translate="label comment" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1">
  28. <label>New Relic Account ID</label>
  29. <comment><![CDATA["Need a New Relic account? <a href="http://www.newrelic.com/magento" target="_blank">Click here to get one]]></comment>
  30. </field>
  31. <field id="app_id" translate="label comment" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
  32. <label>New Relic Application ID</label>
  33. <comment>This can commonly be found at the end of the URL when viewing the APM after "/applications/"</comment>
  34. </field>
  35. <field id="api" translate="label comment" type="obscure" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="1">
  36. <label>New Relic API Key</label>
  37. <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
  38. <comment>This is located by navigating to Events -> Deployments from the New Relic APM website</comment>
  39. </field>
  40. <field id="insights_insert_key" translate="label comment" type="obscure" sortOrder="7" showInDefault="1" showInWebsite="1" showInStore="1">
  41. <label>Insights API Key</label>
  42. <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
  43. <comment>Generated under Insights in Manage data -> API Keys -> Insert Keys</comment>
  44. </field>
  45. <field id="app_name" translate="label comment" type="text" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="1">
  46. <label>New Relic Application Name</label>
  47. <comment>This is located by navigating to Settings from the New Relic APM website</comment>
  48. </field>
  49. <field id="separate_apps" translate="label comment" type="select" sortOrder="9" showInDefault="1" showInWebsite="1" showInStore="1">
  50. <label>Send Adminhtml and Frontend as Separate Apps</label>
  51. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  52. <comment>In addition to the main app (which includes all PHP execution), separate apps for adminhtml and frontend will be created. Requires New Relic Application Name to be set.</comment>
  53. </field>
  54. </group>
  55. <group id="cron" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
  56. <label>Cron</label>
  57. <field id="enable_cron" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
  58. <label>Enable Cron</label>
  59. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  60. </field>
  61. </group>
  62. </section>
  63. </system>
  64. </config>