Перейти к основному содержимому

InfluxDB by HTTP

Macros used

NameValue
{$INFLUXDB.API.TOKEN}

-

{$INFLUXDB.ORG_NAME.MATCHES}.*
{$INFLUXDB.ORG_NAME.NOT_MATCHES}CHANGE_IF_NEEDED
{$INFLUXDB.REQ.FAIL.MAX.WARN}2
{$INFLUXDB.TASK.RUN.FAIL.MAX.WARN}2
{$INFLUXDB.URL}http://localhost:8086

Items collected

NameDescriptionTypeIntervalKey and additional info
InfluxDB: Get instance metrics

-

HTTP_AGENT

-

influx.get_metrics
InfluxDB: Instance statusGet the health of an instance.HTTP_AGENT

-

influx.healthcheck
InfluxDB: Boltdb reads, rateTotal number of boltdb reads per second.DEPENDENT

-

influxdb.boltdb_reads.rate
InfluxDB: Boltdb writes, rateTotal number of boltdb writes per second.DEPENDENT

-

influxdb.boltdb_writes.rate
InfluxDB: Buckets, totalNumber of total buckets on the server.DEPENDENT

-

influxdb.buckets.total
InfluxDB: Dashboards, totalNumber of total dashboards on the server.DEPENDENT

-

influxdb.dashboards.total
InfluxDB: Organizations, totalNumber of total organizations on the server.DEPENDENT

-

influxdb.organizations.total
InfluxDB: Scrapers, totalNumber of total scrapers on the server.DEPENDENT

-

influxdb.scrapers.total
InfluxDB: Task runs failed, rateTotal number of failure runs across all tasks.DEPENDENT

-

influxdb.task_executor_complete.failed.rate
InfluxDB: Task runs successful, rateTotal number of runs successful completed across all tasks.DEPENDENT

-

influxdb.task_executor_complete.successful.rate
InfluxDB: Workers currently runningTotal number of workers currently running tasks.DEPENDENT

-

influxdb.task_executor_runs_active.total
InfluxDB: Workers busy, pctPercent of total available workers that are currently busy.DEPENDENT

-

influxdb.task_executor_workers_busy.pct
InfluxDB: Telegrafs, totalNumber of total telegraf configurations on the server.DEPENDENT

-

influxdb.telegrafs.total
InfluxDB: Telegraf plugins, totalNumber of individual telegraf plugins configured.DEPENDENT

-

influxdb.telegraf_plugins.total
InfluxDB: Tokens, totalNumber of total tokens on the server.DEPENDENT

-

influxdb.tokens.total
InfluxDB: UptimeInfluxDB process uptime in seconds.DEPENDENT

-

influxdb.uptime
InfluxDB: Users, totalNumber of total users on the server.DEPENDENT

-

influxdb.users.total
InfluxDB: VersionVersion of the InfluxDB instance.DEPENDENT

-

influxdb.version

Triggers

NameDescriptionExpressionPriorityDependencies
InfluxDB: Health check was failedThe InfluxDB instance is not available or unhealthy.last(/InfluxDB by HTTP/influx.healthcheck)=0HIGH ⛔InfluxDB: Instance status
InfluxDB: Too many tasks failure runs"Number of failure runs completed across all tasks is too high."min(/InfluxDB by HTTP/influxdb.task_executor_complete.failed.rate,5m)>{$INFLUXDB.TASK.RUN.FAIL.MAX.WARN}WARNING 📢InfluxDB: Task runs failed, rate
InfluxDB: has been restartedUptime is less than 10 minutes.last(/InfluxDB by HTTP/influxdb.uptime)<10mINFO 🔔InfluxDB: Uptime
InfluxDB: Version has changedInfluxDB version has changed. Ack to close.last(/InfluxDB by HTTP/influxdb.version,#1)<>last(/InfluxDB by HTTP/influxdb.version,#2) and length(last(/InfluxDB by HTTP/influxdb.version))>0INFO 🔔InfluxDB: Version

Discovery rule №1

NameDescriptionTypeIntervalKey and additional info
Organizations discoveryDiscovery of organizations metrics.HTTP_AGENT10minfluxdb.orgs.discovery

Item prototypes

NameDescriptionTypeIntervalKey and additional info
InfluxDB: [{#ORG_NAME}] Query response bytes, failedCount of bytes returned with status not 200 per second.DEPENDENT

-

influxdb.org.http_query_response_bytes.failed.rate["{#ORG_NAME}"]
InfluxDB: [{#ORG_NAME}] Query response bytes, successCount of bytes returned with status 200 per second.DEPENDENT

-

influxdb.org.http_query_response_bytes.success.rate["{#ORG_NAME}"]
InfluxDB: [{#ORG_NAME}] Query requests, failedTotal number of query requests with status not 200 per second.DEPENDENT

-

influxdb.org.query_request.failed.rate["{#ORG_NAME}"]
InfluxDB: [{#ORG_NAME}] Query requests, successTotal number of query requests with status 200 per second.DEPENDENT

-

influxdb.org.query_request.success.rate["{#ORG_NAME}"]
InfluxDB: [{#ORG_NAME}] Query requests bytes, failedCount of bytes received with status not 200 per second.DEPENDENT

-

influxdb.org.query_request_bytes.failed.rate["{#ORG_NAME}"]
InfluxDB: [{#ORG_NAME}] Query requests bytes, successCount of bytes received with status 200 per second.DEPENDENT

-

influxdb.org.query_request_bytes.success.rate["{#ORG_NAME}"]

Trigger prototypes

NameDescriptionExpressionPriorityDependencies
InfluxDB: [{#ORG_NAME}]: Too many requests failuresToo many query requests failed.min(/InfluxDB by HTTP/influxdb.org.query_request.failed.rate["{#ORG_NAME}"],5m)>{$INFLUXDB.REQ.FAIL.MAX.WARN}WARNING 📢InfluxDB: [{#ORG_NAME}] Query requests, failed