"total_messages_delivered" metrics not getting with node_expoter

i have setup nodeexporter to collect metrics and create dashboard in grafana but iam not getting some metrics like total_messages_delivered, total_messages_fail, total_messages_fail etc

Have you delivered some messages and failed others? Would you expect the counters to be populated?

No, I am not getting these metrics name.

i have expose this:
curl localhost:9100/metrics and curl localhost:8000/metrics

still i am not getting those metrics names.

Post a gist of what you are getting.

check this
message.txt (2.16 KB)

Node exporter is for the extra node metrics. KumoMTA metrics are exposed on the /metrics api and you do not need exporter for that

ya, but not getting these metrics (total_messages_delivered, total_messages_fail, total_messages_fail) so how can i get.

did you follow the instructions here?

yes, i follow same.

THis is all you really need to do in the prometheus scraper config:

  - job_name: kumomta
    scrape_interval: 5s
    metrics_path: /metrics
    static_configs:
      - targets:
          - 'kumomta-1:8000'
          - 'kumomta-2:8000'```

Oh, I think I see what you are saying now

yeah, there is a slight complication if you do it witrh docker

yes, same i done, but i am not getting any data in grafana, it is looking for those metrics which i mentioned.

docker does not persist a volume unless you specify. I thought I had documented that use case somewhere.

iam running kumo in server not in docker.

oh. did you also install Prometheus and Grafana on that server or did you install them in dockers

prometheus and grafana is on same server.

not in docker

cool, then you just need to add that config, but I would specify the local address