Talk:Gadget kitchen: recording metrics
Add topicAppearance
Latest comment: 6 months ago by Krinkle in topic Prometheus fields
Graphite sunset
[edit]Hi! Given that Graphite has been sunset (according to documentation here), wouldn't it make sense to remove the Graphite subsection altogether? I was confused myself when reading it at first whether I should use one method (Prometheus) or the other (Graphite). Diegodlh (talk) 20:12, 17 April 2026 (UTC)
Prometheus fields
[edit]Thank you @Krinkle for the Prometheus documentation!
You include a variable label example with field wiki in addition to action. Is this a real field that can be used and will be picked up by the Gadget stats Grafana dashboard? What fields other than action are supported and how should they be used?
Thank you! Diegodlh (talk) 20:17, 17 April 2026 (UTC)
- @Diegodlh: Labels are restricted in these ways:
- Characters (Gadget kitchen: recording metrics: labels may only contain a-z, 0-9, and underscore characters. If other characters are included, this prints an error to the console.).
- Consistent (Manual:Stats#Recommendations: Metrics must exist with the same consistent label keys across all measurements. Labels may not conditionally exist.)
- Low variants. There must be a limited number of possible values (i.e. don't use pagename, username, revision, date, or something with unlimited values).
- Beyond that, you do anything you like in your JavaScript code. If you want a metric with the label
{ my_foo_bar: 'hello' }you can do that. Krinkle (talk) 13:11, 18 April 2026 (UTC)