Raj Kamal Singh 3efd9801a1
Chore: restrict logs connection test for integrations to use log attributes for identifying logs (#4977)
* chore: change logs connection test spec to be based on an attrib value

* chore: disallow unknown fields while unmarshalling JSON for an integration

* chore: add description field to collected metric spec

* chore: update logs connection test for builtin integrations

* chore: update logic for calculating logs connection status
2024-05-15 14:36:52 +05:30

94 lines
1.9 KiB
JSON

{
"id": "nginx",
"title": "Nginx",
"description": "Monitor nginx using logs and metrics.",
"author": {
"name": "SigNoz",
"email": "integrations@signoz.io",
"homepage": "https://signoz.io"
},
"icon": "file://icon.svg",
"categories": [
"Ingress",
"HTTP"
],
"overview": "file://overview.md",
"configuration": [
{
"title": "Prerequisites",
"instructions": "file://config/prerequisites.md"
},
{
"title": "Collect Logs",
"instructions": "file://config/collect-logs.md"
}
],
"assets": {
"logs": {
"pipelines": []
},
"dashboards": null,
"alerts": null
},
"connection_tests": {
"logs": {
"attribute_key": "source",
"attribute_value": "nginx"
}
},
"data_collected": {
"logs": [
{
"name": "Timestamp",
"path": "timestamp",
"type": "timestamp"
},
{
"name": "Severity Text",
"path": "severity_text",
"type": "string"
},
{
"name": "Severity Number",
"path": "severity_number",
"type": "number"
},
{
"name": "Body Bytes Sent",
"path": "attributes.body_bytes_sent",
"type": "string"
},
{
"name": "Referrer",
"path": "attributes.http_referrer",
"type": "string"
},
{
"name": "User Agent",
"path": "attributes.http_user_agent",
"type": "string"
},
{
"name": "Request Method",
"path": "attributes.request_method",
"type": "string"
},
{
"name": "Request Path",
"path": "attributes.request_path",
"type": "string"
},
{
"name": "Response Status Code",
"path": "attributes.status",
"type": "string"
},
{
"name": "Remote Address",
"path": "attributes.remote_addr",
"type": "string"
}
],
"metrics": []
}
}