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

Operator adds opentsdb-http port to endpoints in VMServiceScrape #420

Closed
skibadmitriy opened this issue Feb 7, 2022 · 5 comments
Closed
Labels
question Further information is requested

Comments

@skibadmitriy
Copy link

Hello

I've run into a problem with unexpected behavior of VMOperator when I've enabled insertPorts.openTSDBHTTPPort: "4242 in VMCluster spec. VMOperator has added this port (opentsdb-http) to VMServiceScrape of VMInsert

spec:
  endpoints:
  - path: /metrics
    port: http
  - path: /metrics
    port: opentsdb-http

But this port isn't suitable for getting metrics and doesn't have /metrics path. So I have a lot of error messages in VMAgent log

@f41gh7 f41gh7 added the bug Something isn't working label Feb 7, 2022
@f41gh7
Copy link
Collaborator

f41gh7 commented Feb 7, 2022

Thanks for reporting, will be fixed soon.

f41gh7 added a commit that referenced this issue Feb 9, 2022
@f41gh7
Copy link
Collaborator

f41gh7 commented Feb 9, 2022

Tested it, it seems like, you have very old operator version.

Issue with incorrect port was solved at v0.17.0 release

Added additional test for it.

@f41gh7 f41gh7 added question Further information is requested and removed bug Something isn't working labels Feb 9, 2022
@skibadmitriy
Copy link
Author

skibadmitriy commented Feb 9, 2022

I have operator version

dmitriy@dmitriy-20rd001drt:~/app/edna/cd/cluster-system-apps$ kubectl -n vm-operator exec -it vm-operator-59bc5475b7-8tz4v -- sh
~ $ manager 
bin/    dev/    etc/    home/   lib/    media/  mnt/    opt/    proc/   root/   run/    sbin/   srv/    sys/    tmp/    usr/    var/
~ $ manager --version
v0.22.0

@skibadmitriy
Copy link
Author

VMserviceScrape was created by operator

dmitriy@dmitriy-20rd001drt:~/app/edna/cd/cluster-system-apps$ kubectl -n vm-operator get vmservicescrapes.operator.victoriametrics.com vminsert-vmcluster -o yaml
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
  creationTimestamp: "2022-01-28T09:20:36Z"
  generation: 2
  labels:
    app.kubernetes.io/component: monitoring
    app.kubernetes.io/instance: vmcluster
    app.kubernetes.io/name: vminsert
    managed-by: vm-operator
    vmagent: vmagent
  name: vminsert-vmcluster
  namespace: vm-operator
  ownerReferences:
  - apiVersion: operator.victoriametrics.com/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: VMCluster
    name: vmcluster
    uid: b8dc7c17-6fde-4d27-89c0-c91bfc472935
  resourceVersion: "10232749"
  uid: 19bc05ad-c410-4554-8d00-8dabd56ff63a
spec:
  endpoints:
  - path: /metrics
    port: http
  - path: /metrics
    port: opentsdb-http
  namespaceSelector: {}
  selector:
    matchLabels:
      app.kubernetes.io/component: monitoring
      app.kubernetes.io/instance: vmcluster
      app.kubernetes.io/name: vminsert
      managed-by: vm-operator

@f41gh7
Copy link
Collaborator

f41gh7 commented Apr 11, 2022

Changes was included to the v0.23.3 release. Feel free to re-open the issue if it doesn't solve it.

@f41gh7 f41gh7 closed this as completed Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants