Skip to content

Commit

Permalink
Merge pull request #194 from MalloZup/adjust-azure-port
Browse files Browse the repository at this point in the history
The port of ha-exporter has changed to 9002 and remove superficial if
  • Loading branch information
ayoub-belarbi authored Sep 23, 2019
2 parents 7b12d0c + 0ec2bb6 commit c4b149a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions azure/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -395,13 +395,13 @@ resource "azurerm_network_security_group" "mysecgroup" {
destination_address_prefix = "*"
}
security_rule {
name = "hawkExporter"
name = "ha-exporter"
priority = 1007
direction = "Inbound"
access = "Allow"
protocol = "*"
source_port_range = "*"
destination_port_range = "9001"
destination_port_range = "9002"
source_address_prefix = "*"
destination_address_prefix = "*"
}
Expand Down
2 changes: 0 additions & 2 deletions salt/monitoring/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ alerting:
rule_files:
- /etc/prometheus/rules.yml

{% if grains.get('monitored_hosts') %}
scrape_configs:
- job_name: hanadb
static_configs:
Expand All @@ -36,4 +35,3 @@ scrape_configs:
{% for ip in grains['monitored_hosts'] %}
- "{{ ip }}:9002" # 9002: ha_cluster_exporter metrics
{% endfor %}
{% endif %}

0 comments on commit c4b149a

Please sign in to comment.