[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EFKZ2QVMCC91BZNSYB70MT":3,"skill-same:01M6EFKZ2QVMCC91BZNSYB70MT":46},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M6EFKZ2QVMCC91BZNSYB70MT","new-relic",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fnew-relic\u002FSKILL.md",[],[18],"new relic","2026-11-10 10:12:30",false,"# New Relic\n\n## Overview\n\nConfigure New Relic for application performance monitoring, infrastructure observability, browser real-user monitoring, and intelligent alerting. Covers agent installation, NRQL querying, dashboard creation, and alert policy configuration.\n\n## Instructions\n\n### Task A: Install APM Agent\n\n```bash\n# Install New Relic Node.js agent\nnpm install newrelic\n```\n\n```javascript\n\u002F\u002F newrelic.js — New Relic agent configuration (must be first require)\n'use strict'\nexports.config = {\n  app_name: ['payment-service'],\n  license_key: process.env.NEW_RELIC_LICENSE_KEY,\n  distributed_tracing: { enabled: true },\n  logging: { level: 'info' },\n  allow_all_headers: true,\n  attributes: {\n    exclude: [\n      'request.headers.cookie',\n      'request.headers.authorization',\n    ]\n  },\n  transaction_tracer: {\n    enabled: true,\n    transaction_threshold: 'apdex_f',\n    record_sql: 'obfuscated',\n  },\n  error_collector: {\n    enabled: true,\n    ignore_status_codes: [404, 401],\n  },\n}\n```\n\n```javascript\n\u002F\u002F app.js — Load New Relic before anything else\nrequire('newrelic')\nconst express = require('express')\nconst app = express()\n\napp.get('\u002Fapi\u002Forders', async (req, res) => {\n  const orders = await db.query('SELECT * FROM orders LIMIT 100')\n  res.json(orders)\n})\n```\n\n### Task B: Infrastructure Agent Setup\n\n```bash\n# Install infrastructure agent on Ubuntu\ncurl -Ls https:\u002F\u002Fdownload.newrelic.com\u002Finstall\u002Fnewrelic-cli\u002Fscripts\u002Finstall.sh | bash\nsudo NEW_RELIC_API_KEY=\"NRAK-XXXXXXXXX\" NEW_RELIC_ACCOUNT_ID=\"1234567\" \\\n  \u002Fusr\u002Flocal\u002Fbin\u002Fnewrelic install -n infrastructure-agent-installer\n```\n\n```yaml\n# \u002Fetc\u002Fnewrelic-infra.yml — Infrastructure agent config\nlicense_key: \"\u003CYOUR_LICENSE_KEY>\"\ndisplay_name: \"web-server-01\"\ncustom_attributes:\n  environment: production\n  team: platform\n  region: us-east-1\nenable_process_metrics: true\nmetrics_system_sample_rate: 15\nmetrics_network_sample_rate: 15\n```\n\n### Task C: NRQL Queries\n\n```sql\n-- Find slowest transactions in the last hour\nSELECT average(duration), max(duration), count(*)\nFROM Transaction\nWHERE appName = 'payment-service'\nFACET name\nSINCE 1 hour ago\nORDER BY average(duration) DESC\nLIMIT 20\n```\n\n```sql\n-- Error rate by deployment version\nSELECT percentage(count(*), WHERE error IS true) AS 'Error Rate'\nFROM Transaction\nWHERE appName = 'payment-service'\nFACET tags.version\nSINCE 1 day ago\nTIMESERIES 15 minutes\n```\n\n```sql\n-- Apdex score trend over time\nSELECT apdex(duration, 0.5) AS 'Apdex'\nFROM Transaction\nWHERE appName = 'payment-service'\nSINCE 7 days ago\nTIMESERIES 1 hour\n```\n\n```sql\n-- Infrastructure: hosts with high CPU\nSELECT average(cpuPercent), max(memoryUsedPercent)\nFROM SystemSample\nFACET hostname\nWHERE environment = 'production'\nSINCE 30 minutes ago\n```\n\n### Task D: Create Alert Policies via API\n\n```bash\n# Create an alert policy via NerdGraph API\ncurl -X POST 'https:\u002F\u002Fapi.newrelic.com\u002Fgraphql' \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Api-Key: ${NEW_RELIC_API_KEY}\" \\\n  -d '{\n    \"query\": \"mutation { alertsPolicyCreate(accountId: 1234567, policy: { name: \\\"Payment Service - Production\\\", incidentPreference: PER_CONDITION_AND_TARGET }) { id name } }\"\n  }'\n```\n\n```bash\n# Create a NRQL alert condition — High error rate\ncurl -X POST 'https:\u002F\u002Fapi.newrelic.com\u002Fgraphql' \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Api-Key: ${NEW_RELIC_API_KEY}\" \\\n  -d '{\n    \"query\": \"mutation { alertsNrqlConditionStaticCreate(accountId: 1234567, policyId: 987654, condition: { name: \\\"High Error Rate\\\", enabled: true, nrql: { query: \\\"SELECT percentage(count(*), WHERE error IS true) FROM Transaction WHERE appName = '\\''payment-service'\\''\\\" }, signal: { aggregationWindow: 300, aggregationMethod: EVENT_FLOW, aggregationDelay: 120 }, terms: [{ threshold: 5, thresholdOccurrences: ALL, thresholdDuration: 300, operator: ABOVE, priority: CRITICAL }, { threshold: 2, thresholdOccurrences: ALL, thresholdDuration: 300, operator: ABOVE, priority: WARNING }], violationTimeLimitSeconds: 86400 }) { id name } }\"\n  }'\n```\n\n### Task E: Create Dashboards via NerdGraph\n\n```bash\n# Create a dashboard with multiple widgets\ncurl -X POST 'https:\u002F\u002Fapi.newrelic.com\u002Fgraphql' \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Api-Key: ${NEW_RELIC_API_KEY}\" \\\n  -d '{\n    \"query\": \"mutation { dashboardCreate(accountId: 1234567, dashboard: { name: \\\"Payment Service Overview\\\", permissions: PUBLIC_READ_WRITE, pages: [{ name: \\\"Overview\\\", widgets: [{ title: \\\"Throughput\\\", configuration: { line: { nrqlQueries: [{ accountIds: [1234567], query: \\\"SELECT rate(count(*), 1 minute) FROM Transaction WHERE appName = '\\''payment-service'\\'' TIMESERIES\\\" }] } }, rawConfiguration: { facet: { showOtherSeries: false } } }, { title: \\\"Error Rate\\\", configuration: { billboard: { nrqlQueries: [{ accountIds: [1234567], query: \\\"SELECT percentage(count(*), WHERE error IS true) AS '\\''Error Rate'\\'' FROM Transaction WHERE appName = '\\''payment-service'\\'' SINCE 1 hour ago\\\" }], thresholds: [{ alertSeverity: CRITICAL, value: 5 }, { alertSeverity: WARNING, value: 2 }] } } }] }] }) { entityResult { guid } } }\"\n  }'\n```\n\n### Task F: Browser Monitoring\n\n```html\n\u003C!-- index.html — Add New Relic browser agent snippet -->\n\u003Chead>\n  \u003Cscript type=\"text\u002Fjavascript\">\n    ;window.NREUM||(NREUM={});NREUM.init={distributed_tracing:{enabled:true},\n    privacy:{cookies_enabled:true},ajax:{deny_list:[\"bam.nr-data.net\"]}};\n    \u002F\u002F Paste the full browser agent JS snippet from New Relic UI\n    \u002F\u002F Settings > Application > Browser monitoring > Copy\u002Fpaste method\n  \u003C\u002Fscript>\n\u003C\u002Fhead>\n```\n\n```bash\n# Configure browser monitoring via API for SPA\ncurl -X POST 'https:\u002F\u002Fapi.newrelic.com\u002Fgraphql' \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Api-Key: ${NEW_RELIC_API_KEY}\" \\\n  -d '{\n    \"query\": \"mutation { agentApplicationSettingsUpdate(guid: \\\"YOUR_BROWSER_ENTITY_GUID\\\", settings: { browserConfig: { apdexTarget: 3.0 }, browserMonitoring: { distributedTracing: { enabled: true }, ajax: { enabled: true }, spa: { enabled: true } } }) { browserConfig { apdexTarget } } }\"\n  }'\n```\n\n## Best Practices\n\n- Use distributed tracing across all services for end-to-end request visibility\n- Set meaningful Apdex thresholds per service based on actual SLA requirements\n- Use `FACET` in NRQL to break down metrics by deployment version, endpoint, or region\n- Configure alert notification channels (Slack, PagerDuty) before creating policies\n- Use workloads to group related entities and get unified health status\n- Exclude sensitive headers and parameters from agent collection\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fnew-relic",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill new-relic",{"tool":38,"command":39},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill new-relic",{"tool":41,"command":42},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill new-relic","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fnew-relic\u002FSKILL.md",true,[],[47,56,65,74,80,86],{"skillNo":48,"name":49,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[53,54,55],"model","model hierarchy","model hierarchy skill",{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[62,63,64],"MCP","zoom","zoom mcp",{"skillNo":66,"name":67,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[71,72,73,63],"sdk","zoom apps sdk","apps",{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[76],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[82],{"skillNo":87,"name":88,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[88]]