A metric for the number of comments is useful for monitoring.
Example output:
# HELP drupal_comment_count_total Provides metrics for comment counts.
# TYPE drupal_comment_count_total gauge
drupal_comment_count_total 2
drupal_comment_count_total{status="not published"} 1
drupal_comment_count_total{status="published"} 1
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3135682-6-interdiff.txt | 7.48 KB | kim.pepper |
| #6 | 3135682-6.patch | 12.92 KB | kim.pepper |
Comments
Comment #2
kim.pepperAdds a comment count plugin.
Comment #3
kim.pepperAdd a test group.
Comment #4
kim.pepperFixes an issue with missing config on install.
Comment #5
kim.pepperFeedback from @larowlan on the config install change is that we should do that in the parent module.
Comment #6
kim.pepperAdded prometheus_exporter_modules_installed() to add some default config when new modules are enabled.
Comment #7
larowlanlooks good to me
Comment #9
kim.pepperCommitted and pushed to 8.x-1.x. Thanks!
Comment #10
mmbkThis fails with Core 8.8.6 as the second parameter is not defined.
The prototype in core/lib/Drupal/Core/Extension/module.api.php (8.8.6) is not defining the paramater $is_syncing
As a result an im port of an existing configuration (and probably a 'drush en prometheus_exporter_MODULE' ) fails with
Comment #11
kim.pepperPlease create a new issue instead of re-opening fixed ones.