Skip to content

Commit 3eb04d0

Browse files
alexanpatrananos
authored andcommitted
feat: automated telemetry deployments. dynamic policy changes. fluidity updates. and more.
Signed-off-by: Alexandros Patras <patras@uth.gr>
1 parent b491a5c commit 3eb04d0

File tree

13 files changed

+19
-546
lines changed

13 files changed

+19
-546
lines changed

agents/continuum/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ cachetools
1414
kubernetes
1515
redis
1616
kubernetes_asyncio
17-
watchdog
17+
watchdog
18+
ruamel.yaml

agents/deployments/README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -82,27 +82,27 @@ apply the CR or the descirption via the MLS CLI:
8282

8383
## Custom Policies
8484

85-
3. Create a configmap based on each policy that you want to use inside the agents.
85+
Create a configmap based on each policy that you want to use inside the agents.
8686
`kubectl create configmap cluster-policies --from-file=policy-<policy-name>.py --from-file=policy-<policy-name>.py --namespace=mlsysops-framework`
8787

8888

8989

9090

9191
## Environmental variables
9292

93-
EJABBERD_DOMAIN - the IP/domain of the continuum node. used for spade agent login to xmpp (xmpp server ip), and from the cluster otel to send telemetry
94-
MLS_OTEL_HIGHER_EXPORT - ON (default) /OFF to indidcate if telemetry export to cluster/continuum OTEL is enabled. Used in cluster/node agents.
95-
MLS_OTEL_CLUSTER_PORT - the port used that cluster otel collector listend (gRPC - default 43170)
96-
MLS_OTEL_CONTINUUM_PORT - the continuum otel collector GRPC port. must be set to cluster agent pod
97-
MLS_OTEL_PROMETHEUS_LISTEN_IP/MLS_OTEL_PROMETHEUS_LISTEN_PORT - the otel collector prometheus exporting ip/port, for every layer. for local fetch
98-
MLS_OTEL_CONTINUUM_EXPORT_IP/MLS_OTEL_CONTINUUM_EXPORT_PORT - used in continuum agent env pod. if we want to use another OTEL collector receiving the telemetry stream
99-
MLS_OTEL_MIMIR_EXPORT_ENDPOINT - used to indicate if the otel collector should export metrics to a mimir instance
100-
MLS_OTEL_LOKI_EXPORT_ENDPOINT - used to indicate if the otel collector should export logs to a loki instance
101-
MLS_OTEL_TEMPO_EXPORT_ENDPOINT - used to indicate if the otel collector should export traces to a tempo instance
102-
MLS_OTEL_NODE_EXPORTER_FLAGS - used to setup the --collect.* flags of node exporter. It always uses --collector.disable-defaults, appending this env variable.
103-
Default only --collector.os. Use the collector names, separated by comma (e.g. cpu, os, netdev)
104-
LOCAL_OTEL_ENDPOINT - the local ip
105-
93+
| Variable Name | Values | Description |
94+
|------------------------------------|-------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
95+
| EJABBERD_DOMAIN | IP/domain | The IP/domain of the continuum node used for spade agent login to xmpp (xmpp server ip), and from the cluster otel to send telemetry |
96+
| MLS_OTEL_HIGHER_EXPORT | ON (default)/OFF | Indicates if telemetry export to cluster/continuum OTEL is enabled. Used in cluster/node agents. |
97+
| MLS_OTEL_CLUSTER_PORT | Port number (default 43170) | The port used that cluster otel collector listens (gRPC) |
98+
| MLS_OTEL_CONTINUUM_PORT | Port number | The continuum otel collector GRPC port. Must be set to cluster agent pod |
99+
| MLS_OTEL_PROMETHEUS_LISTEN_IP/PORT | IP:PORT | The otel collector prometheus exporting ip/port, for every layer. For local fetch |
100+
| MLS_OTEL_CONTINUUM_EXPORT_IP/PORT | IP:PORT | Used in continuum agent env pod if we want to use another OTEL collector receiving the telemetry stream |
101+
| MLS_OTEL_MIMIR_EXPORT_ENDPOINT | URL | Used to indicate if the otel collector should export metrics to a mimir instance |
102+
| MLS_OTEL_LOKI_EXPORT_ENDPOINT | URL | Used to indicate if the otel collector should export logs to a loki instance |
103+
| MLS_OTEL_TEMPO_EXPORT_ENDPOINT | URL | Used to indicate if the otel collector should export traces to a tempo instance |
104+
| MLS_OTEL_NODE_EXPORTER_FLAGS | Comma-separated list (e.g. cpu,os,netdev) | Used to setup the --collect.* flags of node exporter. Always uses --collector.disable-defaults. Default: --collector.os |
105+
| LOCAL_OTEL_ENDPOINT | IP | The local IP |
106106

107107
### ML Connect
108108
Use environmental variable MLS_MLCONNECTOR_ENDPOINT to provide the REST API URL:IP of the service. If none is provided, the object in

agents/deployments/agents-daemonset.yaml

Lines changed: 0 additions & 127 deletions
This file was deleted.

agents/deployments/continuum-agents-daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
containers:
2121
- name: continuum-agent
2222
imagePullPolicy: Always
23-
image: registry.mlsysops.eu/agent/agents/continuum:0.0.15
23+
image: harbor.nbfc.io/mlsysops/continuum-agent:latest
2424
env:
2525
- name: KARMADA_API_KUBECONFIG
2626
value: /etc/kubeconfigs/karmada-api.kubeconfig

agents/deployments/mlsysops-rbac.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

agents/deployments/xmpp/.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

agents/deployments/xmpp/.gitkeep

Whitespace-only changes.

agents/deployments/xmpp/agent_connect.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

agents/deployments/xmpp/config_script.py

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)