Coder Social home page Coder Social logo

ar-prometheus-exporter's Introduction

CDN Prometheus exporter

Release Docker Image Size (latest semver)

logo

A very simple Prometheus exporter that exposes metrics from ArvanCloud CDN API as described in the documentation.

How-to

You can run the exporter using Docker:

docker run -d \
 -p 9786:9786 \
 -e DOMAINS=example.com,example.ir \
 -e API_KEY=TOKEN_HERE \
 r1cloud/cdn-exporter

Config

Name Description Type Default
MODE metrics collector mode enum(ACTIVE, PASSIVE) PASSIVE
PORT listening port number 9786
API_KEY your Arvan API-Key string -
DOMAINS list of domain wants to scrape metrics string or comma separate list -
UPDATE_INTERVAL update metrics interval (only valid in passive mode) number(milliseconds) 30000
BASE_URL Arvan base URL string https://napi.arvancloud.ir/cdn/4.0
METRICS_PERIOD Arvan report period enum(1h, 3h, 6h, 12h, 24h, 7d, 30d) 3h
METRICS_PREFIX exported metrics prefix string arvancloud_cdn_
METRICS list of metrics wants to scrape ( Select from ID fields ) string or comma separate list all

Metrics

The exporter exposes the following metrics, all returned per PoP:

Name ID Description Type
arvancloud_cdn_update_metrics_error - number of exporter errors counter
arvancloud_cdn_requests traffic number of requests gauge
arvancloud_cdn_traffic traffic traffic served by ArvanCloud gauge
arvancloud_cdn_visitors visitors number of unique visitors gauge
arvancloud_cdn_high_request_ips high-request-ips high request ips gauge
arvancloud_cdn_requests_by_country geo number of request by country gauge
arvancloud_cdn_traffic_by_country geo traffic by country gauge
arvancloud_cdn_response_time response-time response time gauge
arvancloud_cdn_requests_by_status status-code number of request by HTTP status code gauge

Note: The high-request-ips metric is available in Professional plan and higher.

ar-prometheus-exporter's People

Contributors

3a8r avatar 3aaber avatar dependabot[bot] avatar hatamiarash7 avatar yaseramini88 avatar yzdann avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.