Closed (duplicate)
Project:
Prometheus Exporter
Version:
8.x-1.x-dev
Component:
Documentation
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2020 at 07:24 UTC
Updated:
7 May 2020 at 00:38 UTC
Jump to comment: Most recent
Comments
Comment #2
mmbkHi,
the module is not supposed to show up anywhere in the content.
There is only one new route implemented that creates the endpoint automatically
By default it is only accesible by authenticated users, having the permission to view the data.
Your prometheus scraper will probably not authenticate to drupal, so you have to grant access to anoymous users. But be carefull, then you will expose sensitive data to everyone, so protect this url by other means (.htaccess)
For example
And yes, the documentation is a bit short.
Comment #3
somnath.ghosh518@gmail.com commentedThank you for the information, this was really helpful.
However I get the below error whenever I hit the said path /metrics
TypeError: Argument 1 passed to Drupal\prometheus_exporter\Controller\MetricsController::__construct() must be an instance of Symfony\Component\Serializer\SerializerInterface, instance of stdClass given, called in /app/web/modules/prometheus_exporter/src/Controller/MetricsController.php on line 49 in Drupal\prometheus_exporter\Controller\MetricsController->__construct() (line 38 of /app/web/modules/prometheus_exporter/src/Controller/MetricsController.php)
Comment #4
kim.peppersomnath.ghosh518@gmail.com this is a duplicate of #3115793: TypeError: Argument 1 passed to Drupal\prometheus_exporter\Controller\MetricsController::__construct() must be an instance of Symfony\Component\Serializer\SerializerInterface, instance of stdClass given, called in /app/web/modules/prometheus_exporter/src/ Please see that issue for possible solutions.