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

Metrics of the Analyzer #87

Open
juanjolmm opened this issue Nov 19, 2020 · 4 comments
Open

Metrics of the Analyzer #87

juanjolmm opened this issue Nov 19, 2020 · 4 comments

Comments

@juanjolmm
Copy link

Hello, I have just installed the Anchore Helm chart and I am very interested in having access to the metrics.
I see that we can have access to the metrics of each component by accessing the /metrics path.
In my case, I have deployed Anchore using an ALB ingress, everything is working fine, but I need a service for the analyzer, that does not exist.
If I am not wrong the only way I have to access the analyzer metrics is to create an extra service.
Am I missing something?

Thank you very much in advance.

@ngalanis930
Copy link

Indeed there is no service for the analyzer defined in the chart.
However, adding the prometheus metrics annotations on the deployment worked fine for me.

@ArjonBu
Copy link

ArjonBu commented Oct 13, 2021

apiVersion: v1
kind: Service
metadata:
  name: anchore-engine-analyzer
  labels:
    app: anchore-engine
    component: analyzer
spec:
  type: ClusterIP
  ports:
    - name: analyzer-api
      port: 8084
      targetPort: 8084
      protocol: TCP
  selector:
    app: anchore-engine
    component: analyzer

@hbermu
Copy link

hbermu commented Dec 16, 2021

Thanks for the Service yaml @ArjonBu! I have more than 1 analyzer, so this solution can't fix my problem at all.
Thank you very much.

@ArjonBu
Copy link

ArjonBu commented Dec 16, 2021

@hbermu Yes, it does. I am afraid you might not know how kubernetes services work.

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

4 participants