Skip to content

Commit

Permalink
HDDS-10433. Add Prometheus scrape target for Datanodes in Compose v2 (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
kerneltime authored and devabhishekpal committed Jul 12, 2024
1 parent 360729d commit 9c6a586
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions hadoop-ozone/dist/src/main/compose/ozone/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.

scrape_interval: 15s # By default, scrape targets every 15 seconds.
scrape_configs:
- job_name: ozone
metrics_path: /prom
Expand All @@ -32,7 +31,9 @@ scrape_configs:
- "s3g:9878"
labels:
component: s3g
- targets:
- targets: # During compose bring up the number of datanodes can be specific, adding 10 nodes to account for that.
# Duplicate datanodes are specified here to account for compose v1 vs v2 differences.
# compose v1
- "ozone_datanode_1:9882"
- "ozone_datanode_2:9882"
- "ozone_datanode_3:9882"
Expand All @@ -43,5 +44,20 @@ scrape_configs:
- "ozone_datanode_8:9882"
- "ozone_datanode_9:9882"
- "ozone_datanode_10:9882"
# compose v2
- "ozone-datanode-1:9882"
- "ozone-datanode-2:9882"
- "ozone-datanode-3:9882"
- "ozone-datanode-4:9882"
- "ozone-datanode-5:9882"
- "ozone-datanode-6:9882"
- "ozone-datanode-7:9882"
- "ozone-datanode-8:9882"
- "ozone-datanode-9:9882"
- "ozone-datanode-10:9882"
labels:
component: datanode
- targets:
- "recon:9888"
labels:
component: datanode
component: recon

0 comments on commit 9c6a586

Please sign in to comment.