Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grafana and telegraf config fixes #10

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

3 changes: 2 additions & 1 deletion examples/ioTSensorsOPCUA/grafana/grafana.ini
Original file line number Diff line number Diff line change
Expand Up @@ -694,11 +694,12 @@ global_alert_rule = -1
[unified_alerting]
# Specify the frequency of polling for admin config changes.
admin_config_poll_interval_seconds = 60
enabled = true

#################################### Alerting ############################
[alerting]
# Disable alerting engine & UI features
enabled = true

# Makes it possible to turn off alert rule execution but alerting UI is visible
execute_alerts = true

Expand Down
38 changes: 0 additions & 38 deletions examples/ioTSensorsOPCUA/telegraf/telegraf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -129,44 +129,6 @@
# INPUT PLUGINS #
###############################################################################

[[inputs.mqtt_consumer]]
## Broker URLs for the MQTT server or cluster.
servers = ["tcp://broker.hivemq.com:1883"]

## Topics that will be subscribed to.
topics = [
"+/+/Power-Generators/+/+"
]

# QoS.
qos = 1

## Connection timeout for initial connection in seconds
connection_timeout = "30s"

## Data format to consume.
## Each data format has its own unique set of configuration options, read
data_format = "json_v2"
data_type = "string"

[[inputs.mqtt_consumer.topic_parsing]]
topic = "+/+/Power-Generators/+/+"
tags = "site/area/_/generator/tag"
[inputs.mqtt_consumer.topic_parsing.types]
site = "string"
area = "string"
generator = "string"
tag = "string"

[[inputs.mqtt_consumer.json_v2]]
measurement_name = "power-generators"
[[inputs.mqtt_consumer.json_v2.object]]
path = "@this"
timestamp_format = "rfc3339"
timestamp_path = "ChangedTimestamp"
included_keys = ["ItemValue"]
[inputs.file.json_v2.object.fields]
ItemValue = "float"


###############################################################################
Expand Down