|
| 1 | +apiVersion: v1 |
| 2 | +kind: ConfigMap |
| 3 | +metadata: |
| 4 | + name: statsd-exporter-config |
| 5 | + namespace: monitoring |
| 6 | +data: |
| 7 | + mapping.yaml: |- |
| 8 | + mappings: |
| 9 | + - match: "bot.channels.*" |
| 10 | + name: "bot_channel_messages" |
| 11 | + help: "Number of messages by Discord channel name" |
| 12 | + labels: |
| 13 | + channel: "$1" |
| 14 | + - match: "bot.commands.*" |
| 15 | + name: "bot_command_calls" |
| 16 | + help: "Number of calls to each bot command" |
| 17 | + labels: |
| 18 | + command: "$1" |
| 19 | + - match: "bot.tags.usages.*" |
| 20 | + name: "bot_tag_usages" |
| 21 | + help: "Number of times each tag is used" |
| 22 | + labels: |
| 23 | + tag: "$1" |
| 24 | + - match: "bot.errors.*" |
| 25 | + name: "bot_errors" |
| 26 | + help: "Number of errors by type" |
| 27 | + labels: |
| 28 | + error_type: "$1" |
| 29 | + - match: "bot.dormant_invoke.*" |
| 30 | + name: "bot_dormant_invoke" |
| 31 | + help: "Number of dormant command invocations by claimant/staff" |
| 32 | + labels: |
| 33 | + invoker: "$1" |
| 34 | + - match: "bot.slowmode.*" |
| 35 | + name: "bot_slowmode" |
| 36 | + help: "Number of slowmode activations by channel" |
| 37 | + labels: |
| 38 | + channel: "$1" |
| 39 | + - match: "bot.filters.*" |
| 40 | + name: "bot_filter_activations" |
| 41 | + help: "Number of filter activations by filter name" |
| 42 | + labels: |
| 43 | + filter: "$1" |
| 44 | + - match: "bot.voice_gate.failed.*" |
| 45 | + name: "bot_voice_gate_reason" |
| 46 | + help: "Number of failed voice gate attempts by reason" |
| 47 | + labels: |
| 48 | + reason: "$1" |
| 49 | + - match: "bot.snekbox.python.*" |
| 50 | + name: "bot_snekbox_python_executions" |
| 51 | + help: "Number of Python code executions in Snekbox by result type" |
| 52 | + labels: |
| 53 | + result: "$1" |
| 54 | + - match: "bot.snekbox_usages.roles.*" |
| 55 | + name: "bot_snekbox_role_usages" |
| 56 | + help: "Number of Snekbox role usages by role" |
| 57 | + labels: |
| 58 | + role: "$1" |
| 59 | + - match: "bot.snekbox_usages.channels.*" |
| 60 | + name: "bot_snekbox_channel_usages" |
| 61 | + help: "Number of Snekbox channel usages by channel" |
| 62 | + labels: |
| 63 | + channel: "$1" |
| 64 | + - match: "bot.python_news.posted.*" |
| 65 | + name: "bot_python_news_posted" |
| 66 | + help: "Number of Python news posts by source" |
| 67 | + labels: |
| 68 | + source: "$1" |
| 69 | + - match: "bot.rule_uses.*" |
| 70 | + name: "bot_rule_uses" |
| 71 | + help: "Number of rule uses by rule number" |
| 72 | + labels: |
| 73 | + rule: "$1" |
0 commit comments