Skip to content

Commit

Permalink
Add Kubernetes deploy events
Browse files Browse the repository at this point in the history
- Add `logzio-k8s-events` sub chart version `0.0.2`:
  - Sends Kubernetes deploy events logs.
  • Loading branch information
ralongit committed Nov 7, 2023
1 parent d1b9d97 commit 14172bd
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 3 deletions.
17 changes: 17 additions & 0 deletions config-templates/helm.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,22 @@
}
]
},
{
"template": " --set deployEvents.enabled=true \\",
"targetElement": "datasources[?(@.name=='DeployEvents')]",
"conditionalTemplates": [
{
"template": " --set logzio-k8s-events.env_id='{{value}}' \\",
"targetElement": "datasources[?(@.name=='DeployEvents')].params[?(@.name=='envID')].value",
"keepAsPlaceholder": true
},
{
"template": " --set logzio-k8s-events.secrets.logzioShippingToken='<<LOGZIO_LOGS_SHIPPING_TOKEN>>' \\"
},
{
"template": " --set logzio-k8s-events.secrets.logzioListener='<<LOGZIO_LISTENER_ADDRESS>>' \\"
}
]
},
{ "template": "logzio-monitoring logzio-helm/logzio-monitoring" }
]
25 changes: 25 additions & 0 deletions configs/2-1-k8s-eks.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,31 @@
"params": []
}
]
},
{
"name": "Deploy Events",
"logo": "https://dytvr9ot2sszz.cloudfront.net/logz-docs/shipper-logos/kubernetes.svg",
"label": "DeployEvents",
"description": "Logz.io uses Kubernetes official SDK to detect deploy events that occur in your cluster and allows you to view the changes.",
"params": [
{
"type": "text",
"name": "envID",
"label": "Environment Name",
"description": "The name for your environments identifier, to easily identify the telemetry data for each environment.",
"hint": "By typing an environment name, the name will be added as a label to the telemetry data of your environment.",
"value": "",
"pattern": "^[a-zA-Z0-9_-]*$",
"patternError": "Only letters, numbers, dashes and underscores are allowed"
}
],
"telemetries": [
{
"type": "LOG_ANALYTICS",
"hint": "Switch the toggle on if you want Logz.io Telemetry Collector to collect deploy events from your Kubernetes cluster components.",
"params": []
}
]
}
]
}
Expand Down
27 changes: 26 additions & 1 deletion configs/2-2-k8s-aks.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,32 @@
"params": []
}
]
}
},
{
"name": "Deploy Events",
"logo": "https://dytvr9ot2sszz.cloudfront.net/logz-docs/shipper-logos/kubernetes.svg",
"label": "DeployEvents",
"description": "Logz.io uses Kubernetes official SDK to detect deploy events that occur in your cluster and allows you to view the changes.",
"params": [
{
"type": "text",
"name": "envID",
"label": "Environment Name",
"description": "The name for your environments identifier, to easily identify the telemetry data for each environment.",
"hint": "By typing an environment name, the name will be added as a label to the telemetry data of your environment.",
"value": "",
"pattern": "^[a-zA-Z0-9_-]*$",
"patternError": "Only letters, numbers, dashes and underscores are allowed"
}
],
"telemetries": [
{
"type": "LOG_ANALYTICS",
"hint": "Switch the toggle on if you want Logz.io Telemetry Collector to collect deploy events from your Kubernetes cluster components.",
"params": []
}
]
}
]
}
]
Expand Down
27 changes: 26 additions & 1 deletion configs/2-3-k8s-gke.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,32 @@
"params": []
}
]
}
},
{
"name": "Deploy Events",
"logo": "https://dytvr9ot2sszz.cloudfront.net/logz-docs/shipper-logos/kubernetes.svg",
"label": "DeployEvents",
"description": "Logz.io uses Kubernetes official SDK to detect deploy events that occur in your cluster and allows you to view the changes.",
"params": [
{
"type": "text",
"name": "envID",
"label": "Environment Name",
"description": "The name for your environments identifier, to easily identify the telemetry data for each environment.",
"hint": "By typing an environment name, the name will be added as a label to the telemetry data of your environment.",
"value": "",
"pattern": "^[a-zA-Z0-9_-]*$",
"patternError": "Only letters, numbers, dashes and underscores are allowed"
}
],
"telemetries": [
{
"type": "LOG_ANALYTICS",
"hint": "Switch the toggle on if you want Logz.io Telemetry Collector to collect deploy events from your Kubernetes cluster components.",
"params": []
}
]
}
]
}
]
Expand Down
27 changes: 26 additions & 1 deletion configs/2-4-k8s-digitalocean.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,32 @@
"params": []
}
]
}
},
{
"name": "Deploy Events",
"logo": "https://dytvr9ot2sszz.cloudfront.net/logz-docs/shipper-logos/kubernetes.svg",
"label": "DeployEvents",
"description": "Logz.io uses Kubernetes official SDK to detect deploy events that occur in your cluster and allows you to view the changes.",
"params": [
{
"type": "text",
"name": "envID",
"label": "Environment Name",
"description": "The name for your environments identifier, to easily identify the telemetry data for each environment.",
"hint": "By typing an environment name, the name will be added as a label to the telemetry data of your environment.",
"value": "",
"pattern": "^[a-zA-Z0-9_-]*$",
"patternError": "Only letters, numbers, dashes and underscores are allowed"
}
],
"telemetries": [
{
"type": "LOG_ANALYTICS",
"hint": "Switch the toggle on if you want Logz.io Telemetry Collector to collect deploy events from your Kubernetes cluster components.",
"params": []
}
]
}
]
}
]
Expand Down

0 comments on commit 14172bd

Please sign in to comment.