Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent AMP from collecting EKS cluster metrics (30$ per day) #857

Open
hdsuperman opened this issue Nov 25, 2023 · 0 comments
Open

Prevent AMP from collecting EKS cluster metrics (30$ per day) #857

hdsuperman opened this issue Nov 25, 2023 · 0 comments

Comments

@hdsuperman
Copy link

After turning on amp, a large amount of cluster metrics information was collected, and the cost was close to 30$ per day.
As developers we only care about the metrics of a specific container. Ability to determine what information is collected by controlling the service's annotation.

apiVersion: v1
kind: Service
metadata:
  name: my-service
  namespace: abc
  annotations:
    prometheus.io/scrape: 'true'
    prometheus.io/path: '/actuator/prometheus'
    prometheus.io/port: '18080'
spec:
  selector:
    app: abc
  ports:
    - name: restful
      protocol: TCP
      port: 18080
      targetPort: 18080
    - name: grpc
      protocol: TCP
      port: 19090
      targetPort: 19090

Is there any way to achieve the above requirements by controlling the json configuration of the adot add-on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant