Comments (12)
Yes!! It works now. The parameter was allowed in the "metrics_path"
from wp-decalog.
OMG! What you're saying is you can't have the query params in path, but you must specify it separately?
And it is working now?
from wp-decalog.
OK. Cool. And good to know…
from wp-decalog.
Hello @dalareo !
In targets
you must specify the full url (and not path or something else) and it's seems it's not the case here.
In the mentioned article, you have a screenshot of a working configuration… Could you just try to stick to it first, and we will see if there's other errors or problems after that.
Thanks.
from wp-decalog.
targets
field does not accept path nor scheme in its value, only hostname is allowed. If we set the full URL there we get:
2023/03/20 14:32:26 error loading config file /etc/agent/agent.yaml: "http://domain.com/wp-json/decalog/v3/metrics?uuid=44109443-f727-4d93-928f-f3f50b022c74" is not a valid hostname
Full URL is showing the expected metrics collection using the full with curl
from grafana-agent or accessing through web browser.
from wp-decalog.
OK. So obviously, there's something wrong/outdated/deprecated in my article 😨
What if you add 127.0.0.1:80
as target?
from wp-decalog.
or whatever is your local ip/port…
from wp-decalog.
If I add a hostname (IP of servicename:port) no error is thrown but no metrics are shown in Grafana Cloud, only scrape_duration_seconds metrics
from wp-decalog.
OK. Let me some minutes to reinstall an agent on a test machine…
In the meantime, just to be sure, can you confirm the url /wp-json/decalog/v3/metrics?uuid=441…
in your browser gives you metrics?
from wp-decalog.
Yes, it works like a charm in my browser. We can help with Php code also if you need to make some changes in the plugin!
from wp-decalog.
Thanks for the confirmation.
Thank you for your offer of help <3
Nevertheless, it is (at 99,9% chance) not a plugin issue but an agent config issue. That's why I will try to found what the hell has changed in the config…
from wp-decalog.
I've found the point:
- job_name: decalog/scrapping
static_configs:
- targets: ['service-name']
labels:
process: 'agent'
metrics_path: "/wp-json/decalog/v3/metrics"
params:
uuid: ['uid-code]
from wp-decalog.
Related Issues (20)
- [3.6.0] Call to undefined method WP_CLI::get_logger()“ at `./wp-content/plugins/decalog/includes/plugin/class-initializer.php:64`. HOT 6
- [Performance] Optimize / Reduce (expensive) log events HOT 7
- CLI commands 'wp log listener enable/disable' work incorrectly HOT 3
- Error [0] Metric not found: wordpress_php_php:error_nonfatal HOT 21
- Site 247 integrations would be great
- Documentation on prometheus integrations HOT 1
- Jaeger service name support HOT 2
- HTTP headers for propagating trace and span context HOT 1
- Provide OpenTelemetry semantics compatibility
- OpenTelemetry-compatible backends (OTLP)
- [Datadogformatter] Reduced set of status level used for event submission HOT 3
- decalog.io broken HOT 2
- Grafana Clound Tracing with Tempo gives Error 405 Method Not Allowed HOT 5
- Modifying Ray config variables HOT 2
- How to add another observability provider to the loggers list HOT 3
- HTTP logger for log collector/forwarder service (eg Vector or fluent bit)
- Incompatibility of Decalog with version 8 elastic HOT 1
- WP-CLI Out Of Memory on search-replace actions with large serialized objects - Buffer? HOT 11
- PHP Fatal error: Declaration of Decalog\Logger::emergency must be compatible with Psr\Log\LoggerInterface::emergency HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-decalog.