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

Most of the metrics are to 0.0 #3

Open
damien-reyre opened this issue Jun 7, 2023 · 9 comments
Open

Most of the metrics are to 0.0 #3

damien-reyre opened this issue Jun 7, 2023 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@damien-reyre
Copy link

Hello,

Thanks for adding the memgraph-exporter. It can be very useful.

I just noticed, that practically all my metrics are zero except for a few.

memgraph is installed in docker-compose. 1.7-memgraph-2.8-dev

I passed the two commands for adding the metrics:
--metrics-address
--metrics-port

For the moment, I just use the python script.

The metrics available:
image

The metrics are zero:
image

Until the end, all metrics are zero.

Did I forget something for having all the metrics?

Thanks

@gitbuda gitbuda added the bug Something isn't working label Jun 7, 2023
@damien-reyre
Copy link
Author

All the metrics from memgraph itself are not available. The first metrics available are from the host (I suppose).

I connected to the container in bash and I tried to curl localhost:9091
image

That the reason I can't see the metrics, but why?

If I don't add the settings for the containers --metrics-address and --metrics-port. I get a connection refused.

@Josipmrden
Copy link
Contributor

Hello @damien-reyre , there are a couple of things which might be wrong with the setup. The workflow of enabling exposed metrics to the outside is as follows:

  1. Add the enterprise license to memgraph (this is done at runtime)
  2. Restart Memgraph
  3. try to curl via postman

The documentation at https://memgraph.com/docs/memgraph/reference-guide/exposing-system-metrics provides you with the steps of how to enable exposing metrics.

After doing these steps, I was successfully getting the JSON response of the metrics from Postman.

@Josipmrden
Copy link
Contributor

@damien-reyre An additional question, which metrics do you not expect to be zero, but were zero when you got the metrics response?

@damien-reyre
Copy link
Author

Hello @Josipmrden,

My mistake was about the enterprise license. I didn't set up. Thanks.

@damien-reyre
Copy link
Author

Hello @Josipmrden,

I got an enterprise license.

image

I configured the memgraph with docker compose:

image

In the second step, you said:
image

curl http://172.18.0.1:9091
curl: (7) Failed to connect to 172.18.0.1 port 9091: Connection refused

curl http://172.18.0.1:9091/metrics
curl: (7) Failed to connect to 172.18.0.1 port 9091: Connection refused

There is no firewall in this dev environment.

Nothing in the logs from memgraph.

I think I missed something to configure.

@damien-reyre
Copy link
Author

Do you have any idea? @Josipmrden

@Josipmrden
Copy link
Contributor

hello @damien-reyre , have you restarted Memgraph after configuring the enterprise licence?

@damien-reyre
Copy link
Author

@Josipmrden Yes. It seems I can't get the metrics from the memgraph container.

@damien-reyre
Copy link
Author

Finally, the parameters in commands seems not working in my case from docker-compose.yaml.

So I passed the memgraph.conf in volume and set --metrics-address=0.0.0.0 and --metrics-port=9091.

This time with curl, the port is well open, but I have nothing, no metrics, no JSON.

image

When I'm looking to the logs:

image

That's possible to get this symptom with an invalid license or my organization's name is wrong?

@Josipmrden

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants