0
0
RabbitMQdevops~10 mins

Prometheus and Grafana integration in RabbitMQ - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable Prometheus metrics plugin in RabbitMQ configuration.

RabbitMQ
prometheus_metrics = [1]
Drag options to blanks, or click blank then click option'
Atrue
Benabled
Con
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using string values like 'enabled' instead of boolean true.
Setting the value to false disables metrics.
2fill in blank
medium

Complete the command to enable the Prometheus plugin in RabbitMQ.

RabbitMQ
rabbitmq-plugins [1] rabbitmq_prometheus
Drag options to blanks, or click blank then click option'
Ainstall
Benable
Cstart
Ddisable
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'disable' instead of 'enable'.
Trying to 'start' or 'install' which are not valid plugin commands.
3fill in blank
hard

Fix the error in the Prometheus scrape configuration for RabbitMQ in Prometheus YAML file.

RabbitMQ
- job_name: 'rabbitmq'
  static_configs:
    - targets: ['[1]']
Drag options to blanks, or click blank then click option'
Alocalhost:15692
Blocalhost:9090
Clocalhost:15672
Dlocalhost:9100
Attempts:
3 left
💡 Hint
Common Mistakes
Using the management UI port 15672 instead of metrics port.
Using Prometheus server port 9090 or node exporter port 9100.
4fill in blank
hard

Fill both blanks to configure RabbitMQ Prometheus plugin in the RabbitMQ config file.

RabbitMQ
prometheus = [
  {rabbit, [
    {loopback_users, []},
    [1], true}
  ]},
  [2], [{port, 15692}]}
].
Drag options to blanks, or click blank then click option'
Aprometheus_metrics
Brabbitmq_prometheus
Cmetrics
Dlisteners
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rabbitmq_prometheus' which is a plugin name, not config key.
Confusing 'metrics' with 'prometheus_metrics'.
5fill in blank
hard

Fill all three blanks to create a Grafana dashboard data source for Prometheus.

RabbitMQ
apiVersion: 1
datasources:
- name: [1]
  type: [2]
  url: [3]
  access: proxy
Drag options to blanks, or click blank then click option'
APrometheus
Bprometheus
C"http://localhost:9090"
D"http://localhost:3000"
Attempts:
3 left
💡 Hint
Common Mistakes
Using Grafana URL (port 3000) instead of Prometheus URL.
Incorrect casing for datasource type.