Clymene-project / Clymene

the Clymene is time-series data and Logs collection platform for distributed systems.

Home Page:https://clymene-project.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prometheus configuration

seungjinyu opened this issue · comments

Hello I`m a DevOps engineer who got interested in Clymene

I have read the blog post and came to this Github to use Clymene how it works on the k8s cluster

But it seems like I have misconfigured the app but could not find the solution.

So the issue is that when I configure the prometheus remote url the agent saids that the option does not exist.

Were there any updates?

below is my deployments.yaml file

apiVersion: apps/v1
kind: Deployment
metadata:
  name: clymene-agent
  namespace: clymene
  labels:
    app: clymene-agent
spec:
  selector:
    matchLabels:
      app: clymene-agent
  replicas: 1
  template:
    metadata:
      labels:
        app: clymene-agent
    spec:
      containers:
        - name: clymene-agent
          image: bourbonkk/clymene-agent:latest
          imagePullPolicy: Always
          ports:
            - containerPort: 15691
            - containerPort: 15692
          args:
            - --config.file=/etc/clymene/clymene.yml
            - --prometheus.remote.url=http://prometheus.monitors.svc.cluster.local:9090/api/v1/write
            - --log-level=info
          env:
            - name: TS_STORAGE_TYPE
              value: kafka
          volumeMounts:
            - mountPath: /etc/clymene/
              name: config-volume
      volumes:
        - name: config-volume
          configMap:
            name: clymene-agent-config
      securityContext:
        runAsUser: 1000

And the error is

Error: unknown flag: --prometheus.remote.url

Is there something wrong with my yaml file? or did I miss something?

If you have time please let me know : )

@seungjinyu Thank you for your interest!

to send data to prometheus, only when STORAGE_TYPE is "prometheus", the flag is activated.
originally set the environment variable as TS_STORAGE_TYPE, but now the "latest" tag should be used as STORAGE_TYPE.
Until v1.5.0, it must be used as TS_STORAGE_TYPE.

The reason is to develop a log collection agent, and the variable name has been changed to make STORAGE_TYPE common.

Please also pay a lot of attention to the log collection agent that will be released soon.

@bourbonkk Thank you for the kind explanation.

I guess then I will just have to add an environment variable to activate the STORAGE_TYPE flag right? , Thanks.

Hope to see the log collection agent soon : )