Skip to content

Commit

Permalink
remove powerdns authoritative testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kang-makes committed Jan 4, 2024
1 parent 322db9f commit 0ca062c
Show file tree
Hide file tree
Showing 7 changed files with 224 additions and 280 deletions.
19 changes: 0 additions & 19 deletions exporters/powerdns/e2e/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,6 @@ services:
vpcbr:
ipv4_address: 10.5.0.2

pdns-authoritative:
build:
context: pdns-authoritative
container_name: pdns-authoritative
links:
- "mysql:mysql"
ports:
- "5300:53"
- "5300:53/udp"
- "8081:8081"
environment:
- PDNSCONF_DNSUPDATE=no
- SECALLZONES_CRONJOB=yes
volumes:
- ./pdns-authoritative/pdns.conf:/etc/powerdns/pdns.conf:ro
networks:
vpcbr:
ipv4_address: 10.5.0.3

mysql:
image: mysql
environment:
Expand Down
82 changes: 41 additions & 41 deletions exporters/powerdns/e2e/e2e_spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,54 +28,54 @@ scenarios:
nrqls:
- query: "SELECT average(powerdns_authoritative_queries_total) FROM Metric"
entities:
- type: "POWERDNS_AUTHORITATIVE"
data_type: "Metric"
metric_name: "powerdns_authoritative_up"
# - type: "POWERDNS_AUTHORITATIVE"
# data_type: "Metric"
# metric_name: "powerdns_authoritative_up"
- type: "POWERDNS_RECURSOR"
data_type: "Metric"
metric_name: "powerdns_recursor_up"
metrics:
- source: "powerdns.yml"
except_entities:
- POWERDNS_AUTHORITATIVE
# except_entities:
# - POWERDNS_AUTHORITATIVE
except_metrics:
- powerdns_authoritative_answers_bytes_total
- powerdns_recursor_cache_lookups_total
# additionals: ""
- description: |
This scenario will verify that metrics from PDNS authoritative
are correcly collected.
before:
- docker-compose up -d
after:
- docker-compose down -v
integrations:
- name: nri-powerdns
binary_path: ../target/bin/linux_amd64/nri-powerdns
exporter_binary_path: ../target/bin/linux_amd64/powerdns-exporter
config:
powerdns_url: http://localhost:8081/api/v1/
exporter_port: 9121
api_key: authoritative-secret
tests:
nrqls:
- query: "SELECT average(powerdns_authoritative_queries_total) FROM Metric"
entities:
- type: "POWERDNS_AUTHORITATIVE"
data_type: "Metric"
metric_name: "powerdns_authoritative_up"
metrics:
- source: "powerdns.yml"
except_entities:
- POWERDNS_RECURSOR
except_metrics:
- powerdns_authoritative_response_sizes
- powerdns_authoritative_queries
- powerdns_authoritative_response_rcodes
- powerdns_authoritative_remote_queries_unauth
- powerdns_authoritative_queries_unauth
- powerdns_authoritative_remote_queries
# additionals: ""
# - description: |
# This scenario will verify that metrics from PDNS authoritative
# are correcly collected.
# before:
# - docker-compose up -d
# after:
# - docker-compose down -v
# integrations:
# - name: nri-powerdns
# binary_path: ../target/bin/linux_amd64/nri-powerdns
# exporter_binary_path: ../target/bin/linux_amd64/powerdns-exporter
# config:
# powerdns_url: http://localhost:8081/api/v1/
# exporter_port: 9121
# api_key: authoritative-secret
# tests:
# nrqls:
# - query: "SELECT average(powerdns_authoritative_queries_total) FROM Metric"
# entities:
# - type: "POWERDNS_AUTHORITATIVE"
# data_type: "Metric"
# metric_name: "powerdns_authoritative_up"
# metrics:
# - source: "powerdns.yml"
# except_entities:
# - POWERDNS_RECURSOR
# except_metrics:
# - powerdns_authoritative_response_sizes
# - powerdns_authoritative_queries
# - powerdns_authoritative_response_rcodes
# - powerdns_authoritative_remote_queries_unauth
# - powerdns_authoritative_queries_unauth
# - powerdns_authoritative_remote_queries
# # additionals: ""
- description: |
This scenario will verify that metrics froms PDNS recursor
are correcly collected.
Expand All @@ -100,8 +100,8 @@ scenarios:
metric_name: "powerdns_recursor_up"
metrics:
- source: "powerdns.yml"
except_entities:
- POWERDNS_AUTHORITATIVE
# except_entities:
# - POWERDNS_AUTHORITATIVE
except_metrics:
- powerdns_recursor_cache_lookups_total
# additionals: "
25 changes: 0 additions & 25 deletions exporters/powerdns/e2e/pdns-authoritative/Dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions exporters/powerdns/e2e/pdns-authoritative/pdns.conf

This file was deleted.

1 change: 0 additions & 1 deletion exporters/powerdns/e2e/pdns-authoritative/pdns.list

This file was deleted.

3 changes: 0 additions & 3 deletions exporters/powerdns/e2e/pdns-authoritative/pdns.preference

This file was deleted.

Loading

0 comments on commit 0ca062c

Please sign in to comment.